update mobile voting screen
This commit is contained in:
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 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { Nunito } from "next/font/google";
|
import { Nunito } from "next/font/google";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import Link from "next/link";
|
import Image from "next/image";
|
||||||
|
|
||||||
const nunito = Nunito({
|
const nunito = Nunito({
|
||||||
weight: "900",
|
weight: "900",
|
||||||
@@ -25,11 +25,23 @@ export default function MobileVoting() {
|
|||||||
setVote(0.0);
|
setVote(0.0);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
{noHighlight ? (
|
||||||
src="https://media.tenor.com/HU0FukwCUH4AAAAm/nono.webp"
|
<Image
|
||||||
|
src="/no-cat.webp"
|
||||||
alt="icon"
|
alt="icon"
|
||||||
className="h-full w-full rounded object-contain"
|
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>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -40,11 +52,23 @@ export default function MobileVoting() {
|
|||||||
setVote(1.0);
|
setVote(1.0);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
{yesHighlight ? (
|
||||||
src="https://media.tenor.com/wtv7ADhTUD4AAAAm/dance-happy.webp"
|
<Image
|
||||||
|
src="/yes-cat.webp"
|
||||||
alt="icon"
|
alt="icon"
|
||||||
className="h-full w-full rounded object-contain"
|
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>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user