Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6e1673

Browse files
committed
refactor animation of sponsor modal
1 parenta579b18 commite6e1673

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
importImagefrom'next/image';
2-
import{resourceCards,stage1,stage2,stage3}from'../../../public/data/resourceCards';
2+
import{resourceCards,stage1,stage2,stage3}from'@/../public/data/resourceCards';
33

44
constboxStyling=
55
'border border-[#595F6D] rounded-lg hover:border-[#788093] hover:bg-[#070034] hover:bg-opacity-75 transition-all duration-300';
6-
constsocialsBoxStyling=
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
constResources=()=>{
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
importSponsorModalfrom'./SponsorModal';
44

55
constlogostyle='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
exportdefaultfunctionSponsorModal(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
<divclassName="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-
<imgclassName='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
<h3className="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)

[8]ページ先頭

©2009-2025 Movatter.jp