File tree 1 file changed +13
-10
lines changed
src/tryityourself/Susanta
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
useEffect ,
3
3
useState
4
- } from "react" ;
4
+ } from "react" ;
5
5
6
6
7
7
function WindowTape ( ) {
@@ -25,15 +25,18 @@ function WindowTape() {
25
25
26
26
return (
27
27
< >
28
- < div className = "container mx-auto px-4" >
29
- < h1 className = "text-4xl font-bold" > Welcome to WindowTape</ h1 >
30
- < p className = "mt-4" > This is a simple app, which shows the window width and height, while resizing the window...</ p >
31
- </ div >
32
- < div className = "container mx-auto px-4 mt-4" >
33
- < div className = "bg-gray-100 p-4 rounded shadow-md" >
34
- < h2 className = "text-xl font-semibold" > Window Size</ h2 >
35
- < p className = "mt-2" > Width: { windowSize . width } px</ p >
36
- < p className = "mt-2" > Height: { windowSize . height } px</ p >
28
+ < div className = "bg-purple-900/70 flex justify-center items-center min-w-screen min-h-screen" >
29
+ < div className = "bg-purple-300 rounded-full p-6 px-10 text-4xl text-bold border-2 border-gray-300" >
30
+ < table >
31
+ < tr >
32
+ < td className = "p-2" > WIDTH</ td >
33
+ < td className = "p-2" > { windowSize . width } px</ td >
34
+ </ tr >
35
+ < tr >
36
+ < td className = "p-2" > HEIGHT</ td >
37
+ < td className = "p-2" > { windowSize . height } px</ td >
38
+ </ tr >
39
+ </ table >
37
40
</ div >
38
41
</ div >
39
42
</ >
You can’t perform that action at this time.
0 commit comments