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 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
1 change: 1 addition & 0 deletions public/icons/locationIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/timeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
50 changes: 50 additions & 0 deletions src/components/events/event.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import Image from "next/image";
import locationIcon from "@/public/icons/locationIcon.svg";
import timeIcon from "@/public/icons/timeIcon.svg";

const EventCard = (props: {
day: string;
date: string;
title: string;
location: string;
time: string;
description: string;
}) => {
return (
<div className="flex h-1/4 w-3/4 items-center rounded-3xl bg-[#FFFFFF61]">
<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="h-2/8 flex w-1/2 flex-row gap-20 pl-[30px]">
<div className="h-1/8 flex w-1/5 flex-row gap-2 pl-[40px] font-roboto text-lg text-[#A7D6FD]">
<Image
src={locationIcon}
alt="Location Icon"
width={24}
height={24}
/>
{props.location}
</div>
<div className="h-7/8 flex w-1/2 flex-row gap-2 pl-[40px] font-roboto text-lg text-[#A7D6FD]">
<Image src={timeIcon} alt="Time Icon" width={24} height={24} />
{props.time}
</div>
</div>
<div className="h-full w-5/6 pl-[30px] font-roboto text-lg text-[#BDBDBD]">
{props.description}
</div>
</div>
</div>
);
};

export default EventCard;
Loading