File tree Expand file tree Collapse file tree 3 files changed +18
-13
lines changed
Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
22import { diamondLinks , goldLinks , silverLinks , sponsorInfo } from '../../../public/data/data' ;
3- import SponsorModal from './sponsorModal ' ;
3+ import SponsorModal from './SponsorModal ' ;
44
55//import '/styles/sponsorLinks.module.css';
6- const logostyle = 'h-14 ' ;
6+ const logostyle = 'grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105 ' ;
77const logodiv = 'block gap-y-8 h-14' ;
88const background = 'rgba(57, 119, 248, 0.6)' ;
99// const outer = 'rounded-[4rem] w-[90rem] flex flex-col pl-14 py-14 gap-16';
@@ -38,7 +38,7 @@ function SponsorLinks() {
3838 setShowModal ( true ) ;
3939 } }
4040 >
41- < img className = { `${ logostyle } ` } src = { item . svg } alt = { item . alt } />
41+ < img className = { `h-14 ${ logostyle } ` } src = { item . svg } alt = { item . alt } />
4242 </ div >
4343 ) ;
4444 } ) }
@@ -58,7 +58,7 @@ function SponsorLinks() {
5858 setShowModal ( true ) ;
5959 } }
6060 >
61- < img className = " h-6" src = { item . svg } alt = { item . alt } />
61+ < img className = { ` h-6 ${ logostyle } ` } src = { item . svg } alt = { item . alt } />
6262 </ div >
6363 ) ;
6464 } ) }
@@ -78,7 +78,7 @@ function SponsorLinks() {
7878 setShowModal ( true ) ;
7979 } }
8080 >
81- < img className = " h-8" src = { item . svg } alt = { item . alt } />
81+ < img className = { ` h-8 ${ logostyle } ` } src = { item . svg } alt = { item . alt } />
8282 </ div >
8383 ) ;
8484 } ) }
Original file line number Diff line number Diff line change @@ -10,18 +10,23 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
1010 }
1111 return (
1212 < div
13- className = "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"
13+ className = "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50 "
1414 onClick = { ( ) => {
1515 props . setFalse ( ) ;
1616 } }
1717 >
1818
1919 < div className = "bg-[#3977f8] relative w-[800px] h-[550px] mb-10 mx-10 rounded-xl flex flex-col items-center justify-center" >
20- < motion . a whileHover = { {
21- scale : 1.2 ,
22- transition : { duration : 0.2 } ,
23- } } className = "w-4/5 m-10 flex flex-col items-center justify-center" href = { props . sponsorInfo . href } >
24- < img className = 'w-4/5 max-w-[400px] max-h-[250px]' src = { `./${ props . sponsorInfo . svg } ` } alt = { props . sponsorInfo . alt } />
20+ < motion . a
21+ whileHover = { {
22+ scale : 1.2 ,
23+ transition : { duration : 0.2 } ,
24+ } }
25+ className = "w-4/5 m-10 flex flex-col items-center justify-center"
26+ href = { props . sponsorInfo . href }
27+ target = "_blank"
28+ >
29+ < img className = 'w-4/5 max-w-[300px] max-h-[200px]' src = { `./${ props . sponsorInfo . svg } ` } alt = { props . sponsorInfo . alt } />
2530 </ motion . a >
2631 < h3 className = "mx-10 py-10" > { props . sponsorInfo . description } </ h3 >
2732 < button
@@ -33,4 +38,4 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
3338 </ div >
3439 </ div >
3540 ) ;
36- }
41+ }
Original file line number Diff line number Diff line change 11import Navbar from '@/components/Navbar' ;
22import Footer from '@/components/Footer' ;
3- import SponsorLinks from '@/components/Sponsors/sponsorlinks ' ;
3+ import SponsorLinks from '@/components/Sponsors/SponsorLinks ' ;
44
55export default function SponsorsPage ( ) {
66 return (
You can’t perform that action at this time.
0 commit comments