diff --git a/src/app/globals.css b/src/app/globals.css index e551000..add78f3 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -121,7 +121,7 @@ body { /* Range input */ input[type="range"] { - @apply appearance-none bg-transparent cursor-pointer; + @apply appearance-none bg-transparent not-disabled:cursor-pointer; } /* Track */ @@ -135,8 +135,7 @@ input[type="range"]::-moz-range-track { /* Thumb */ input[type="range"]::-webkit-slider-thumb { - @apply appearance-none size-4 bg-orange-400 border-2 border-orange-500 rounded-full shadow-md transition; - margin-top: -6px; /* center thumb vertically */ + @apply appearance-none size-4 bg-orange-400 border-2 border-orange-500 rounded-full shadow-md transition -mt-1.5; } input[type="range"]::-moz-range-thumb { @@ -145,9 +144,9 @@ input[type="range"]::-moz-range-thumb { /* Hover */ input[type="range"]:hover::-webkit-slider-thumb { - @apply bg-orange-500; + @apply not-disabled:bg-orange-500; } input[type="range"]:hover::-moz-range-thumb { - @apply bg-orange-500; + @apply not-disabled:bg-orange-500; } diff --git a/src/app/mii/[id]/page.tsx b/src/app/mii/[id]/page.tsx index 59d0011..ea5be47 100644 --- a/src/app/mii/[id]/page.tsx +++ b/src/app/mii/[id]/page.tsx @@ -7,15 +7,18 @@ import { Icon } from "@iconify/react"; import { auth } from "@/lib/auth"; import { prisma } from "@/lib/prisma"; +import { MiiPlatform } from "@prisma/client"; import LikeButton from "@/components/like-button"; import ImageViewer from "@/components/image-viewer"; -import DeleteMiiButton from "@/components/delete-mii"; -import ShareMiiButton from "@/components/share-mii-button"; +import DeleteMiiButton from "@/components/mii/delete-mii-button"; +import ShareMiiButton from "@/components/mii/share-mii-button"; import ThreeDsScanTutorialButton from "@/components/tutorial/3ds-scan"; import SwitchScanTutorialButton from "@/components/tutorial/switch-scan"; import Description from "@/components/description"; -import { MiiPlatform } from "@prisma/client"; +import MiiInstructions from "@/components/mii/instructions"; + +import { SwitchMiiInstructions } from "@/types"; interface Props { params: Promise<{ id: string }>; @@ -120,7 +123,7 @@ export default async function MiiPage({ params }: Props) {
There is nothing here...
+There is nothing here...
)} diff --git a/src/app/page.tsx b/src/app/page.tsx index 801e5e7..40482a7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,8 +7,8 @@ import { auth } from "@/lib/auth"; import { prisma } from "@/lib/prisma"; import Countdown from "@/components/countdown"; -import MiiList from "@/components/mii-list"; -import Skeleton from "@/components/mii-list/skeleton"; +import MiiList from "@/components/mii/list"; +import Skeleton from "@/components/mii/list/skeleton"; interface Props { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; diff --git a/src/app/profile/[id]/page.tsx b/src/app/profile/[id]/page.tsx index 422d218..88dd476 100644 --- a/src/app/profile/[id]/page.tsx +++ b/src/app/profile/[id]/page.tsx @@ -5,8 +5,8 @@ import { Suspense } from "react"; import { prisma } from "@/lib/prisma"; import ProfileInformation from "@/components/profile-information"; -import MiiList from "@/components/mii-list"; -import Skeleton from "@/components/mii-list/skeleton"; +import MiiList from "@/components/mii/list"; +import Skeleton from "@/components/mii/list/skeleton"; interface Props { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; diff --git a/src/app/profile/likes/page.tsx b/src/app/profile/likes/page.tsx index abce75e..4d84cf6 100644 --- a/src/app/profile/likes/page.tsx +++ b/src/app/profile/likes/page.tsx @@ -5,8 +5,8 @@ import { Suspense } from "react"; import { auth } from "@/lib/auth"; import ProfileInformation from "@/components/profile-information"; -import Skeleton from "@/components/mii-list/skeleton"; -import MiiList from "@/components/mii-list"; +import Skeleton from "@/components/mii/list/skeleton"; +import MiiList from "@/components/mii/list"; interface Props { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; diff --git a/src/components/mii/dating-preferences.tsx b/src/components/mii/dating-preferences.tsx new file mode 100644 index 0000000..17844a9 --- /dev/null +++ b/src/components/mii/dating-preferences.tsx @@ -0,0 +1,38 @@ +import { ChangeEvent } from "react"; +import { MiiGender } from "@prisma/client"; +import { SwitchMiiInstructions } from "@/types"; + +interface Props { + data: SwitchMiiInstructions["datingPreferences"]; + onChecked?: (e: ChangeEvent