Skip to content

Commit 18b030f

Browse files
committed
fix: add mobile version for apply today mascot
1 parent 5b5ca5b commit 18b030f

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

src/app/[lang]/(home)/grants/apply-today.tsx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ export function ApplyToday() {
2828
resources.
2929
</p>
3030
</div>
31-
<div className="flex gap-6">
31+
<div className="flex gap-6 not-xl:flex-col not-xl:items-start">
3232
<BisectButton
3333
variant="alternative"
3434
href="/en/grants/apply"
3535
className="bg-white text-[#0C46B0]"
3636
>
3737
Apply Now
3838
</BisectButton>
39-
<BisectButton variant="secondary" href="https://docs.google.com/document/d/e/2PACX-1vSBk6nq86dzmAHZSc9lFpIBkwAzgOaQop9b5OrSwVkMBdrBZjCtXlNb7Rd9PQFImrVHrExWgK73R8KX/pub" className="text-white hover:text-white">
39+
<BisectButton
40+
variant="secondary"
41+
href="https://docs.google.com/document/d/e/2PACX-1vSBk6nq86dzmAHZSc9lFpIBkwAzgOaQop9b5OrSwVkMBdrBZjCtXlNb7Rd9PQFImrVHrExWgK73R8KX/pub"
42+
className="text-white hover:text-white"
43+
>
4044
<BookOpenTextIcon /> View Guidelines
4145
</BisectButton>
4246
</div>
@@ -46,8 +50,27 @@ export function ApplyToday() {
4650
fill
4751
className="-z-20 object-cover object-top"
4852
/>
53+
{/* mobile mascot */}
54+
<div className="relative xl:hidden flex flex-col items-center">
55+
<div className="h-40 w-90 sm:h-60 sm:w-120 relative">
56+
<Image
57+
src={Mascot}
58+
alt="Yeti Mascot"
59+
className="translate-x-8 -translate-y-16 -scale-x-100 -rotate-12 object-cover object-top"
60+
draggable={false}
61+
/>
62+
<Image
63+
className="absolute top-0 left-0"
64+
src={Cubes}
65+
alt="Cubes Accent"
66+
width={96}
67+
height={96}
68+
/>
69+
</div>
70+
</div>
4971
</div>
50-
<div className="absolute -right-8 bottom-0 h-80 w-xl overflow-hidden">
72+
{/* desktop mascot */}
73+
<div className="absolute -right-8 bottom-0 h-80 w-xl overflow-hidden not-xl:hidden">
5174
<div className="relative">
5275
<Image
5376
src={Mascot}

0 commit comments

Comments
 (0)