@@ -12,14 +12,20 @@ import AdminToggle from '../../services/admin/AdminToggle'
1212const styles = {
1313 page : ( theme : Theme ) => ( {
1414 position : 'relative' as 'relative' ,
15- display : 'flex' as 'flex' ,
16- flexDirection : 'column' as 'column' ,
15+ display : 'grid' as 'grid' ,
16+ gridTemplateColumns : '1fr' ,
17+ gridTemplateRows : '1fr 1fr 1fr 1fr' ,
18+ gridTemplateAreas : `
19+ "." "header" "options" "hidden-options";
20+ ` ,
21+ justifyItems : 'center' ,
1722 width : '100%' ,
1823 maxWidth : '100%' ,
1924 height : '100vh' ,
2025 backgroundColor : theme [ '$color-white' ] ,
2126 } ) ,
2227 header : {
28+ gridArea : 'header' ,
2329 flex : 1 ,
2430 display : 'flex' as 'flex' ,
2531 flexDirection : 'column' as 'column' ,
@@ -38,6 +44,7 @@ const styles = {
3844 textAlign : 'center' as 'center' ,
3945 } ,
4046 options : {
47+ gridArea : 'options' ,
4148 flex : 1 ,
4249 display : 'flex' as 'flex' ,
4350 flexDirection : 'column' as 'column' ,
@@ -56,6 +63,8 @@ const styles = {
5663 '&:hover,&:focus' : css ( {
5764 backgroundColor : theme [ '$color-fill1-1' ] ,
5865 borderColor : theme [ '$color-line1-4' ] ,
66+ outline : 'none' ,
67+ boxShadow : 'none' ,
5968 } ) ,
6069 } ) ,
6170 continueTitle : ( theme : Theme ) => ( {
@@ -69,6 +78,18 @@ const styles = {
6978 alignItems : 'center' as 'center' ,
7079 margin : '0.5rem' ,
7180 } ,
81+ hiddenOptions : ( theme : Theme ) => ( {
82+ gridArea : 'hidden-options' ,
83+ display : 'flex' as 'flex' ,
84+ justifyContent : 'center' as 'center' ,
85+ alignItems : 'center' as 'center' ,
86+ width : '6rem' ,
87+ padding : '0.5rem' ,
88+ marginTop : '8rem' ,
89+ borderTopLeftRadius : '8px' ,
90+ borderTopRightRadius : '8px' ,
91+ backgroundColor : theme [ '$color-fill1-1' ] ,
92+ } ) ,
7293}
7394
7495interface Props {
@@ -106,7 +127,11 @@ export const StartPage = (props: Props) => (
106127 </ div >
107128 ) }
108129 </ div >
109- { ADMIN_MODE ? < AdminToggle /> : null }
130+ { ADMIN_MODE ? (
131+ < div css = { styles . hiddenOptions } >
132+ < AdminToggle />
133+ </ div >
134+ ) : null }
110135 </ div >
111136)
112137
0 commit comments