Skip to content

Commit

Permalink
feat: CTA link for recorded talks.
Browse files Browse the repository at this point in the history
  • Loading branch information
RamGoel committed Jan 24, 2024
1 parent 8b831b4 commit db8c3e2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
16 changes: 12 additions & 4 deletions components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import React from 'react';
import Heading from '../Typography/heading';
import Paragraph from '../Typography/paragraph';
import Link from 'next/link';

import Image from 'next/image'
function Venue({ className, city }) {
return (
<Link href={`/venue/${city.name}`}>
<div className={`w-[500px] cursor-pointer sm:w-auto ${className}`}>
<Link href={`/venue/${city.name}`} className=''>
<div className={`w-[500px] cursor-pointer sm:w-auto min-h-[650px] ${className}`}>
<div className='w-[450px] sm:w-auto sm:h-[320px] card-bg flex items-center justify-center p-10'>
<img src={city.img} className='sm:w-[350px] h-[250px] rounded-lg hoverEffect' />
</div>
Expand All @@ -17,9 +17,17 @@ function Venue({ className, city }) {
<Heading typeStyle='lg' className='text-white text-[30px]'>
{city.name}, {city.country}
</Heading>
<Paragraph className='pt-[16px] pb-[8px]'>
<div className='flex flex-col justify-between items-baseline'>
<Paragraph className='pt-[16px] h-full pb-[8px]'>
{city.description}
</Paragraph>
{city.recordedTalk
? <div className='p-2 mt-auto absolute bottom-0 flex items-center justify-between w-[170px] bg-black text-white shadow-sm leading-6 px-4 rounded-lg font-semibold'>
<Image src={require('../../public/img/yt-icon.webp')} alt='youtube icon' width={20} height={20}/>
<Link href={city.recordedTalk} >Recorded Talk</Link>
</div>
: null}
</div>
</div>
</div>
</Link>
Expand Down
4 changes: 4 additions & 0 deletions config/city-lists.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "London",
"country": "UK",
"date": "September 20, 2023",
"recordedTalk":null,
"description": "Join us in London for the AsyncAPI Conference and unlock the API of opportunities! Let's bridge the messaging gap and create a tech buzz you will want to experience!",
"img": "/img/london.jpeg",
"address": "IBM UK Limited 20 York Road London SE1 7ND",
Expand All @@ -18,6 +19,7 @@
{
"name": "Madrid",
"country": "Spain",
"recordedTalk":"https://www.youtube.com/playlist?list=PLbi1gRlP7pihD-7XYb6c9wcTdkavDzF3_",
"date": "October 19, 2023",
"description": "Join us in Madrid for AsyncAPI Conference and learn how to speak fluent API! Let's taco about messaging and have a fiesta you will remember!",
"img": "https://images.unsplash.com/photo-1539037116277-4db20889f2d4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80",
Expand All @@ -33,6 +35,7 @@
{
"name": "Bangalore",
"country": "India",
"recordedTalk":"https://www.youtube.com/playlist?list=PLbi1gRlP7pijVocLZS7FeWKA4NBzJa7_Z",
"date": "November 30, 2023",
"description": "Join us in Bengaluru for the AsyncAPI Conference and decode the language of APIs! Let's crack the language of APIs and ignite a tech revolution with some spice you'll remember!",
"img": "https://images.unsplash.com/photo-1596176530529-78163a4f7af2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2454&q=80",
Expand All @@ -48,6 +51,7 @@
{
"name": "Paris",
"country": "France",
"recordedTalk":null,
"date": "December 6-8, 2023",
"description": "Join us at apidays Paris for the AsyncAPI Conference and experience the art of API perfection! Let's craft a symphony of messaging and celebrate tech in style!",
"img": "https://images.unsplash.com/photo-1508050919630-b135583b29ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2306&q=80",
Expand Down
2 changes: 1 addition & 1 deletion pages/editions/[year].js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import cities from '../../config/city-lists.json';
import speakers from '../../config/speakers.json';
import Venue from '../../components/Venue/venue';
import Head from 'next/head';
import Header from '../../components/Header/header';
import About from '../../components/About/about';

const extractYear = (dateString) => {
return dateString.split(' ').pop();
}
Expand Down
Binary file added public/img/yt-icon.webp
Binary file not shown.

0 comments on commit db8c3e2

Please sign in to comment.