update mobile voting screen

This commit is contained in:
2025-08-14 21:23:05 +02:00
parent 368628c070
commit 6216bd2c84
6 changed files with 35 additions and 11 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

+35 -11
View File
@@ -2,7 +2,7 @@
import { Nunito } from "next/font/google";
import { useState } from "react";
import Link from "next/link";
import Image from "next/image";
const nunito = Nunito({
weight: "900",
@@ -25,11 +25,23 @@ export default function MobileVoting() {
setVote(0.0);
}}
>
<img
src="https://media.tenor.com/HU0FukwCUH4AAAAm/nono.webp"
alt="icon"
className="h-full w-full rounded object-contain"
/>
{noHighlight ? (
<Image
src="/no-cat.webp"
alt="icon"
className="h-full w-full rounded object-contain"
width={200}
height={200}
/>
) : (
<Image
src="/no-cat-static.gif"
alt="icon"
className="h-full w-full rounded object-contain grayscale filter"
width={200}
height={200}
/>
)}
</button>
<button
@@ -40,11 +52,23 @@ export default function MobileVoting() {
setVote(1.0);
}}
>
<img
src="https://media.tenor.com/wtv7ADhTUD4AAAAm/dance-happy.webp"
alt="icon"
className="h-full w-full rounded object-contain"
/>
{yesHighlight ? (
<Image
src="/yes-cat.webp"
alt="icon"
className="h-full w-full rounded object-contain"
width={200}
height={200}
/>
) : (
<Image
src="/yes-cat-static2.gif"
alt="icon"
className="h-full w-full rounded object-contain grayscale filter"
width={200}
height={200}
/>
)}
</button>
</div>
</main>