diff --git a/app/components/navbar.tsx b/app/components/navbar.tsx index b485cc6..13d6bc7 100644 --- a/app/components/navbar.tsx +++ b/app/components/navbar.tsx @@ -8,7 +8,7 @@ import { } from '@heroicons/react/24/outline' import Link from 'next/link' import type { Navigation } from '../interfaces/navigation' -import type { Themes } from '../interfaces/themes' +import type { Theme } from '../interfaces/theme' import { metadata } from '../layout' export const navigation: Navigation[] = [ @@ -33,7 +33,7 @@ export const navigation: Navigation[] = [ }, ] as const -const themes: Themes[] = [ +const themes: Theme[] = [ { name: 'デフォルト', value: 'light' }, { name: 'ダーク', value: 'dark' }, { name: 'カップケーキ', value: 'cupcake' }, @@ -77,8 +77,12 @@ export function Navbar() { {metadata.title as string} - - +
+ +
+
+ +
) } @@ -105,43 +109,39 @@ function DropdownMenu() { function NavItems() { return ( -
-
    - {navigation.map((item) => ( -
  • - - - {item.name} - -
  • - ))} -
-
+ ) } function ThemeController() { return ( -
-
-
- テーマ - -
-
    - {themes.map((theme) => ( -
  • - -
  • - ))} -
+
+
+ テーマ +
+
    + {themes.map((theme) => ( +
  • + +
  • + ))} +
) } diff --git a/app/interfaces/themes.ts b/app/interfaces/theme.ts similarity index 58% rename from app/interfaces/themes.ts rename to app/interfaces/theme.ts index 958586a..4e2d2df 100644 --- a/app/interfaces/themes.ts +++ b/app/interfaces/theme.ts @@ -1,4 +1,4 @@ -export type Themes = { +export type Theme = { name: string value: string }