1- import React , { useState } from "react" ;
1+ import React from "react" ;
22import styled , { ThemeProvider } from "styled-components" ;
33import { GlobalStyle , Main , lightTheme , darkTheme } from "../styles/styles" ;
44import { useDarkMode } from "../components/useDarkMode" ;
55import Navigation from "../components/Navigation" ;
66import Footer from "../components/Footer" ;
77import ShapeBuilder from "../components/ShapeBuilder" ;
8- import { SistentThemeProviderWithoutBaseLine , Box , Button } from "@sistent/sistent" ;
8+ import { SistentThemeProviderWithoutBaseLine } from "@sistent/sistent" ;
99
1010const Kbd = styled . kbd `
1111 background-color: ${ ( { theme } ) =>
@@ -48,7 +48,6 @@ const IndexPage = () => {
4848 const [ theme , toggleTheme ] = useDarkMode ( ) ;
4949 const themeMode = theme === "light" ? lightTheme : darkTheme ;
5050 const activeTheme = { ...themeMode , mode : theme } ;
51- const [ , setOpen ] = useState ( false ) ;
5251
5352 return (
5453 < SistentThemeProviderWithoutBaseLine >
@@ -62,25 +61,25 @@ const IndexPage = () => {
6261 < p className = "desc-text" >
6362 Click on the grid to start creating a polygon. Each click adds a point.
6463 </ p >
65- { /* Key Strokes Section */ }
66- < div style = { { textAlign : "center" , marginTop : "2rem" , width : "100%" } } >
67- < h2 > Controls</ h2 >
68- < InstructionsContainer >
69- < span >
70- < Kbd theme = { activeTheme } > ENTER</ Kbd > /{ " " }
71- < Kbd theme = { activeTheme } > ESC</ Kbd > Close shape
72- </ span >
64+ { /* Key Strokes Section */ }
65+ < div style = { { textAlign : "center" , marginTop : "2rem" , width : "100%" } } >
66+ < h2 > Controls</ h2 >
67+ < InstructionsContainer >
68+ < span >
69+ < Kbd theme = { activeTheme } > ENTER</ Kbd > /{ " " }
70+ < Kbd theme = { activeTheme } > ESC</ Kbd > Close shape
71+ </ span >
7372
74- < span >
75- < Kbd theme = { activeTheme } > CTRL</ Kbd > Snap to grid
76- </ span >
73+ < span >
74+ < Kbd theme = { activeTheme } > CTRL</ Kbd > Snap to grid
75+ </ span >
7776
78- < span >
79- < Kbd theme = { activeTheme } > CTRL</ Kbd > +{ " " }
80- < Kbd theme = { activeTheme } > Z</ Kbd > Undo
81- </ span >
82- </ InstructionsContainer >
83- </ div >
77+ < span >
78+ < Kbd theme = { activeTheme } > CTRL</ Kbd > +{ " " }
79+ < Kbd theme = { activeTheme } > Z</ Kbd > Undo
80+ </ span >
81+ </ InstructionsContainer >
82+ </ div >
8483 </ section >
8584 < ShapeBuilder />
8685 </ Main >
0 commit comments