Skip to content

Commit 060845c

Browse files
Merge pull request #16 from sreeram-venkitesh/added-basic-ui
2 parents a8f8417 + 8e188a9 commit 060845c

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

components/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Footer = () => {
99
}, []);
1010

1111
return (
12-
<div className="absolute bottom-0 flex flex-col space-y-0 w-screen text-center h-10 px-10 my-5">
12+
<div className="flex flex-col space-y-0 w-screen text-center h-10 px-10 my-5">
1313
<span className="italic text-slate-500">
1414
{FOOTER_MESSAGES[randomNumber]}
1515
</span>

pages/index.js

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Textarea from "../components/Textarea";
55

66
export default function Home() {
77
return (
8-
<div className="h-screen flex-col justify-between bg-black p-5">
8+
<div className="h-screen flex-col justify-between bg-zinc-900 p-5">
99
<Head>
1010
<title>JSON Style</title>
1111
<meta name="description" content="Generated by create next app" />
@@ -14,17 +14,28 @@ export default function Home() {
1414

1515
<main>
1616
<p className="text-2xl text-center">JSON STYLE</p>
17-
<div className="space-y-5">
18-
<Textarea
19-
className="w-1/2"
20-
rows={10}
21-
label="JSON String"
22-
onChange={(e) => console.log(e.target.value)}
23-
/>
24-
<Button className="ml-1" label="Click Me" />
17+
<div className="space-y-3">
18+
<div className="flex space-x-3 mt-5">
19+
<Textarea
20+
className="w-1/2"
21+
rows={24}
22+
label="JSON String"
23+
onChange={(e) => console.log(e.target.value)}
24+
/>
25+
<Textarea
26+
className="w-1/2"
27+
rows={24}
28+
label="Output"
29+
onChange={(e) => console.log(e.target.value)}
30+
/>
31+
</div>
32+
<div className="flex bg-zinc-800 space-x-3 px-1 py-3 rounded">
33+
<Button className="ml-1" label="Format" />
34+
<Button className="ml-1" label="Reset" />
35+
</div>
2536
</div>
37+
{/* <Footer /> */}
2638
</main>
27-
<Footer />
2839
</div>
2940
);
3041
}

styles/base/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
body {
22
color: #e4e4e7;
3+
background-color: rgb(24 24 27);
34
}

styles/components/_textarea.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
box-shadow: none;
2828
outline: none;
2929
padding: 10px;
30-
max-height: 224px;
3130
overflow-y: auto;
3231
line-height: 1.5;
3332
background-color: #27272a;
33+
resize: none;
3434

3535
&::placeholder {
3636
color: #e4e4e7;

0 commit comments

Comments
 (0)