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,19 @@ 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;
95- @apply shadow-sm;
96- @apply hover :shadow-slate-200;
9781
9882 @apply text-pretty;
9983
10084 .overlay {
10185 @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;
86+ @apply bg-gradient-to-r from -orange -500 to -amber -500;
10387 @apply h-full w-full;
10488 @apply rounded-md;
105- @apply transition-opacity duration-300 ease-in-out;
89+ @apply transition-opacity duration-100 ease-in-out;
10690
10791 h3 {
10892 @apply text-white text-2xl font-bold;
@@ -114,22 +98,22 @@ let cardClicked = () => {
11498 }
11599
116100 .checkbox {
117- @apply transition-colors duration-300 ease-in delay-300;
118101 @apply flex items-center justify-center;
119102 @apply font-mono font-bold text-slate-300 text-2xl;
120103 @apply w-12 h-12;
121104 @apply rounded-full;
122- @apply bg-slate-100;
123- @apply border-2 border-slate-200;
105+ @apply bg-slate-100 dark :bg-slate-950 ;
106+ @apply border-2 border-slate-200 dark :border-slate-800 ;
124107 }
125108
126109 .content {
127110 @apply ml-6;
128- @apply text-slate-500;
111+ @apply text-slate-500 dark :text-slate-400 ;
129112
130113 h3 {
131114 @apply m-0;
132115 @apply text-slate-900;
116+ @apply dark :text-slate-200;
133117 }
134118
135119 p {
@@ -138,6 +122,12 @@ let cardClicked = () => {
138122 }
139123 }
140124
125+ &:not (.checked ) {
126+ @apply shadow-sm;
127+ @apply hover :shadow-amber-200;
128+ @apply dark :hover:shadow-amber-800;
129+ }
130+
141131 & .checked {
142132 .content {
143133 @apply text-slate-400;
0 commit comments