-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added past events feature and removed volunteers from event details s…
…chema
- Loading branch information
Showing
21 changed files
with
144 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
"use client"; | ||
import React, { useEffect, useState } from "react"; | ||
|
||
import EventsList from "../../../components/EventsList"; | ||
|
||
import styles from "./page.module.css"; | ||
|
||
import { BackgroundImage, BackgroundImagePages, getBackgroundImages } from "@/api/images"; | ||
import BackgroundHeader from "@/components/BackgroundHeader"; | ||
|
||
export default function PastEvents() { | ||
const [images, setImages] = useState<BackgroundImage[]>([]); | ||
|
||
useEffect(() => { | ||
getBackgroundImages(BackgroundImagePages.TEAM) | ||
.then((result) => { | ||
if (result.success) { | ||
setImages(result.data); | ||
} | ||
}) | ||
.catch((error) => { | ||
alert(error); | ||
}); | ||
}, []); | ||
|
||
return ( | ||
<div className="items-center justify-center"> | ||
<BackgroundHeader | ||
backgroundImageURIs={images.map((image) => image.imageURI)} | ||
header="GET INVOLVED" | ||
title="Past Events" | ||
description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi." | ||
/> | ||
<div className={styles.body}> | ||
<div className={styles.bodyTitle}> | ||
<h1 style={{ font: "var(--font-title-l)" }}>Explore our Past Events</h1> | ||
<p style={{ font: "var(--font-body-reg)" }}> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque necessitatibus | ||
asperiores, optio quasi sit tempora in amet aut natus, similique enim explicabo id | ||
expedita minima doloribus repellendus est? Quos, officia? | ||
</p> | ||
</div> | ||
<EventsList page="past-events" /> | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
frontend/src/app/(web app)/upcoming-events/page.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&family=Roboto+Slab:wght@100..900&display=swap"); | ||
|
||
.body { | ||
max-width: 1440px; | ||
margin: 0 auto; | ||
height: auto; | ||
padding: 0px 98px 136px; | ||
background-color: #f9f9f9; | ||
color: black; | ||
} | ||
.bodyTitle { | ||
margin: 0; | ||
padding: 64px 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: left; | ||
gap: 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.