Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/515 - add gallery page #523

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default function Header() {
<Link onClick={closeSideBar} href={'/speakers'}>
{t('speakers_Link')}
</Link>
<Link onClick={closeSideBar} href={'/gallery'}>
Gallery
</Link>
{/* <Link onClick={closeSideBar} href={'/cfv'}>
{t('cfv_link')}
</Link> */}
Expand All @@ -137,7 +140,7 @@ export default function Header() {
>
{t("photo_link")}
</a> */}
{new Date().getTime() < 1709805651000 &&
{/*
<a
className="button"
target="_blank"
Expand All @@ -148,12 +151,10 @@ export default function Header() {
>
Free Tickets
</a>
}
{new Date().getTime() > 1709798400000 &&
<Link className="button" onClick={closeSideBar} href={'/agenda'}>
We are live!
</Link>
}
*/}
<div className="language-switcher">
<a onClick={(e) => setLanguage(e)} href="#">
{availableLocales[languageCode]}
Expand Down Expand Up @@ -254,10 +255,13 @@ export default function Header() {
<li>
<Link href={'/speakers'}>{t('speakers_Link')}</Link>
</li>
<li>
<Link href={'/gallery'}>Gallery</Link>
</li>
{/*<li>
<Link href={'/cfv'}>{t('cfv_link')}</Link>
</li> */}
{new Date().getTime() < 1709805651000 &&
{/*
<li>
<a
className="button"
Expand All @@ -270,13 +274,13 @@ export default function Header() {
Free Tickets
</a>
</li>
}
*/}
<li>
{new Date().getTime() > 1709798400000 &&
{/*
<Link className="button" onClick={closeSideBar} href={'/agenda'}>
We are live!
</Link>
}
*/}
</li>
</ul>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions pages/agenda-compact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export default function Agenda() {
</div>
</div>

{new Date().getTime() > 1709798400000 &&
{/*
<div className="container-stream-link">
<h2>We are live!</h2>
<a className="button" href={YT_LIVE_LINKS[trackSelected.toLowerCase()]} target="_blank" rel="noreferrer">
Click to follow the live stream on YouTube!
</a>
</div>}
</div>*/}

<div className="container">

Expand Down
4 changes: 2 additions & 2 deletions pages/agenda.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ export default function Agenda() {
</div>
</div>

{new Date().getTime() > 1709798400000 &&
{/*
<div className="container-stream-link">
<h2>We are live!</h2>
<a className="button" href={YT_LIVE_LINKS[trackSelected.toLowerCase()]} target="_blank" rel="noreferrer">
Click to follow the live stream on YouTube!
</a>
</div>}
</div>*/}

<div className="timeline">
{trackSelected === 'Alpha1' && (
Expand Down
34 changes: 34 additions & 0 deletions pages/gallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Hero from '../components/Hero';
import Image from "next/image";
import { ReactNode } from 'react';

export async function getStaticProps({ locale }: { locale: any }) {
return {
props: {
metas: {
title: 'Gallery, Open Source Day 2024 - Florence',
},
messages: (await import(`../public/locales/${locale}.json`)).default
}
};
}

export default function Gallery() {
return (
<>
<div className="container">
<Hero
title="Gallery"
subtitle="Available on Flickr"
originals={false}
/>
<section className="after_main">
<div style={{textAlign: "center"}}>
<p>Go to the <a href="https://flic.kr/s/aHBqjBhq5Y" rel="noreferrer" target="_blank">Flickr OSDay2024</a> album page</p>
<embed width={1200} height={600} src='https://embedr.flickr.com/photosets/72177720315430384?width=1200&height=600' />
</div>
</section>
</div>
</>
);
}