@@ -9,26 +9,58 @@ function App() {
99 const [ count , setCount ] = useState ( 0 )
1010
1111 return (
12- < >
13- < div >
14- < a href = "https://vitejs.dev" target = "_blank" >
15- < img src = { viteLogo } className = "logo" alt = "Vite logo" />
16- </ a >
17- < a href = "https://react.dev" target = "_blank" >
18- < img src = { reactLogo } className = "logo react" alt = "React logo" />
19- </ a >
20- </ div >
21- < h1 > Vite + React</ h1 >
22- < div className = "card" >
23- < Button onClick = { ( ) => setCount ( ( count ) => count + 1 ) } > count is { count } </ Button >
24- < p >
25- Edit < code > src/App.tsx</ code > and save to test HMR
26- </ p >
27- </ div >
28- < p className = "read-the-docs" > Click on the Vite and React logos to learn more</ p >
29- < ModeToggle />
30- < p > test-softeno</ p >
31- </ >
12+ < div className = "flex min-h-screen w-full flex-col" >
13+ < main className = "flex-1" >
14+ < header className = "sticky top-0 z-10 bg-muted/40" >
15+ < div className = "flex" >
16+ < div className = "p-4" >
17+ < a href = "https://vitejs.dev" target = "_blank" >
18+ < img src = { viteLogo } className = "logo" alt = "Vite logo" />
19+ </ a >
20+ </ div >
21+ < div className = "py-4" >
22+ < a href = "https://react.dev" target = "_blank" >
23+ < img src = { reactLogo } className = "logo react" alt = "React logo" />
24+ </ a >
25+ </ div >
26+ < div className = "ml-auto p-4" >
27+ < ModeToggle />
28+ </ div >
29+ </ div >
30+ </ header >
31+ < div className = "m-4 my-10 flex flex-col items-center" >
32+ < div className = "flex-1 p-4" >
33+ < h1 className = "text-4xl" > Vite + React</ h1 >
34+ </ div >
35+ < div className = "flex-1 p-4 text-center" >
36+ < p className = "py-2 text-xl text-muted-foreground" > This is a template application for React and Vite.</ p >
37+ < p className = "py-2 text-xl text-muted-foreground" >
38+ There are some test components on the site. Please clear the content and put down your code.
39+ </ p >
40+ </ div >
41+ < div className = "m-4 flex-1" > </ div >
42+ < div className = "flex-1 rounded border p-10" >
43+ < div className = "flex flex-col items-center" >
44+ < div >
45+ < label className = "text-xl" > Counter: </ label >
46+ < label className = "text-xl" > { count } </ label >
47+ </ div >
48+ < div className = "py-4" >
49+ < Button className = "mx-4" onClick = { ( ) => setCount ( ( count ) => count + 1 ) } >
50+ Increment
51+ </ Button >
52+ < Button className = "mx-4" onClick = { ( ) => setCount ( ( count ) => count - 1 ) } >
53+ Decrement
54+ </ Button >
55+ </ div >
56+ </ div >
57+ </ div >
58+ </ div >
59+ </ main >
60+ < footer className = "flex h-16 w-full items-center bg-muted/40 pl-4" >
61+ < p className = "text-muted-foreground" > test-softeno</ p >
62+ </ footer >
63+ </ div >
3264 )
3365}
3466
0 commit comments