-
Notifications
You must be signed in to change notification settings - Fork 341
/
Copy patheasy.vue
288 lines (274 loc) · 10.4 KB
/
easy.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<template>
<article id="made-for-human" class="fern-gap">
<div class="body">
<header class="flex flex-col flex-1 text-xl gap-6">
<div class="flex flex-col gap-3 mb-2">
<h3 class="text-2xl font-medium text-700">Our Princicle</h3>
<h2
class="text-6xl font-semibold text-gradient from-sky-500 to-violet-500 leading-[4.25rem]"
>
Design for Human
</h2>
</div>
<p class="max-w-md leading-normal">
Our goal is to design an ergonomic, sensible and productive
framework that even beginners can use easily
</p>
<p class="max-w-md leading-normal">
Our framework is designed to minimize unnecessary
complexity, allowing you to focus solely on building.
</p>
<p class="leading-normal">
A framework that feels
<span
class="text-gradient from-violet-500 to-sky-500 font-semibold"
>just like JavaScript</span
>
</p>
</header>
<section class="showcase">
<slot />
</section>
</div>
<footer class="summary">
<article>
<h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-box"
>
<path
d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"
></path>
<polyline
points="3.27 6.96 12 12.01 20.73 6.96"
></polyline>
<line x1="12" y1="22.08" x2="12" y2="12"></line>
</svg>
Just Return
</h4>
<p>A string, number or complex JSON</p>
<p>All we need to do is just return</p>
</article>
<article>
<h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-image"
>
<rect
x="3"
y="3"
width="18"
height="18"
rx="2"
ry="2"
></rect>
<circle cx="8.5" cy="8.5" r="1.5"></circle>
<polyline points="21 15 16 10 5 21"></polyline>
</svg>
File built-in
</h4>
<p>To send a file or image, just return</p>
<p>Nothing more or nothing less</p>
</article>
<article>
<h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-cloud-drizzle"
>
<line x1="8" y1="19" x2="8" y2="21"></line>
<line x1="8" y1="13" x2="8" y2="15"></line>
<line x1="16" y1="19" x2="16" y2="21"></line>
<line x1="16" y1="13" x2="16" y2="15"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="12" y1="15" x2="12" y2="17"></line>
<path
d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"
></path>
</svg>
Stream response
</h4>
<p>
Use
<span class="font-mono text-violet-500 font-bold"
>yield</span
>
to stream response
</p>
<p>All we need to do is just return</p>
</article>
<article>
<h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-activity"
>
<polyline
points="22 12 18 12 15 21 9 3 6 12 2 12"
></polyline>
</svg>
Data in realtime
</h4>
<p>With µWebSocket built-in</p>
<p>Send live data in just 3 lines</p>
</article>
</footer>
</article>
</template>
<style>
#made-for-human {
@apply flex flex-col max-w-5xl w-full mx-auto gap-8 my-16;
& > .body {
@apply flex flex-col md:flex-row justify-between items-center gap-8 w-full mb-6;
& > .showcase {
@apply flex flex-col flex-1 max-w-full sm:max-w-[30rem] rounded-2xl overflow-hidden border dark:border-gray-700 bg-white dark:bg-gray-800;
box-shadow: 0 16px 40px rgba(0, 123, 255, 0.075);
background-image: radial-gradient(
closest-side at center,
rgba(255, 255, 255, 1) 70%,
transparent 150%
),
radial-gradient(
closest-side at center,
rgba(255, 255, 255, 1) 90%,
transparent 150%
),
radial-gradient(
at 9% 67%,
hsla(223, 100%, 65%, 0.14) 0px,
transparent 50%
),
radial-gradient(
at 22% 0%,
hsla(210, 100%, 69%, 0.29) 0px,
transparent 50%
),
radial-gradient(
at 97% 49%,
hsla(240, 100%, 87%, 0.35) 0px,
transparent 50%
),
radial-gradient(
at 100% 75%,
hsla(280, 100%, 75%, 0.26) 0px,
transparent 50%
),
radial-gradient(
at 75% 100%,
hsla(22, 100%, 77%, 0.19) 0px,
transparent 50%
),
radial-gradient(
at 40% 100%,
hsla(240, 100%, 70%, 0.15) 0px,
transparent 50%
),
radial-gradient(
at 72% 0%,
hsla(343, 100%, 76%, 0.17) 0px,
transparent 50%
);
html.dark & {
box-shadow: 0 16px 40px rgba(0, 123, 255, 0.15);
background-image: radial-gradient(
closest-side at center,
theme(colors.gray.800) 70%,
transparent 150%
),
radial-gradient(
closest-side at center,
theme(colors.gray.800) 90%,
transparent 150%
),
radial-gradient(
at 9% 67%,
hsla(223, 100%, 65%, 0.14) 0px,
transparent 50%
),
radial-gradient(
at 22% 0%,
hsla(210, 100%, 69%, 0.29) 0px,
transparent 50%
),
radial-gradient(
at 97% 49%,
hsla(240, 100%, 87%, 0.35) 0px,
transparent 50%
),
radial-gradient(
at 100% 75%,
hsla(280, 100%, 75%, 0.26) 0px,
transparent 50%
),
radial-gradient(
at 75% 100%,
hsla(22, 100%, 77%, 0.19) 0px,
transparent 50%
),
radial-gradient(
at 40% 100%,
hsla(240, 100%, 70%, 0.15) 0px,
transparent 50%
),
radial-gradient(
at 72% 0%,
hsla(343, 100%, 76%, 0.17) 0px,
transparent 50%
);
}
& > div {
@apply !bg-transparent;
& > pre {
@apply !py-3.5;
}
}
}
}
& > .summary {
@apply grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-6;
& > article {
@apply flex flex-col flex-1 text-sm;
& > h4 {
@apply flex items-center gap-1.5 text-xl mb-2;
& > svg {
@apply transform scale-90;
}
}
}
}
}
</style>