File tree 6 files changed +15
-13
lines changed 6 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 11
11
@apply bg-[# 12b488 ] text-white px-3 py-2 rounded-md text-sm;
12
12
}
13
13
.card {
14
- @apply p-3 rounded-md bg-white shadow-md h-full mt-3;
14
+ @apply p-3 rounded-md bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 shadow-md h-full mt-3;
15
15
}
16
16
.default-margin {
17
17
@apply mx-auto;
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <header class =" shadow-sm bg-white" >
4
- <nav class =" container- mx-auto p-4 flex justify-between items-center" >
3
+ <header class =" shadow-sm bg-white dark:bg-slate-900 " >
4
+ <nav class =" container mx-auto p-4 flex justify-between items-center" >
5
5
<NuxtLink to =" /" class =" font-bold text-2xl"
6
- >Nuxt<span class =" text-black" >Home</span ></NuxtLink
6
+ >Nuxt<span class =" text-black dark:text-gray-300 " >Home</span ></NuxtLink
7
7
>
8
8
<ul class =" flex gap-4" >
9
9
<li ><NuxtLink to =" /todo" >To-Dos</NuxtLink ></li >
25
25
.btn {
26
26
color : white ;
27
27
}
28
+
29
+ body {
30
+ @apply bg-white dark :bg-gray-800 text-gray-700 dark :text-gray-300;
31
+ }
28
32
</style >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <header class =" shadow-sm bg-white" >
3
+ <header class =" shadow-sm bg-white dark:bg-slate-900 " >
4
4
<nav class =" container mx-auto p-4 flex justify-between items-center" >
5
5
<NuxtLink to =" /menu" class =" font-bold text-2xl grow text-[#12b488]"
6
- >Nuxt<span class =" text-black" >Menu</span ></NuxtLink
6
+ >Nuxt<span class =" text-black dark:text-gray-300 " >Menu</span ></NuxtLink
7
7
>
8
8
<ul class =" flex gap-4" >
9
9
<li ><NuxtLink to =" /" >Home</NuxtLink ></li >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <header class =" shadow-sm bg-white" >
3
+ <header class =" shadow-sm bg-white dark:bg-slate-900 " >
4
4
<nav class =" container mx-auto p-4 text-[#12b488]" >
5
5
<NuxtLink to =" /menu" class =" font-bold text-2xl"
6
- >Nuxt<span class =" text-black" >Todo</span ></NuxtLink
6
+ >Nuxt<span class =" text-black dark:text-gray-300 " >Todo</span ></NuxtLink
7
7
>
8
8
</nav >
9
9
</header >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<main >
3
- <section class =" bg-[#f1f1f1]" >
3
+ <section class =" bg-[#f1f1f1] dark:bg-slate-800 " >
4
4
<div
5
5
class =" container flex flex-col lg:flex-row items-center py-20 gap-10"
6
6
>
Original file line number Diff line number Diff line change @@ -31,10 +31,8 @@ const { data } = await useFetch<Recipe[]>("api/food/menus");
31
31
const recipes: Recipe [] = data .value || [];
32
32
33
33
const filteredMeals = computed (() =>
34
- recipes .filter (
35
- (
36
- meal // Ingen .value här på recipes
37
- ) => meal .name .toLowerCase ().includes (filterText .value .toLowerCase ()) // använd filterText här istället
34
+ recipes .filter ((meal ) =>
35
+ meal .name .toLowerCase ().includes (filterText .value .toLowerCase ())
38
36
)
39
37
);
40
38
</script >
You can’t perform that action at this time.
0 commit comments