11<template >
2- <div
3- class =" front-page-card relative group"
4- :class =" checked ? 'checked' : ''"
5- @click =" cardClicked"
6- >
2+ <div class =" front-page-card relative group" :class =" checked ? 'checked' : ''" @click =" cardClicked" >
73 <div class =" relative checkbox" >
8- <span
9- class =" absolute transition-opacity duration-300 ease-out"
10- :class =" { 'opacity-0': checked, 'opacity-100 delay-500': !checked }"
11- >
4+ <span class =" absolute transition-opacity duration-300 ease-out"
5+ :class =" { 'opacity-0': checked, 'opacity-100 delay-500': !checked }" >
126 {{ step }}
137 </span >
14- <Icon
15- class =" w-7 h-7 bg-white transition-opacity duration-300 ease-out"
16- :class =" { 'opacity-0': !checked, 'opacity-100 delay-500': checked }"
17- name =" heroicons:check-20-solid"
18- ></Icon >
8+ <Icon class =" w-7 h-7 bg-white transition-opacity duration-300 ease-out"
9+ :class =" { 'opacity-0': !checked, 'opacity-100 delay-500': checked }" name =" heroicons:check-20-solid" ></Icon >
1910 </div >
2011 <div class =" content" >
2112 <h3 class =" relative" >
2213 {{ title }}
23- <span
24- class =" absolute left-0 top-1/2 transform -translate-y-1/2 transition-all bg-slate-400 duration-300"
25- :class =" checked ? 'w-full h-1 opacity-100' : 'w-0 opacity-0'"
26- ></span >
14+ <span class =" absolute left-0 top-1/2 transform -translate-y-1/2 transition-all bg-slate-400 duration-300"
15+ :class =" checked ? 'w-full h-1 opacity-100' : 'w-0 opacity-0'" ></span >
2716 </h3 >
2817 <p class =" text-sm relative" >
2918 {{ description }}
3019 <span
3120 class =" absolute left-0 top-1/2 transform -translate-y-1/2 transition-all bg-slate-400 delay-100 duration-300"
32- :class =" checked ? 'w-full h-1 opacity-100' : 'w-0 opacity-0'"
33- ></span >
21+ :class =" checked ? 'w-full h-1 opacity-100' : 'w-0 opacity-0'" ></span >
3422 </p >
3523 </div >
3624 <div v-if =" !checked" class =" overlay opacity-0 group-hover:opacity-100" >
3725 <div class =" overlay-content not-prose" >
3826 <h3 >{{ overlay.title }}</h3 >
3927 <p >{{ overlay.description }}</p >
4028 </div >
41- <Icon
42- class =" w-8 h-8 bg-white transition-opacity duration-300 ease-out"
43- name =" icon-park-outline:double-right"
44- ></Icon >
29+ <Icon class =" w-8 h-8 bg-white transition-opacity duration-300 ease-out" name =" icon-park-outline:double-right" >
30+ </Icon >
4531 </div >
4632 </div >
4733</template >
@@ -88,21 +74,22 @@ let cardClicked = () => {
8874 @apply dark :text-slate-50;
8975
9076 @apply border;
91- @apply border-gray-100 ;
92- @apply dark :border-gray-950 ;
77+ @apply border-slate-200 ;
78+ @apply dark :border-slate-800 ;
9379
9480 @apply rounded-lg;
9581 @apply shadow-sm;
96- @apply hover :shadow-slate-200;
82+ @apply hover :shadow-amber-200;
83+ @apply dark :hover:shadow-amber-800;
9784
9885 @apply text-pretty;
9986
10087 .overlay {
10188 @apply flex items-center justify-between space-x-2 absolute inset-0 px-10;
102- @apply bg-gradient-to-r from -cyan -500 to -blue -500;
89+ @apply bg-gradient-to-r from -orange -500 to -amber -500;
10390 @apply h-full w-full;
10491 @apply rounded-md;
105- @apply transition-opacity duration-300 ease-in-out;
92+ @apply transition-opacity duration-100 ease-in-out;
10693
10794 h3 {
10895 @apply text-white text-2xl font-bold;
@@ -114,22 +101,22 @@ let cardClicked = () => {
114101 }
115102
116103 .checkbox {
117- @apply transition-colors duration-300 ease-in delay-300;
118104 @apply flex items-center justify-center;
119105 @apply font-mono font-bold text-slate-300 text-2xl;
120106 @apply w-12 h-12;
121107 @apply rounded-full;
122- @apply bg-slate-100;
123- @apply border-2 border-slate-200;
108+ @apply bg-slate-100 dark :bg-slate-950 ;
109+ @apply border-2 border-slate-200 dark :border-slate-800 ;
124110 }
125111
126112 .content {
127113 @apply ml-6;
128- @apply text-slate-500;
114+ @apply text-slate-500 dark :text-slate-400 ;
129115
130116 h3 {
131117 @apply m-0;
132118 @apply text-slate-900;
119+ @apply dark :text-slate-200;
133120 }
134121
135122 p {
0 commit comments