@@ -6,8 +6,7 @@ import { useScrollPosition } from "@n8tb1t/use-scroll-position";
66import styled , { createGlobalStyle } from "styled-components" ;
77import logo from "assets/symbol.svg" ;
88import { MainNav } from "components/MainNav" ;
9- import { SectionNavAnchorItem } from "components/SectionNavItem" ;
10- import { SectionNav } from "components/SectionNav" ;
9+ import EasyAccess from "components/EasyAccess" ;
1110
1211export const primaryColor = "008075" ;
1312
@@ -46,15 +45,17 @@ function App() {
4645 </ Helmet >
4746
4847 < LogoHeader >
49- < LogoSection >
50- < LogoWrapper >
51- < LogoSymbol src = { logo } alt = "is" />
52- </ LogoWrapper >
53- < HeaderTitle />
54- </ LogoSection >
55- < EasyAccessSection >
56- < EasyAccess />
57- </ EasyAccessSection >
48+ < HeaderCenter >
49+ < LogoSection >
50+ < LogoWrapper >
51+ < LogoSymbol src = { logo } alt = "is" />
52+ </ LogoWrapper >
53+ < HeaderTitle />
54+ </ LogoSection >
55+ < EasyAccessSection >
56+ < EasyAccess />
57+ </ EasyAccessSection >
58+ </ HeaderCenter >
5859 </ LogoHeader >
5960
6061 < MainNavSection >
@@ -95,6 +96,7 @@ const HeaderTitle: React.FC<{}> = function () {
9596
9697 { showCompact ? (
9798 < ProjectTitleSmallWithLogo role = "presentation" >
99+ < EasyAccess />
98100 < h1 className = "title" >
99101 < b > Inter</ b > script
100102 </ h1 >
@@ -104,47 +106,27 @@ const HeaderTitle: React.FC<{}> = function () {
104106 < br />
105107 script conversion systems
106108 </ p >
107- < EasyAccess />
108109 </ ProjectTitleSmallWithLogo >
109110 ) : null }
110111 </ >
111112 ) ;
112113} ;
113114
114- const EasyAccess : React . FC < { } > = function ( ) {
115- return (
116- < >
117- < EasyAccessWrapper >
118- < EasyAccessNav >
119- < span >
120- < strong > Try it in a Browser</ strong > !
121- </ span >
122- < EasyAccessNavItem key = "convert" href = "/demo#convert" >
123- Convert
124- </ EasyAccessNavItem >
125- < EasyAccessNavItem key = "detect-script" href = "/demo#detect-script" >
126- Detect Systems
127- </ EasyAccessNavItem >
128- < EasyAccessNavItem key = "rababa" href = "/demo#rababa" >
129- Diacritize scripts
130- </ EasyAccessNavItem >
131- </ EasyAccessNav >
132- </ EasyAccessWrapper >
133- </ >
134- ) ;
135- } ;
136-
137115const LogoHeader = styled . header `
138116 display: flex;
139117 align-items: center;
140- flex-flow: row nowrap;
118+ flex-flow: column nowrap;
141119 z-index: 2;
142120` ;
143121
122+ const HeaderCenter = styled . div `
123+ display: flex;
124+ flex-flow: row;
125+ ` ;
126+
144127const LogoSection = styled . div `
145128 display: flex;
146129 flex-flow: column nowrap;
147- flex: 50%;
148130` ;
149131
150132const LogoWrapper = styled . div `
@@ -154,30 +136,8 @@ const LogoWrapper = styled.div`
154136
155137const EasyAccessSection = styled . div `
156138 display: flex;
157- flex: 50%;
158- ` ;
159-
160- const EasyAccessWrapper = styled . div `
161- display: flex;
162- border: 3px dashed;
163- margin-left: 6.25rem;
164- ` ;
165- const EasyAccessNav = styled ( SectionNav ) `
166- a:first-of-type {
167- &::before {
168- content: none;
169- }
170- }
171- ` ;
172-
173- const EasyAccessNavItem = styled ( SectionNavAnchorItem ) `
174- @media screen and (min-width: 900px) {
175- &::before {
176- content: "|";
177- display: inline;
178- margin: 0 1em 0 0;
179- }
180- }
139+ flex-flow: row;
140+ align-items: center;
181141` ;
182142
183143const LogoSymbol = styled . img `
0 commit comments