Skip to content

Commit e6e1673

Browse files
committed
refactor animation of sponsor modal
1 parent a579b18 commit e6e1673

File tree

4 files changed

+11
-30
lines changed

4 files changed

+11
-30
lines changed

frontend/src/components/Resources/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import Image from 'next/image';
2-
import { resourceCards, stage1, stage2, stage3 } from '../../../public/data/resourceCards';
2+
import { resourceCards, stage1, stage2, stage3 } from '@/../public/data/resourceCards';
33

44
const boxStyling =
55
'border border-[#595F6D] rounded-lg hover:border-[#788093] hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300';
6-
const socialsBoxStyling =
7-
'xl:col-span-1 col-span-3 flex justify-center pt-2 pb-2 border border-[#595F6D] hover:border-[#788093] rounded-lg hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300';
86

97
const Resources = () => {
108
return (

frontend/src/components/Sponsors/SponsorLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react';
2-
import { diamondLinks, goldLinks, silverLinks, sponsorInfo } from '../../../public/data/sponsorInfos';
2+
import { diamondLinks, goldLinks, silverLinks, sponsorInfo } from '@/../public/data/sponsorInfos';
33
import SponsorModal from './SponsorModal';
44

55
const logostyle = 'grow-on-hover cursor-pointer transform transition-transform duration-300 hover:scale-105';

frontend/src/components/Sponsors/SponsorModal.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { sponsorInfo } from '../../../public/data/sponsorInfos';
2-
import {motion} from 'framer-motion'
1+
import { sponsorInfo } from '@/../public/data/sponsorInfos';
32

43
export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; setFalse: () => void }) {
54
if (props.sponsorInfo === null) {
@@ -18,17 +17,17 @@ export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; s
1817
>
1918

2019
<div className="bg-[#3977f8] relative w-[800px] h-[550px] mb-10 mx-10 rounded-xl flex flex-col items-center justify-center">
21-
<motion.a
22-
whileHover={{
23-
scale: 1.2,
24-
transition: { duration: 0.2 },
25-
}}
26-
className="w-4/5 m-10 flex flex-col items-center justify-center"
20+
<a
21+
className="w-4/5 m-10 flex flex-col items-center justify-center transform transition-transform duration-300 hover:scale-105"
2722
href={props.sponsorInfo.href}
2823
target="_blank"
2924
>
30-
<img className='w-4/5 max-w-[300px] max-h-[200px]' src={`./${props.sponsorInfo.svg}`} alt={props.sponsorInfo.alt} />
31-
</motion.a >
25+
<img
26+
className="w-4/5 max-w-[300px] max-h-[200px]"
27+
src={`./${props.sponsorInfo.svg}`}
28+
alt={props.sponsorInfo.alt}
29+
/>
30+
</a>
3231
<h3 className="mx-10 py-10">{props.sponsorInfo.description}</h3>
3332
<button
3433
onClick={props.setFalse}

frontend/src/styles/sponsorLinks.module.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)