Skip to content

Commit b09fd6d

Browse files
committed
(feat) images move to public
1 parent 3327cb1 commit b09fd6d

File tree

9 files changed

+15
-18
lines changed

9 files changed

+15
-18
lines changed

src/app/(routes)/provisions/page.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import {
66
useWaitForTransaction,
77
useDisconnect,
88
} from 'wagmi';
9-
import airdropIcon from '@/assets/airdrop.webp';
10-
import investorIcon from '@/assets/investor.webp';
11-
import othersIcon from '@/assets/others.webp';
12-
import ccpIcon from '@/assets/ccp.webp';
13-
import kolIcon from '@/assets/kols.webp';
149
import {
1510
useAccount,
1611
useConnectors,
@@ -58,7 +53,7 @@ export default function Provisions() {
5853
ticketType: 2,
5954
description:
6055
'You should have completed more than five transactions on Hashstack V1 across three months, with $100+ cumulative value and $25 minimum supply/borrow balance.',
61-
icon: airdropIcon,
56+
icon: '/images/airdrop.webp',
6257
},
6358
{
6459
ticketId: 0,
@@ -69,7 +64,7 @@ export default function Provisions() {
6964
ticketType: 3,
7065
description:
7166
'You should have generated diverse, original content about Hashstack across multiple platforms, creating at least three distinct pieces in different formats.',
72-
icon: ccpIcon,
67+
icon: '/images/ccp.webp',
7368
},
7469
{
7570
ticketId: 0,
@@ -80,7 +75,7 @@ export default function Provisions() {
8075
ticketType: 0,
8176
description:
8277
'Early private round investors who contributed to our foundational stage are eligible to claim their benefits.',
83-
icon: investorIcon,
78+
icon: '/images/investor.webp',
8479
},
8580
{
8681
ticketId: 0,
@@ -91,7 +86,7 @@ export default function Provisions() {
9186
ticketType: 1,
9287
description:
9388
'Key community members who actively promoted our product across various channels qualify for this program.',
94-
icon: kolIcon,
89+
icon: '/images/kols.webp',
9590
},
9691
{
9792
ticketId: 0,
@@ -102,7 +97,7 @@ export default function Provisions() {
10297
ticketType: 4,
10398
description:
10499
'Individuals with previous SAFT allocations or past incentive program eligibility can claim through this section.',
105-
icon: othersIcon,
100+
icon: '/images/others.webp',
106101
},
107102
]);
108103

src/features/provisions/ProvisionCard.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ export const ProvisionCard = ({
2222
}: ProvisionCardProps) => {
2323
return (
2424
<>
25-
<div className='flex flex-col md:flex-row gap-8 lg:gap-12 mt-12'>
26-
<div className='flex justify-center items-center w-full md:w-[300px] lg:w-[360px] h-full border border-[#2C2B48] rounded-md overflow-hidden'>
25+
<div className='flex flex-col regular:flex-row gap-8 lg:gap-12 mt-12'>
26+
<div className='flex justify-center items-center w-full regular:w-[300px] lg:w-[360px] h-[200px] regular:h-[170px] lg:h-[198px] border border-[#2C2B48] rounded-md overflow-hidden flex-shrink-0'>
2727
<Image
2828
src={category.icon}
2929
alt={category.id}
30-
style={{
31-
width: '100%',
32-
height: '100%',
33-
objectFit: 'contain',
34-
}}
30+
width={360}
31+
height={360}
32+
quality={75}
33+
priority={false}
34+
loading='lazy'
35+
className='w-full h-full object-cover object-top'
3536
/>
3637
</div>
3738

src/types/common.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export type ProvisionCategory = {
88
EmissionRate: number;
99
ticketType: number;
1010
description: string;
11-
icon: StaticImageData;
11+
icon: string;
1212
};

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
theme: {
1212
screens: {
1313
sm: '500px',
14+
regular: '640px',
1415
md: '980px',
1516
lg: '1210px',
1617
},

0 commit comments

Comments
 (0)