@@ -12,99 +12,55 @@ const open = ref<boolean>(true)
12
12
</script >
13
13
14
14
<template >
15
- <div
16
- class =" w-screen h-screen bg-white p-8 flex justify-center items-center"
17
- vaul-drawer-wrapper =" "
18
- >
15
+ <div class =" w-screen h-screen bg-white p-8 flex justify-center items-center" vaul-drawer-wrapper =" " >
19
16
<div data-testid =" active-snap-index" >{{ activeSnapPointIndex }}</div >
20
- <DrawerRoot v-model:open =" open" :snap-points =" snapPoints" :active-snap-point =" snap" >
17
+ <DrawerRoot v-model:open =" open" :snap-points =" snapPoints" v-model :active-snap-point =" snap" >
21
18
<DrawerTrigger as-child >
22
19
<button data-testid =" trigger" class =" text-2xl" >Open Drawer</button >
23
20
</DrawerTrigger >
24
21
<DrawerPortal >
25
22
<DrawerOverlay data-testid =" overlay" class =" fixed inset-0 bg-black/40" />
26
- <DrawerContent
27
- data-testid =" content"
28
- class =" fixed flex flex-col bg-white border border-gray-200 border-b-none rounded-t-[10px] bottom-0 left-0 right-0 h-full max-h-[97%] mx-[-1px]"
29
- >
30
- <div
31
- class =" flex flex-col max-w-md mx-auto w-full p-4 pt-5"
32
- :class =" snap === 1 ? 'overflow-y-auto' : 'overflow-hidden'"
33
- >
23
+ <DrawerContent data-testid =" content"
24
+ class =" fixed flex flex-col bg-white border border-gray-200 border-b-none rounded-t-[10px] bottom-0 left-0 right-0 h-full max-h-[97%] mx-[-1px]" >
25
+ <div class =" flex flex-col max-w-md mx-auto w-full p-4 pt-5"
26
+ :class =" snap === 1 ? 'overflow-y-auto' : 'overflow-hidden'" >
34
27
<div class =" flex items-center" >
35
- <svg
36
- class =" text-yellow-400 h-5 w-5 flex-shrink-0"
37
- viewBox =" 0 0 20 20"
38
- fill =" currentColor"
39
- aria-hidden =" true"
40
- >
41
- <path
42
- fill-rule =" evenodd"
28
+ <svg class =" text-yellow-400 h-5 w-5 flex-shrink-0" viewBox =" 0 0 20 20" fill =" currentColor"
29
+ aria-hidden =" true" >
30
+ <path fill-rule =" evenodd"
43
31
d =" M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z"
44
- clip-rule =" evenodd"
45
- ></path >
32
+ clip-rule =" evenodd" ></path >
46
33
</svg >
47
- <svg
48
- class =" text-yellow-400 h-5 w-5 flex-shrink-0"
49
- viewBox =" 0 0 20 20"
50
- fill =" currentColor"
51
- aria-hidden =" true"
52
- >
53
- <path
54
- fill-rule =" evenodd"
34
+ <svg class =" text-yellow-400 h-5 w-5 flex-shrink-0" viewBox =" 0 0 20 20" fill =" currentColor"
35
+ aria-hidden =" true" >
36
+ <path fill-rule =" evenodd"
55
37
d =" M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z"
56
- clip-rule =" evenodd"
57
- ></path >
38
+ clip-rule =" evenodd" ></path >
58
39
</svg >
59
- <svg
60
- class =" text-yellow-400 h-5 w-5 flex-shrink-0"
61
- viewBox =" 0 0 20 20"
62
- fill =" currentColor"
63
- aria-hidden =" true"
64
- >
65
- <path
66
- fill-rule =" evenodd"
40
+ <svg class =" text-yellow-400 h-5 w-5 flex-shrink-0" viewBox =" 0 0 20 20" fill =" currentColor"
41
+ aria-hidden =" true" >
42
+ <path fill-rule =" evenodd"
67
43
d =" M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z"
68
- clip-rule =" evenodd"
69
- ></path >
44
+ clip-rule =" evenodd" ></path >
70
45
</svg >
71
- <svg
72
- class =" text-yellow-400 h-5 w-5 flex-shrink-0"
73
- viewBox =" 0 0 20 20"
74
- fill =" currentColor"
75
- aria-hidden =" true"
76
- >
77
- <path
78
- fill-rule =" evenodd"
46
+ <svg class =" text-yellow-400 h-5 w-5 flex-shrink-0" viewBox =" 0 0 20 20" fill =" currentColor"
47
+ aria-hidden =" true" >
48
+ <path fill-rule =" evenodd"
79
49
d =" M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z"
80
- clip-rule =" evenodd"
81
- ></path >
50
+ clip-rule =" evenodd" ></path >
82
51
</svg >
83
- <svg
84
- class =" text-gray-300 h-5 w-5 flex-shrink-0"
85
- viewBox =" 0 0 20 20"
86
- fill =" currentColor"
87
- aria-hidden =" true"
88
- >
89
- <path
90
- fill-rule =" evenodd"
52
+ <svg class =" text-gray-300 h-5 w-5 flex-shrink-0" viewBox =" 0 0 20 20" fill =" currentColor" aria-hidden =" true" >
53
+ <path fill-rule =" evenodd"
91
54
d =" M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401z"
92
- clip-rule =" evenodd"
93
- ></path >
55
+ clip-rule =" evenodd" ></path >
94
56
</svg >
95
57
</div >
96
- {' '}
97
58
<h1 class =" text-2xl mt-2 font-medium" >The Hidden Details</h1 >
98
59
<p class =" text-sm mt-1 text-gray-600 mb-6" >2 modules, 27 hours of video</p >
99
- <p class =" text-gray-600" >
100
- The world of user interface design is an intricate landscape filled with hidden
101
- details and nuance. In this course, you will learn something cool. To the untrained
102
- eye, a beautifully designed UI.
103
- </p >
104
- <button
105
- class =" bg-black text-gray-50 mt-8 rounded-md h-[48px] flex-shrink-0 font-medium"
106
- >
107
- Buy for $199
60
+ <p class =" text-gray-600" > The world of user interface design is an intricate landscape filled with hidden
61
+ details and nuance. In this course, you will learn something cool. To the untrained eye, a beautifully
62
+ designed UI. </p >
63
+ <button class =" bg-black text-gray-50 mt-8 rounded-md h-[48px] flex-shrink-0 font-medium" > Buy for $199
108
64
</button >
109
65
<div class =" mt-12" >
110
66
<h2 class =" text-xl font-medium" >Module 01. The Details</h2 >
@@ -125,14 +81,10 @@ const open = ref<boolean>(true)
125
81
</div >
126
82
<div class =" mt-12" >
127
83
<figure >
128
- <blockquote class =" font-serif" >
129
- “I especially loved the hidden details video. That was so useful, learned a lot by
130
- just reading it. Can&rsquo ; t wait for more course content!”
131
- </blockquote >
84
+ <blockquote class =" font-serif" > “I especially loved the hidden details video. That was so useful, learned
85
+ a lot by just reading it. Can&rsquo ; t wait for more course content!” </blockquote >
132
86
<figcaption >
133
- <span class =" text-sm text-gray-600 mt-2 block"
134
- >Yvonne Ray, Frontend Developer</span
135
- >
87
+ <span class =" text-sm text-gray-600 mt-2 block" >Yvonne Ray, Frontend Developer</span >
136
88
</figcaption >
137
89
</figure >
138
90
</div >
@@ -149,9 +101,7 @@ const open = ref<boolean>(true)
149
101
</div >
150
102
<div >
151
103
<span class =" block" >Putting it all together</span >
152
- <span class =" text-gray-600"
153
- >Let&apos ; s build an app together and apply everything.</span
154
- >
104
+ <span class =" text-gray-600" >Let&apos ; s build an app together and apply everything.</span >
155
105
</div >
156
106
</div >
157
107
</div >
0 commit comments