From c026b3b9633d69cecc3005aa8c4d322296f45197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Tue, 18 Jul 2023 20:19:01 +0300 Subject: [PATCH] Add closable performer lists --- pages/program.tsx | 219 +++++++++++++++++++++++++------------ styles/Program.module.scss | 32 ++++++ 2 files changed, 181 insertions(+), 70 deletions(-) diff --git a/pages/program.tsx b/pages/program.tsx index b0e11d0..41eda3b 100644 --- a/pages/program.tsx +++ b/pages/program.tsx @@ -2,6 +2,8 @@ import React, { useState } from 'react'; import { FiExternalLink } from 'react-icons/fi'; import shared from '../styles/Shared.module.scss'; import styles from '../styles/Program.module.scss'; +import { CSSTransition } from 'react-transition-group'; +import { BiChevronDown, BiChevronLeft } from 'react-icons/bi'; interface DayToggles { wed: boolean; @@ -43,12 +45,37 @@ const Program = () => { Café Laituri, Voiponlahdentie 37, Palva

17:00 - 19:00

- + + + + {dayToggles.thu ? ( + + ) : ( + + )} + +
{/* Perjantai */}

@@ -63,11 +90,37 @@ const Program = () => { Saaristohotelli Vaihela, Velkuanmaantie 168, Velkuanmaa

18:00 - 21:00

- + + + + + {dayToggles.fri ? ( + + ) : ( + + )} + +
{/* Lauantai */}

@@ -82,65 +135,91 @@ const Program = () => { Sinervon talo, Sauniementie 5, Teersalo

14:00 - 20:00

- + + + + + {dayToggles.sat ? ( + + ) : ( + + )} + +
); }; diff --git a/styles/Program.module.scss b/styles/Program.module.scss index 284e34c..ddb4164 100644 --- a/styles/Program.module.scss +++ b/styles/Program.module.scss @@ -58,6 +58,7 @@ line-height: 1.5rem; max-width: 20rem; padding-left: 0; + margin-top: 0; li { margin-top: 1em; @@ -79,6 +80,7 @@ justify-content: center !important; margin-top: 1rem; margin-bottom: 1rem; + text-decoration: underline; } .programTime { @@ -89,3 +91,33 @@ margin-top: 1rem; margin-bottom: 1rem; } + +.programPerformersTitleToggle { + display: flex; + cursor: pointer; + background: none; + border: none; + font-family: 'Crimson Text', sans-serif; + color: #2f273e; + font-weight: bold; +} + +.programPerformersTitleToggle:hover { + svg { + color: rgb(117, 117, 117); + transition: color 0.3s; + } + + color: rgb(117, 117, 117); + transition: color 0.3s; +} + +.programPerformersTitle { + font-size: 2rem; + padding-left: 1rem; +} + +.programHr { + border: 0.1rem solid #d5caf29d; + width: 43%; +}