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

fix: links of resource section will open in new tab #435

Closed
wants to merge 14 commits into from
Closed
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
2 changes: 1 addition & 1 deletion components/Navbar/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function Navbar() {
onMouseLeave={handleSubMenuLeave}
>
{link.subMenu.map((subL) => (
<Link href={subL.ref} key={subL.title}>
<Link href={subL.ref} target={subL.target} key={subL.title}>
<div className={`flex items-center ${link.subMenu.length === 1 ? "justify-center" : "justify-start"} min-h-[32px] text-[16px] hover:scale-95 hover:translate-x-1 transition-all`}>
{subL.title}
</div>
Expand Down
1 change: 1 addition & 0 deletions components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function Venue({ className, city }) {
}} className='w-8 h-8 bg-white rounded-xl flex items-center justify-center ml-auto'>
<Image src='/img/mapIcon.svg' alt='Map Icon' width={24} height={24} />
</button>
<div></div>
</div>
<div></div>
<div className='text-white'>
Expand Down
4 changes: 3 additions & 1 deletion config/city-lists.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
],
"ticket": "https://ticket.apidays.global/event/apidays-london-2024/869eca20-bfb6-4103-b8bb-d0348932e940/",
"isFree": true,
"ended": true
"ended": true,
"recordings":"https://youtube.com/playlist?list=PLbi1gRlP7pig77jJD2ER9wfTxPSzBrLW5&si=YPmjUsj5mU6FpLhB",
"playlist":"https://www.youtube.com/embed/videoseries?si=92z0xOVroBuDUvMR&amp;list=PLbi1gRlP7pig77jJD2ER9wfTxPSzBrLW5"
},
{
"name": "Paris",
Expand Down
5 changes: 5 additions & 0 deletions config/links.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"title": "London Slides",
"ref": "https://drive.google.com/drive/folders/1PsIZSsQmsvSILZ83f9L-2ErV-pXM6PQf?usp=drive_link",
"target": "_blank"
},
{
"title": "London Talks",
"ref": "https://youtube.com/playlist?list=PLbi1gRlP7pig77jJD2ER9wfTxPSzBrLW5&si=YPmjUsj5mU6FpLhB",
"target": "_blank"
}


Expand Down
10 changes: 9 additions & 1 deletion pages/venue/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Venue({ city }) {
<Heading typeStyle='lg' className='text-white mt-[24px]'>
{city.date}
</Heading>
{city.ended ? "" : <div className='m-[30px]'>
{city.ended ? (city.playlist && <a href='#recordings'><Button className="w-[250px] h-[50px] m-8">Watch Recordings</Button></a>): <div className='m-[30px]'>
{city.ticket && <a href={city.ticket} target='_blank' rel='noreferrer'>
<Button className="px-8 m-2 w-[250px]">{city.isFree ? "Get Your Ticket" : "Register Now"}</Button>
</a>}
Expand All @@ -77,6 +77,14 @@ function Venue({ city }) {
<Agenda city={city} />
</div>}
</div>
<div id="recordings" className='flex justify-center'>
{city.ended ? (city.playlist &&
<div className='pt-10 mb-24 mx-44 lg:mx-7 flex justify-center flex-col items-center w-[90%] h-[550px] sm:h-72'>
<h1 className='text-white font-bold text-5xl mb-10'>Recordings</h1>
<iframe width="100%" height="100%" src={city.playlist} title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
) : <div></div>}
</div>
<div
id='sponsors'
>
Expand Down
Loading