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

Added Events Page #63

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
8 changes: 8 additions & 0 deletions public/images/calender.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/images/meet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/vector.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions src/components/Event.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// import event from "./../../public/images/event.png"

export function EventPage() {
return (
<div className="w-full h-[80vh] bg-[#f5f5f5] flex flex-col items-center justify-center gap-10">
<div className="w-[60%] h-[70%] bg-white shadow-md rounded-3xl flex items-center justify-center gap-14">
<img src="./images/event.png" className="w-auto h-[70%]" />
<div className=" flex flex-col items-start justify-center h-full w-[40%] gap-4">
<div className="space-y-1">
<h3 className="text-[#41B883] font-bold text-md flex items-center justify-start gap-1">
<img src="./images/calender.svg" />
Acara Mendatang
</h3>
<h1 className=" font-extrabold text-2xl">
Loteng Dev Meetup #2: Prepare for Hacktoberfest
</h1>
</div>
<div className="space-y-1">
<h3 className=" text-[#606060] text-sm flex items-center justify-start gap-1">
<img src="./images/meet.svg" className="size-[1.4rem]" />
Online Google Meet
</h3>
<h3 className=" text-[#606060] text-sm flex items-center justify-start gap-1">
<img src="./images/vector.svg" className="size-[1.4rem]" />
Minggu, 17 Juli 2022
</h3>
<h3 className=" text-[#606060] text-sm flex items-center justify-start gap-1">
<img src="./images/clock.svg" className="size-[1.4rem]" />
20.00 WITA ~ Selesai
</h3>
</div>
<button className="bg-[#007BFF] flex items-center justify-center gap-1 text-xs text-white px-4 py-2 rounded-sm"
onClick={() => window.open("https://github.com/lotengdev/MeetupTopics/issues", "__blank")}
>
<img src="./images/edit.svg" className="size-[1.2rem]" />
Ikut Acara
</button>
</div>
</div>
</div>
);
}
6 changes: 4 additions & 2 deletions src/pages/home/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import TelegramIcon from '@/assets/icons/telegram.svg';
import GithubIcon from '@/assets/icons/github.svg';
import { EventPage } from '../../components/Event';

export function HomePage() {
const [text, setText] = useState('');
Expand All @@ -22,8 +23,8 @@ export function HomePage() {
}, []);

return (
<div className="flex justify-center items-center h-[80vh]" id="home">
<div className="lg:flex justify-center p-[32px]">
<div className="flex flex-col justify-center items-center h-auto" id="home">
<div className="lg:flex justify-center p-[32px] h-[90vh] items-center">
<img src="./images/rafiki.png" className="lg:w-[30%] lg:h-[30%]" />
<div className="lg:w-[50%] lg:mt-0 mt-[25px]">
<div className="lg:mb-[16px] mb-[14px]">
Expand All @@ -46,6 +47,7 @@ export function HomePage() {
</div>
</div>
</div>
<EventPage />
</div>
);
}