Skip to content

Commit da8953b

Browse files
authored
feat: add hover transform effect to card components (asyncapi#599)
Co-authored-by: Ram Shukla <codewithrex@gmail.com>
1 parent 041ddd6 commit da8953b

File tree

3 files changed

+5
-29
lines changed

3 files changed

+5
-29
lines changed

components/Sponsors/sponsors.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ function Sponsors({ eventSponsors, financialSponsor }) {
2020
we orchestrate an unforgettable celebration.
2121
</Paragraph>
2222
</div>
23-
<Heading
24-
typeStyle="heading-md"
25-
className="text-white mt-10 sm:text-2xl sm:mt-5"
26-
>
27-
Event and Host Sponsor
28-
</Heading>
23+
<Heading typeStyle='heading-md' className='text-gray-800 mt-10 sm:text-2xl sm:mt-5'>Event and Host Sponsor</Heading>
2924
<div className="flex justify-center w-[650px] sm:w-full flex-col items-center">
3025
{eventSponsors &&
3126
eventSponsors.map((sponsor) => (
@@ -48,12 +43,7 @@ function Sponsors({ eventSponsors, financialSponsor }) {
4843
<div className="flex flex-col space-y-6">
4944
{financialSponsor && (
5045
<div>
51-
<Heading
52-
typeStyle="heading-md"
53-
className="text-white mb-12 sm:text-2xl"
54-
>
55-
Financial Sponsor
56-
</Heading>
46+
<Heading typeStyle='heading-md' className='text-gray-800 mb-12 sm:text-2xl'>Financial Sponsor</Heading>
5747
{financialSponsor.map((sponsor) => (
5848
<div
5949
key={sponsor.image}

components/Venue/venue.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ function Venue({ className, city }) {
2929
return (
3030
<Link href={`/venue/${city.name}`}>
3131
<div style={{background: `linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0, .3)), url(${city.img})`, backgroundSize: "cover"}}
32-
className='relative w-[300px] h-[400px] sm:w-[250px] sm:h-[350px] card-bg rounded-md bg-[image:var(--image-url)] flex items-center justify-center p-4 cursor-pointer m-2'>
33-
<div className='flex justify-between flex-col w-full h-full'>
32+
className='relative w-[300px] h-[400px] sm:w-[250px] sm:h-[350px] card-bg rounded-md bg-[image:var(--image-url)] flex items-center justify-center p-4 cursor-pointer m-3 hover:scale-105 hover:shadow-xl transition-transform duration-300 ease-in-out'> <div className='flex justify-between flex-col w-full h-full'>
3433
<div className='flex items-center'>
3534
{city.cfp? <div className={`border ${textColor} text-md rounded-lg p-1 text-center mt-2`}>cfp is open</div> :null}
3635
<button onClick={(e) => {
3736
e.preventDefault()
3837
window.open(city.map, '_blank', 'noopener')
39-
}} className='w-8 h-8 bg-white rounded-xl flex items-center justify-center ml-auto'>
40-
<Image src='/img/mapIcon.svg' alt='Map Icon' width={24} height={24} />
38+
}} className='w-8 h-8 bg-white rounded-xl flex items-center justify-center ml-auto hover:bg-gray-400 transition-colors duration-300'> <Image src='/img/mapIcon.svg' alt='Map Icon' width={24} height={24} />
4139
</button>
4240
</div>
4341
<div></div>

pages/index.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,7 @@ export default function Home() {
233233
</div>
234234
</div>
235235
<div id="sponsors" className="mt-20">
236-
<Sponsors
237-
eventSponsors={[
238-
{
239-
image: "/img/logos/apidays.png",
240-
websiteUrl: "https://www.apidays.global/",
241-
},
242-
{
243-
image: "/img/logos/APICONF-LOGO-White.png",
244-
websiteUrl: "https://apiconf.net/",
245-
},
246-
]}
247-
// financialSponsor={[{image:"/img/graviteeio.svg" , websiteUrl: "https://www.gravitee.io/",className:"w-[250px] h-[50px]" } , {image:"/img/postman.png" ,websiteUrl:"https://www.postman.com/",className:"w-[240px] h-[70px]"}]}
248-
/>
236+
<Sponsors eventSponsors={[{image:'/img/apidays_2.webp',websiteUrl:"https://www.apidays.global/"}]} financialSponsor={[{image:"/img/graviteeIo_1.png" , websiteUrl: "https://www.gravitee.io/",className:"w-[250px] h-[50px]" } , {image:"/img/postman_1.png" ,websiteUrl:"https://www.postman.com/",className:"w-[240px] h-[70px]"}]} />
249237
</div>
250238
<div className="mt-5">
251239
<Subscription />

0 commit comments

Comments
 (0)