Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/app/components/Example.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const Example = () => {
return (
<div className="flex h-screen w-screen flex-col items-center justify-center">
<h1 className="mb-8 text-7xl text-red-600">EXAMPLE COMPONENT</h1>

<div className="items-left flex flex-col gap-8">
<div className="flex border-4 border-black">
<div className="h-[500px] w-[550px] bg-orange-300" />
<div className="h-[500px] w-[550px] bg-blue-300" />
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set widths and heights relative to screen size

</div>

<h4 className="text-2xl font-extrabold text-black italic">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use p tags for responsiveness

Example Component
</h4>
</div>
</div>
);
};

export default Example;
4 changes: 3 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Example from "./components/Example";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember you can use absolute filepaths to avoid directory mistakes


const Home = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
Hello World
<Example />
</div>
);
};
Expand Down
Loading