Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(index): general outline of home page layout #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 12 additions & 0 deletions src/components/project.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export interface ProjectProps {
title: string;
content: string;
}

export default function Project({ title }: ProjectProps) {
return (
<div className="w-80 h-96 bg-gray-700 rounded-xl text-white flex justify-center text-xl">
{title}
</div>
);
}
33 changes: 31 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
import Project, { ProjectProps } from "@/components/project";

export default function Home() {
const projects: ProjectProps[] = [
{
title: "Project 1",
content: "Project content 1",
},
{
title: "Project 2",
content: "Project content 2",
},
];
return (
<main>
<p>Welcome to Openapps</p>
<main className="flex flex-col gap-6 w-full p-4">
<div className="flex flex-row items-center">
<div className="w-3/4">Animacja</div>

<div className="w-1/4 text-xl">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ea officia
dolor repellat vero, consectetur consequuntur est architecto!
Distinctio, autem optio. Quas qui eaque libero corporis quo
consequuntur ex ullam cupiditate!
</div>
</div>

<div className="flex justify-center text-2xl">Polecane</div>

<div className="flex flex-row justify-center gap-4">
{projects.map((project, index) => (
<Project {...project} key={index} />
))}
</div>
</main>
);
}