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

built an event, still need to add icons #40

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 11 additions & 2 deletions src/app/events/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import EventCard from "@/components/events/event";

const Events = () => {
return (
<div className="flex h-screen w-screen items-center justify-center">
This is the Events Page
<div className="flex h-screen w-screen items-center justify-center bg-blue-950">
<EventCard
day="Mon"
date="09"
title="General Meeting"
location="Location"
time="3 pm"
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam accumsan urna nec libero fringilla, ac fermentum purus tempus. Sed et nisi velit."
/>
</div>
);
};
Expand Down
39 changes: 39 additions & 0 deletions src/components/events/event.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const EventCard = (props: {
day: string;
date: string;
title: string;
location: string;
time: string;
description: string;
}) => {
return (
<div className="flex h-[251px] w-[1184px] items-center rounded-3xl bg-[#FFFFFF61]">
Copy link
Contributor

Choose a reason for hiding this comment

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

lot's of hard coded values everywhere.
We should try to use the present tailwind utility classes most of the time.
Also try to stick to more relative units (like fractions or percentages)

<div className="flex h-full w-1/5 flex-col items-center justify-center">
<div className="text-center font-questrial text-xl text-[#A7D6FD]">
{props.day}
</div>
<div className="text-center font-questrial text-7xl text-[#C3D0DF]">
{props.date}
</div>
</div>
<div className="flex h-full w-4/5 flex-col">
<div className="justify-start pl-[30px] pt-[45px] font-questrial text-4xl font-medium text-[#FFFFFF]">
{props.title}
</div>
<div className="flex h-[45px] w-[415px] flex-row gap-20 pl-[30px]">
<div className="h-[32px] w-[107px] pl-[40px] font-roboto text-lg text-[#A7D6FD]">
{props.location}
</div>
<div className="h-[32px] w-[107px] pl-[40px] font-roboto text-lg text-[#A7D6FD]">
{props.time}
</div>
</div>
<div className="h-[72px] w-[914px] pl-[30px] font-roboto text-lg text-[#BDBDBD]">
{props.description}
</div>
</div>
</div>
);
};

export default EventCard;
Loading