Skip to content

Commit f2b4276

Browse files
author
rmen527
committed
Add layout
1 parent 2037b63 commit f2b4276

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

src/components/Textbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface TextboxProps {
99

1010
export default function Textbox(props: TextboxProps) {
1111
return (
12-
<div>
12+
<div style={{ backgroundColor: "red" }}>
1313
{props.text}
1414
</div>
1515
)

src/pages/home/Home.tsx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,36 @@ import Textbox from "../../components/Textbox";
33

44
function Home() {
55
return (
6+
// bg image
67
<div className="relative min-h-screen bg-[url('/bg.png')] bg-cover bg-center bg-no-repeat overflow-hidden">
78
<div className="flex h-full w-full">
8-
{/* lef t */}
9-
<div className="flex-1">left</div>
9+
{/* left */}
10+
<div className="flex-1 flex flex-col">
11+
12+
{/* logo */}
13+
<div>Logo</div>
14+
15+
{/* python and alien code */}
16+
<div className="flex">
17+
<div className="flex-1">
18+
Python Code
19+
</div>
20+
<div className="flex-1">
21+
Alien Code
22+
</div>
23+
</div>
24+
25+
{/* task */}
26+
<div>task</div>
27+
</div>
1028

1129
{/* right */}
12-
<div className="flex-1">right</div>
30+
<div className="flex-1">
31+
<div>Code</div>
32+
<div>Output</div>
33+
</div>
34+
35+
1336
</div>
1437
</div>
1538
);

0 commit comments

Comments
 (0)