Skip to content

Commit

Permalink
Fix: Change paths again (images don't work temporarily)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntGa committed Sep 30, 2024
1 parent 41fea10 commit 4a2f1f5
Show file tree
Hide file tree
Showing 22 changed files with 213 additions and 7 deletions.
Binary file added data/projects/beach_clean_up_cover.webp
Binary file not shown.
Binary file added data/projects/board_game_night_cover.webp
Binary file not shown.
Binary file added data/projects/careers_workshop_cover.webp
Binary file not shown.
41 changes: 41 additions & 0 deletions data/projects/carouselList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
{
"heading": "Art Gallery",
"subheadings": [
"Art Gallery"
],
"paragraphs": [
"2nd August, 12:30 - 3:30PM",
"Come along and view some fine art! Maybe even meet some new friends!"
],
"images": [
"/projects/carousel_content_1_image_0.webp"
]
},
{
"heading": "Quiz Night",
"subheadings": [
"Quiz Night"
],
"paragraphs": [
"2nd July 12:30 - 3:30PM",
"This is a description about quizzes at YOO. Quizzes are good to learn from."
],
"images": [
"/projects/carousel_content_2_image_0.webp"
]
},
{
"heading": "YOO meeting",
"subheadings": [
"YOO meeting"
],
"paragraphs": [
"2nd July 12:30 - 3:30PM",
"This is a description about quizzes at YOO. Quizzes are good to learn from."
],
"images": [
"/projects/carousel_content_3_image_0.webp"
]
}
]
Binary file added data/projects/carousel_content_1_image_0.webp
Binary file not shown.
Binary file added data/projects/carousel_content_2_image_0.webp
Binary file not shown.
Binary file added data/projects/carousel_content_3_image_0.webp
Binary file not shown.
Binary file added data/projects/film_festival_cover.webp
Binary file not shown.
Binary file added data/projects/kahoot_games_night_cover.webp
Binary file not shown.
Binary file added data/projects/kahoot_night_cover.webp
Binary file not shown.
Binary file added data/projects/life_skills_workshop_cover.webp
Binary file not shown.
Binary file added data/projects/music_showcase_cover.webp
Binary file not shown.
Binary file added data/projects/orakei_youth_expo_cover.webp
Binary file not shown.
169 changes: 169 additions & 0 deletions data/projects/projectsData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
[
{
"title": "Test",
"date": "2024-09-19",
"description": "Placeholder project description.",
"cover": "/projects/test_cover.webp",
"team": "Team 4",
"tags": [
"music"
],
"id": "10639839-0b9f-804f-ace5-e09ed60e9ca1"
},
{
"title": "Board Game Night",
"date": "2024-06-09",
"description": "Placeholder project description.",
"cover": "/projects/board_game_night_cover.webp",
"team": "Team 2",
"tags": [
"games"
],
"id": "3d6b89d6-e7e5-4a71-a315-90ec000ba0d3"
},
{
"title": "Quizex - Quiz Night",
"date": "2024-05-18",
"description": "Placeholder project description.",
"cover": "/projects/quizex_-_quiz_night_cover.webp",
"team": "Team 3",
"tags": [
"games"
],
"id": "0fe7cf87-01e8-40e8-af75-dbcd12df8bda"
},
{
"title": "Beach clean up",
"date": "2024-05-13",
"description": "Come join us to clean the local beach and save our environment!",
"cover": "/projects/beach_clean_up_cover.webp",
"team": "Team 4",
"tags": [
"volunteering"
],
"id": "f75a6e96-82dc-4dc7-ad9f-d63ff136aa47"
},
{
"title": "Kahoot Night",
"date": "2024-05-11",
"description": "Placeholder project description.",
"cover": "/projects/kahoot_night_cover.webp",
"team": "Team 1",
"tags": [
"games"
],
"id": "7e15c320-90b6-4bfb-bb75-c18222fb157b"
},
{
"title": "Kahoot Games Night",
"date": "2024-05-05",
"description": "Placeholder project description.",
"cover": "/projects/kahoot_games_night_cover.webp",
"team": "Team 2",
"tags": [
"games"
],
"id": "256fe646-3750-48d1-9cbf-30e8ea05cd33"
},
{
"title": "Orakei Youth Expo",
"date": "2023-12-09",
"description": "Placeholder project description.",
"cover": "/projects/orakei_youth_expo_cover.webp",
"team": "Team 3",
"tags": [
"volunteering",
"educational"
],
"id": "ab70378e-268f-4791-b9ac-6a286c88ff3c"
},
{
"title": "Film Festival",
"date": "2023-09-30",
"description": "Placeholder project description.",
"cover": "/projects/film_festival_cover.webp",
"team": "Team 4",
"tags": [
"art",
"music"
],
"id": "dde22970-d29c-4bc8-af59-e445a4026bfe"
},
{
"title": "Music Showcase",
"date": "2023-09-17",
"description": "Placeholder project description.",
"cover": "/projects/music_showcase_cover.webp",
"team": "Team 1",
"tags": [
"music"
],
"id": "dbd309c6-55ec-4149-bd83-2cc4761e4e85"
},
{
"title": "Sportathon",
"date": "2023-09-02",
"description": "Placeholder project description.",
"cover": "/projects/sportathon_cover.webp",
"team": "Team 2",
"tags": [
"games",
"sports"
],
"id": "6cf27617-6cee-4af5-a1ba-c0b7cecf81f0"
},
{
"title": "",
"date": "",
"description": "",
"cover": "",
"team": "",
"tags": [],
"id": "10339839-0b9f-8032-a51d-e9a191b15227"
},
{
"title": "Careers Workshop",
"date": "",
"description": "Placeholder project description.",
"cover": "/projects/careers_workshop_cover.webp",
"team": "Team 3",
"tags": [
"educational"
],
"id": "78294581-4f99-4efa-9d4c-f88a00f6e2ae"
},
{
"title": "Student Leadership Conference",
"date": "",
"description": "Placeholder project description.",
"cover": "/projects/student_leadership_conference_cover.webp",
"team": "Team 2",
"tags": [
"educational",
"volunteering"
],
"id": "9d0e4b44-04e2-41ae-9388-5bd07d91551c"
},
{
"title": "Life Skills Workshop",
"date": "",
"description": "Placeholder project description.",
"cover": "/projects/life_skills_workshop_cover.webp",
"team": "Team 4",
"tags": [
"educational"
],
"id": "3d447c69-eb7b-41ce-a0f3-3651620873fe"
},
{
"title": "Quiz Night",
"date": "",
"description": "Placeholder project description.",
"cover": "/projects/quiz_night_cover.webp",
"team": "Team 1",
"tags": [
"games"
],
"id": "5a11c339-08bc-4587-9417-2c3cb9ea858f"
}
]
Binary file added data/projects/quiz_night_cover.webp
Binary file not shown.
Binary file added data/projects/quizex_-_quiz_night_cover.webp
Binary file not shown.
Binary file added data/projects/sportathon_cover.webp
Binary file not shown.
Binary file not shown.
Binary file added data/projects/test_cover.webp
Binary file not shown.
4 changes: 0 additions & 4 deletions src/pages/members.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import Layout from "../layouts/layout.astro";
import TeamDisplayLeft from "../components/TeamDisplayLeft.astro";
import TeamDisplayRight from "../components/TeamDisplayRight.astro";
import ProjectTeam from "../components/ProjectTeam.tsx";
import MemberDisplay from "../components/MembersDisplay.astro";
// import MembersDisplay from "../components/MembersDisplay.astro";
import PersonCard from "../components/PersonCard.tsx";
import BlobBackground from "../components/BlobBackground/BlobBackground";
---

<html lang="en">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import IndexHeading from "../components/index page/IndexHeading";
import BlobBackground from "../components/BlobBackground/BlobBackground";
// Read the JSON files from the public folder
import projects from "../../public/projects/projectsData.json"
import carouselList from "../../public/projects/carouselList.json"
import projects from "../../data/projects/projectsData.json"
import carouselList from "../../data/projects/carouselList.json"
---

<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/getProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function getProjects(): Promise<{ projects: ProjectData[], carousel
}

const notion = new Client({ auth: NOTION_TOKEN });
const projectsFolderPath = path.join('/data', 'projects');
const projectsFolderPath = path.join(process.cwd(), 'data/projects');

await ensureDirectoryExists(projectsFolderPath);

Expand Down

0 comments on commit 4a2f1f5

Please sign in to comment.