Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Aug 27, 2024
1 parent f654cba commit f5eeda7
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 309 deletions.
16 changes: 13 additions & 3 deletions src/components/pages/event/pudgy-asia-tour/Pudgy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useState } from 'react'
import Modal from 'components/Modal'
import { AnimatePresence, motion, useAnimate } from 'framer-motion'
import Logo from './assets/Punkga logo.svg'
import Link from 'next/link'
export default function PudgyList() {
const [page, setPage] = useState(1)
const [selected, setSelected] = useState(pudgyData[0])
Expand Down Expand Up @@ -67,7 +68,11 @@ export default function PudgyList() {
<div className='font-semibold text-lg line-clamp-4'>{selected.description}</div>
<div className='flex gap-3 items-center font-semibold text-lg mt-4'>
<Image src={selected.flag} alt='' className='h-6 w-auto rounded-sm' />
<span className='text-[#2D72FB]'>@{selected.owner}</span>
<span className='text-[#2D72FB]'>
<Link href={`https://x.com/${selected.owner}`} target='_blank'>
@{selected.owner}
</Link>
</span>
</div>
</div>
<div className='card-back grid place-items-center rounded-mlg bg-[#3b86f7]'>
Expand All @@ -91,7 +96,10 @@ export default function PudgyList() {
setTimeout(() => setSelected(data), 500)
}
}}>
<Image src={data.image} alt='' className='w-full aspect-square rounded-mlg border border-black' />
<div className='relative'>
<Image src={data.image} alt='' className='w-full aspect-square rounded-mlg border border-black' />
{selected.name == data.name && <div className='absolute inset-0 rounded-mlg border-[3px] border-text-info-primary'></div>}
</div>
<div className='mt-4 trailer-font font-black text-lg uppercase'>{data.name}</div>
</div>
))}
Expand Down Expand Up @@ -145,7 +153,9 @@ const Pudgy = ({ data }) => {
<div className='font-semibold text-lg'>{data.description}</div>
<div className='flex gap-3 items-center font-semibold text-lg mt-4'>
<Image src={data.flag} alt='' className='h-6 w-auto rounded-sm' />
<span>@{data.owner}</span>
<Link href={`https://x.com/${data.owner}`} target='_blank'>
@{data.owner}
</Link>
</div>
</div>
<div className='absolute -bottom-20 left-1/2 -translate-x-1/2' onClick={() => setOpen(false)}>
Expand Down
34 changes: 17 additions & 17 deletions src/components/pages/event/pudgy-asia-tour/TimeLine.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Image from 'next/image'
import PudgyWithCup from './assets/pudgy-with-cup.svg'
import Bamboo from './assets/bamboo.svg'
import Image1 from './assets/i1.png'
import Cup from './assets/cuo.svg'
import Image2 from './assets/i2.png'
import R1 from './assets/r1.png'
import R2 from './assets/r2.png'
Expand All @@ -19,17 +19,17 @@ export default function TimeLine() {
</div>
<div className='relative mt-28 font-semibold'>
<Image src={TimeLineImage} alt='' className='w-full' />
<div className='absolute flex flex-col items-center top-[-12%] left-[9.5%]'>
<div className='absolute flex flex-col items-center top-[-16%] left-[6.5%]'>
<div className='text-sm text-[#009640]'>01/08/2024</div>
<div className='text-lg'>{t('Register')}</div>
<div className='text-lg text-center max-w-[154px]'>{t(`"Join the Waddle and start flappin'!"`)}</div>
</div>
<div className='absolute flex flex-col items-center top-[21%] left-[37.2%]'>
<div className='absolute flex flex-col items-center top-[16%] left-[35.2%]'>
<div className='text-sm text-[#009640]'>01/09/2024</div>
<div className='text-lg'>{t('Submit your artwork')}</div>
<div className='text-lg text-center max-w-[170px]'>{t(`"Show your best flap before this day!"`)}</div>
</div>
<div className='absolute flex flex-col items-center top-[0%] right-[27.4%]'>
<div className='absolute flex flex-col items-center top-[-6%] right-[25.4%]'>
<div className='text-sm text-[#009640]'>04/09/2024</div>
<div className='text-lg'>{t('Grading & Awards')}</div>
<div className='text-lg text-center max-w-[165px]'>{t(`"Shout out to the grooviest flappers!"`)}</div>
</div>
<div className='absolute cursor-pointer right-[9.8%] top-[-18%]'>
<svg xmlns='http://www.w3.org/2000/svg' width='147' height='85' viewBox='0 0 147 85' fill='none'>
Expand Down Expand Up @@ -76,25 +76,25 @@ export default function TimeLine() {
</div>
<Image src={PudgyWithCup} alt='' className='w-[170px]' />
</div>
<div className='flex flex-col items-center mt-5 font-semibold -space-y-4'>
<div className='flex flex-col items-center mt-5 font-semibold -space-y-5'>
<div className='flex'>
<div>
<Image src={R1} alt='' className='w-[131px]' />
</div>
<div className='w-[200px] pt-7'>
<div className='w-[200px] pt-5'>
<div className='text-sm text-[#009640]'>01/08/2024</div>
<div className='text-lg'>{t('Register')}</div>
<Image src={Bamboo} alt='' className='w-20 mt-7' />
<div className='text-lg max-w-[154px]'>{t(`"Join the Waddle and start flappin'!"`)}</div>
<Image src={Bamboo} alt='' className='w-[205px] mt-3 -ml-5' />
</div>
</div>
<div className='flex'>
<div>
<Image src={R2} alt='' className='w-[131px]' />
</div>
<div className='w-[200px] pt-7'>
<div className='w-[200px] pt-5'>
<div className='text-sm text-[#009640]'>01/09/2024</div>
<div className='text-lg'>{t('Submit your artwork')}</div>
<Image src={Image1} alt='' className='w-[167px] mt-7' />
<div className='text-lg max-w-[170px]'>{t(`"Show your best flap before this day!"`)}</div>
<Image src={Image2} alt='' className='w-[174px] mt-4 -ml-5' />
</div>
</div>
<div className='flex relative w-full justify-center'>
Expand All @@ -104,10 +104,10 @@ export default function TimeLine() {
<div className='w-full h-[88px] absolute inset-x-0 top-[79%] bg-[#474749] shadow-[0px_14px_0px_0px_#000] grid place-items-center'>
<Image src={Line} alt='' className='w-screen h-3 object-cover' />
</div>
<div className='w-[200px] pt-11 relative'>
<div className='w-[200px] pt-5 relative'>
<div className='text-sm text-[#009640]'>04/09/2024</div>
<div className='text-lg'>{t('Grading & Awards')}</div>
<Image src={Image2} alt='' className='w-[173px] mt-7' />
<div className='text-lg max-w-[165px]'>{t(`"Shout out to the grooviest flappers!"`)}</div>
<Image src={Cup} alt='' className='w-[92px] mt-4 ml-4' />
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit f5eeda7

Please sign in to comment.