Skip to content

Commit b3d600b

Browse files
author
webdev778
authored
Merge pull request #110 from interscript/fix-top-section
Enable "Try Interscript" clickable to go to quickbox component
2 parents 13580eb + a44c2a4 commit b3d600b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/components/EasyAccess.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ import React from "react";
22
import styled from "styled-components";
33
import { SectionNav } from "components/SectionNav";
44
import { SectionNavAnchorItem } from "components/SectionNavItem";
5+
import { Link } from "@reach/router";
56

67
export default () => {
78
return (
89
<>
910
<EasyAccessWrapper>
1011
<EasyAccessNav>
1112
<span>
12-
<strong>Try it in a Browser</strong>!&nbsp;&nbsp;&nbsp;&nbsp;
13+
<strong>
14+
<Link to={"/"}>Try Interscript!</Link>
15+
</strong>
16+
&nbsp;&nbsp;&nbsp;&nbsp;
1317
</span>
1418
<EasyAccessNavItem key="convert" href="/demo#convert">
1519
Convert
@@ -37,6 +41,10 @@ const EasyAccessWrapper = styled.div`
3741
@media screen and (max-width: 1200px) {
3842
display: none;
3943
}
44+
45+
a {
46+
color: black;
47+
}
4048
`;
4149

4250
const EasyAccessNav = styled(SectionNav)`

src/components/QuickBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ const QuickBox: React.FC<{ maps: string[]; metaData?: InterscriptMetaDataMap }>
109109
: undefined,
110110
}}
111111
onChange={onChangeSource}
112+
autoFocus
112113
/>
113114
<ConvertButton
114115
onClick={handleConvert}

0 commit comments

Comments
 (0)