Skip to content

Commit

Permalink
Merge pull request #523 from Schrodinger-Hat/feat/515
Browse files Browse the repository at this point in the history
Feat/515 - add gallery page
  • Loading branch information
TheJoin95 authored Mar 13, 2024
2 parents c499950 + d59bb8c commit 5bee17f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 12 deletions.
20 changes: 12 additions & 8 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,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 @@ -140,7 +143,7 @@ export default function Header() {
>
{t("photo_link")}
</a> */}
{new Date().getTime() < 1709805651000 &&
{/*
<a
className="button"
target="_blank"
Expand All @@ -151,12 +154,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 @@ -260,10 +261,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 @@ -276,13 +280,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>
</>
);
}

0 comments on commit 5bee17f

Please sign in to comment.