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: add gallery section to aacot'24 conference website #412

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
50 changes: 50 additions & 0 deletions components/Gallery/gallery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/* eslint-disable react/no-unescaped-entities */
import React from 'react';
import Heading from '../Typography/heading';
import Button from '../Buttons/button';
import Link from 'next/link';

function Gallery() {
return (
<div className='p-24 container flex items-center justify-center w-full'>
<div className='flex flex-col items-center justify-center lg:w-full'>
<div className='text-center'>
<div className='flex items-center justify-center'>
<div className='w-[40px] h-[3px] bg-blue-400' />
<div className='ml-4 text-lg sm:text-sm text-white font-semibold'>
Our Events Gallery
</div>
</div>
<Heading typeStyle='heading-md' className='text-gradient lg:mt-10'>
AACoT'24 Gallery
</Heading>
<div className='flex flex-wrap gap-4 lg:gap-8 justify-center m-4'>
<div
style={{ '--image-url': `url('/img/gallery/1.png')` }}
className='lg:mt-16 bg-[image:var(--image-url)] bg-center bg-cover w-[470px] h-[550px] sm:w-full sm:h-[500px] rounded-[30px]'
/>
<div className='flex flex-col gap-4 sm:w-full'>
<div
style={{ '--image-url': `url('/img/gallery/3.png')` }}
className='lg:mt-16 bg-[image:var(--image-url)] bg-center bg-cover w-[470px] h-[267px] sm:w-full sm:h-[500px] rounded-[30px]'
/>
<div
style={{ '--image-url': `url('/img/gallery/2.png')` }}
className='lg:mt-16 bg-[image:var(--image-url)] bg-center bg-cover w-[470px] h-[267px] sm:w-full sm:h-[500px] rounded-[30px]'
/>
</div>

</div>

<div className='mt-10 flex flex-col items-center gap-4'>
<Link href=''>
<Button className='w-[200px]'>Browse All</Button>
</Link>
</div>
</div>
</div>
</div>
);
}

export default Gallery;
14 changes: 9 additions & 5 deletions config/links.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"ref": "/#tickets"
},
{
"title": "Sponsors",
"ref": "/#sponsors"
"title": "Gallery",
"ref": "/#gallery"
},
{
"title":"Past Editions",
"ref":"/editions"
"title": "Sponsors",
"ref": "/#sponsors"
},
{
"title":"Resources Hub",
Expand All @@ -50,7 +50,11 @@
"title": "Helsinki Slides",
"ref": "https://drive.google.com/drive/folders/1nY7dZF8WFXZ3r2rCWJDDoT2C_GMfQJMV?usp=drive_link",
"target": "_blank"
}
},
{
"title":"Past Editions",
"ref":"/editions"
}

]
}
Expand Down
4 changes: 4 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import speakers from '../config/speakers.json';
import Link from 'next/link';
import Button from '../components/Buttons/button';
import Dropdown from '../components/Dropdown/dropdown';
import Gallery from '../components/Gallery/gallery';

export default function Home() {
const isTablet = useMediaQuery({ maxWidth: '1118px' });
Expand Down Expand Up @@ -184,6 +185,9 @@ export default function Home() {
}
})}
</div>
<div id='gallery' className='mt-20'>
<Gallery />
</div>
</div>
</div>
<div id='sponsors' className='mt-20'>
Expand Down
Binary file added public/img/gallery/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/gallery/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/gallery/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading