Skip to content

Commit b0f48ef

Browse files
committed
susanta/tiy-widnow-tape: Changed the design like color and font size
1 parent 40710b8 commit b0f48ef

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/tryityourself/Susanta/WindowTape.jsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
useEffect,
33
useState
4-
} from "react";
4+
} from "react";
55

66

77
function WindowTape() {
@@ -25,15 +25,18 @@ function WindowTape() {
2525

2626
return (
2727
<>
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>
3740
</div>
3841
</div>
3942
</>

0 commit comments

Comments
 (0)