diff --git a/src/App.vue b/src/App.vue index 233d081..2e7196a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,11 @@ + + + + + @@ -20,6 +25,7 @@ import DutyDisplay from "./components/DutyDisplay.vue"; import GameDisplay from "./components/GameDisplay.vue"; import SectionContainer from "./components/SectionContainer.vue"; +import PastGames from "./components/PastGames.vue"; import { duties, games } from "./data"; export default { @@ -27,6 +33,7 @@ export default { components: { DutyDisplay, GameDisplay, + PastGames, SectionContainer, }, data() { diff --git a/src/assets/global.css b/src/assets/global.css index 5a82c00..db63df9 100644 --- a/src/assets/global.css +++ b/src/assets/global.css @@ -5,6 +5,8 @@ --color-heading: #34495e; --color-background: #ffffff; --color-text: #000000; + --color-light-green: #27ae60; + --color-light-red: #dc3545; --font-size-h1: 2.5em; --font-size-h2: 1.8em; diff --git a/src/components/PastGames.vue b/src/components/PastGames.vue new file mode 100644 index 0000000..e44e975 --- /dev/null +++ b/src/components/PastGames.vue @@ -0,0 +1,315 @@ + + + + + diff --git a/src/data.js b/src/data.js index 576ca08..a0bd0f0 100644 --- a/src/data.js +++ b/src/data.js @@ -1,146 +1,165 @@ export const duties = [ - { - week: 1, - courtDuty: ["Jason", "Tim", "Jacob"], - cashDuty: ["Simon", "Max", "Dima"], - }, - { - week: 2, - courtDuty: ["Niclas, Bruno"], - cashDuty: ["Oleksandr", "Volodymyr", "Jonathan"], - }, - { - week: 3, - courtDuty: ["Benedikt", "MJ"], - cashDuty: ["Jason", "Tim", "Jacob"], - }, - { - week: 4, - courtDuty: ["Ali", "Niklas"], - cashDuty: ["Niclas", "Bruno"], - }, - { - week: 5, - courtDuty: ["Daniel", "Stephan"], - cashDuty: ["Benedikt", "MJ"], - }, - { week: 6, courtDuty: ["Kieran", "Marcel"], cashDuty: ["Ali, Niklas"] }, - { - week: 7, - courtDuty: ["Simon", "Max", "Dima"], - cashDuty: ["Daniel", "Stephan"], - }, - { - week: 8, - courtDuty: ["Oleksandr", "Volodymyr", "Jonathan"], - cashDuty: ["Kieran", "Marcel"], - }, + { + week: 1, + courtDuty: ["Jason", "Tim", "Jacob"], + cashDuty: ["Simon", "Max", "Dima"], + }, + { + week: 2, + courtDuty: ["Niclas, Bruno"], + cashDuty: ["Oleksandr", "Volodymyr", "Jonathan"], + }, + { + week: 3, + courtDuty: ["Benedikt", "MJ"], + cashDuty: ["Jason", "Tim", "Jacob"], + }, + { + week: 4, + courtDuty: ["Ali", "Niklas"], + cashDuty: ["Niclas", "Bruno"], + }, + { + week: 5, + courtDuty: ["Daniel", "Stephan"], + cashDuty: ["Benedikt", "MJ"], + }, + { week: 6, courtDuty: ["Kieran", "Marcel"], cashDuty: ["Ali, Niklas"] }, + { + week: 7, + courtDuty: ["Simon", "Max", "Dima"], + cashDuty: ["Daniel", "Stephan"], + }, + { + week: 8, + courtDuty: ["Oleksandr", "Volodymyr", "Jonathan"], + cashDuty: ["Kieran", "Marcel"], + }, ]; export const games = [ - { - date: "2024-09-21", - gameNr: 1, - team1: "Tv Saarwellingen", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2024-09-28", - gameNr: 1, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "SVK Blieskastel-Zweibrücken", - host: 1, - }, - { - date: "2024-09-28", - gameNr: 2, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "TV Klarenthal", - host: 1, - }, - { - date: "2024-11-02", - gameNr: 1, - team1: "TV Düppenweiler", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2024-11-09", - gameNr: 1, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "TV Brebach", - host: 1, - }, - { - date: "2024-11-09", - gameNr: 2, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "TV 06 Limbach", - host: 1, - }, - { - date: "2024-11-30", - gameNr: 2, - team1: "TV Saarwellingen 2", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2024-12-14", - gameNr: 2, - team1: "TV Wiesbach 2", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2025-01-11", - gameNr: 1, - team1: "TV Klarenthal", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2025-01-18", - gameNr: 1, - team1: "TV Brebach", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2025-02-01", - gameNr: 1, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "TV Düppenweiler", - host: 1, - }, - { - date: "2025-02-01", - gameNr: 2, - team1: "DJK Saarbrücken-Rastpfuhl", - team2: "TV Wiesbach 2", - host: 1, - }, - { - date: "2025-02-15", - gameNr: 1, - team1: "TV 06 Limbach", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 1, - }, - { - date: "2025-03-08", - gameNr: 1, - team1: "SVK Blieskastel-Zweibrücken", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 2, - }, - { - date: "2025-03-08", - gameNr: 2, - team1: "TV Saarwellingen", - team2: "DJK Saarbrücken-Rastpfuhl", - host: 2, + { + date: "2024-09-21", + gameNr: 1, + team1: "Tv Saarwellingen", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + results: { + sets: { + 1: [25, 15], + 2: [25, 13], + 3: [25, 14], + }, + additional_data: [ + { + type: "YouTube", + title: "Replay", + url: "https://youtu.be/IaTdoH1HPVk", + }, + { + type: "Instagram", + title: "Highlight Saarwellingen", + url: "https://www.instagram.com/reel/DAV1mC9sB45/?utm_source=ig_web_copy_link&igsh=MzRlODBiNWFlZA==", + }, + ], }, + }, + { + date: "2024-09-28", + gameNr: 1, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "SVK Blieskastel-Zweibrücken", + host: 1, + }, + { + date: "2024-09-28", + gameNr: 2, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "TV Klarenthal", + host: 1, + }, + { + date: "2024-11-02", + gameNr: 1, + team1: "TV Düppenweiler", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2024-11-09", + gameNr: 1, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "TV Brebach", + host: 1, + }, + { + date: "2024-11-09", + gameNr: 2, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "TV 06 Limbach", + host: 1, + }, + { + date: "2024-11-30", + gameNr: 2, + team1: "TV Saarwellingen 2", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2024-12-14", + gameNr: 2, + team1: "TV Wiesbach 2", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2025-01-11", + gameNr: 1, + team1: "TV Klarenthal", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2025-01-18", + gameNr: 1, + team1: "TV Brebach", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2025-02-01", + gameNr: 1, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "TV Düppenweiler", + host: 1, + }, + { + date: "2025-02-01", + gameNr: 2, + team1: "DJK Saarbrücken-Rastpfuhl", + team2: "TV Wiesbach 2", + host: 1, + }, + { + date: "2025-02-15", + gameNr: 1, + team1: "TV 06 Limbach", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 1, + }, + { + date: "2025-03-08", + gameNr: 1, + team1: "SVK Blieskastel-Zweibrücken", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 2, + }, + { + date: "2025-03-08", + gameNr: 2, + team1: "TV Saarwellingen", + team2: "DJK Saarbrücken-Rastpfuhl", + host: 2, + }, ];