After event changes
This commit is contained in:
@@ -16,7 +16,7 @@ class MyDocument extends Document {
|
||||
<meta property="og:image:type" content="image/jpg" />
|
||||
<meta property="og:image:width" content="1516" />
|
||||
<meta property="og:image:height" content="582" />
|
||||
<meta property="og:description" content="Runosaari 7. ja 14.6. Naantalin saaristo. Vuonna 2024 saarifestivaali tuo runoutta ja musiikkia kahteen kesäkuun perjantaihin" />
|
||||
<meta property="og:description" content="Nähdään taas ensi kesänä 12. - 14.6.2025!" />
|
||||
<script
|
||||
async
|
||||
defer
|
||||
|
||||
@@ -6,6 +6,7 @@ import styles from '../styles/Archive.module.scss';
|
||||
import PerformersData2021 from '../data/performers/2021';
|
||||
import PerformersData2022 from '../data/performers/2022';
|
||||
import PerformersData2023 from '../data/performers/2023';
|
||||
import PerformersData2024 from '../data/performers/2024';
|
||||
import Performer from '../types/Performer';
|
||||
import { BiChevronDown, BiChevronLeft } from 'react-icons/bi';
|
||||
|
||||
@@ -17,6 +18,7 @@ const Archive = () => {
|
||||
const [performers2021, setPerformers2021] = useState<PerformerCard[]>([]);
|
||||
const [performers2022, setPerformers2022] = useState<PerformerCard[]>([]);
|
||||
const [performers2023, setPerformers2023] = useState<PerformerCard[]>([]);
|
||||
const [performers2024, setPerformers2024] = useState<PerformerCard[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
let cards: PerformerCard[] = [];
|
||||
@@ -51,6 +53,17 @@ const Archive = () => {
|
||||
setPerformers2023(cards);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
let cards: PerformerCard[] = [];
|
||||
|
||||
PerformersData2024.map((p) => {
|
||||
let newCard = { ...p, showDesc: false };
|
||||
cards.push(newCard);
|
||||
});
|
||||
|
||||
setPerformers2024(cards);
|
||||
}, []);
|
||||
|
||||
const togglePerformerDesc2021 = (id: string) => {
|
||||
let updated: PerformerCard[];
|
||||
updated = performers2021.map((p) => {
|
||||
@@ -87,9 +100,65 @@ const Archive = () => {
|
||||
setPerformers2023(updated);
|
||||
};
|
||||
|
||||
const togglePerformerDesc2024 = (id: string) => {
|
||||
let updated: PerformerCard[];
|
||||
updated = performers2024.map((p) => {
|
||||
if (p.id === id) {
|
||||
p.showDesc = !p.showDesc;
|
||||
}
|
||||
return p;
|
||||
});
|
||||
|
||||
setPerformers2024(updated);
|
||||
};
|
||||
|
||||
return (
|
||||
<section className={shared.page + ' ' + styles.archivePage}>
|
||||
<h1>Arkisto</h1>
|
||||
<h2 className={styles.year}>2024</h2>
|
||||
{performers2024.map((p) => (
|
||||
<div className={styles.performerContainer} key={p.id}>
|
||||
<Image
|
||||
className={styles.performerImage}
|
||||
src={'/performers/2024/' + p.id + '.jpg'}
|
||||
width={100}
|
||||
height={100}
|
||||
layout='fixed'
|
||||
alt={p.name}
|
||||
/>
|
||||
<div className={styles.performerTextContainer}>
|
||||
<div
|
||||
className={styles.performerTitle}
|
||||
onClick={() => togglePerformerDesc2024(p.id)}
|
||||
>
|
||||
<h2>{p.name}</h2>
|
||||
<button className={shared.openingChevron}>
|
||||
{p.showDesc ? (
|
||||
<BiChevronDown size='3rem' />
|
||||
) : (
|
||||
<BiChevronLeft size='3rem' />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
<CSSTransition
|
||||
in={p.showDesc}
|
||||
timeout={1000}
|
||||
classNames='fadeTransition'
|
||||
>
|
||||
{p.showDesc ? (
|
||||
<div>
|
||||
{p.paragraphs.map((parag, index) => (
|
||||
<p key={index}>{parag.toString()}</p>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<span></span>
|
||||
)}
|
||||
</CSSTransition>
|
||||
<hr />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<h2 className={styles.year}>2023</h2>
|
||||
{performers2023.map((p) => (
|
||||
<div className={styles.performerContainer} key={p.id}>
|
||||
|
||||
@@ -5,10 +5,10 @@ const Lead = () => {
|
||||
return (
|
||||
<div className={styles.leadContainer}>
|
||||
<h2 className={styles.leadTitle}>
|
||||
Nähdään taas ensi kesänä 2025!
|
||||
<span className={styles.dateAndPlace}>
|
||||
7. ja 14.6. Naantalin saaristo
|
||||
12. - 14.6.
|
||||
</span>
|
||||
Vuonna 2024 saarifestivaali tuo runoutta ja musiikkia kahteen kesäkuun perjantaihin
|
||||
</h2>
|
||||
{/* <p className={styles.leadText}>
|
||||
Runosaari on poikkitaiteellinen runofestivaali Livonsaaren, Palvan ja
|
||||
|
||||
@@ -17,8 +17,8 @@ const Home: NextPage = () => {
|
||||
<Program />
|
||||
<Performers />
|
||||
{/* <Workshops /> */}
|
||||
<Info />
|
||||
<Collaboration />
|
||||
{/* <Info /> */}
|
||||
{/* <Collaboration /> */}
|
||||
{/* <Archive /> */}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -4,7 +4,7 @@ import styles from '../styles/Performers.module.scss';
|
||||
import shared from '../styles/Shared.module.scss';
|
||||
import Performer from '../types/Performer';
|
||||
import { BiChevronDown, BiChevronLeft } from 'react-icons/bi';
|
||||
import PerformersData from '../data/performers/2024';
|
||||
import PerformersData from '../data/performers/2025';
|
||||
import { CSSTransition } from 'react-transition-group';
|
||||
import Link from 'next/link';
|
||||
import { FiExternalLink } from 'react-icons/fi';
|
||||
@@ -87,7 +87,7 @@ const Performers = () => {
|
||||
</div>
|
||||
))
|
||||
) : (
|
||||
<i>Lisätietoja tulossa myöhemmin...</i>
|
||||
<i className={shared.moreInfoLaterText}>Lisätietoja tulossa myöhemmin...</i>
|
||||
)}
|
||||
<Link href="/archive">
|
||||
<a>
|
||||
|
||||
@@ -17,7 +17,7 @@ const Program = () => {
|
||||
<section className={shared.page}>
|
||||
<h1 id='program-start'>Ohjelma</h1>
|
||||
|
||||
{/* Vaihela */}
|
||||
{/* Vaihela
|
||||
<h2 className={styles.programTitle}>
|
||||
<span>7.6.</span>
|
||||
<a href='https://www.cafelaituri.fi'>
|
||||
@@ -39,8 +39,8 @@ const Program = () => {
|
||||
</ul>
|
||||
<i>Ohjelma täydentyy...</i>
|
||||
<hr className={styles.programHr} />
|
||||
|
||||
{/* Laituri */}
|
||||
*/}
|
||||
{/* Laituri
|
||||
<h2 className={styles.programTitle}>
|
||||
<span>14.6.</span>
|
||||
<a href='https://www.cafelaituri.fi'>
|
||||
@@ -63,6 +63,9 @@ const Program = () => {
|
||||
</ul>
|
||||
<i>Ohjelma täydentyy...</i>
|
||||
<hr className={styles.programHr} />
|
||||
*/}
|
||||
|
||||
<i className={shared.moreInfoLaterText}>Lisätietoja tulossa myöhemmin...</i>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user