@@ -4,9 +4,13 @@ import { Icon } from 'astro-icon/components'
4
4
import {
5
5
Accordion ,
6
6
AccordionItem ,
7
+ Avatar ,
8
+ AvatarGroup ,
9
+ Badge ,
7
10
Breadcrumbs ,
8
11
BreadcrumbsItem ,
9
12
Card ,
13
+ DarkMode ,
10
14
Media ,
11
15
Modal ,
12
16
Notification ,
@@ -116,6 +120,35 @@ import {
116
120
</AccordionItem >
117
121
</Accordion >
118
122
</div >
123
+ <div class =" space-content" >
124
+ <h2 >Avatar</h2 >
125
+ <div class =" flex-w flex gap-3" >
126
+ <Avatar initials =" MT" label =" Mark Teekman" />
127
+ <Avatar initials =" PP" label =" Peter Padberg" type =" info" shape =" square" />
128
+ <Avatar
129
+ label =" Astronout"
130
+ img =" https://images.unsplash.com/photo-1620428268482-cf1851a36764?auto=format&fit=crop&q=100&w=800"
131
+ />
132
+ </div >
133
+ <Avatar title =" Mark Teekman" subtitle =" Developer & A11Y Expert" />
134
+ <AvatarGroup >
135
+ <Avatar size =" sm" label =" Developer" initials =" DV" />
136
+ <Avatar size =" sm" type =" info" label =" Designer" initials =" DS" />
137
+ <Avatar size =" sm" type =" success" label =" Product Manager" initials =" PM" />
138
+ <Avatar size =" sm" type =" warning" label =" Marketing" initials =" MK" />
139
+ <Avatar size =" sm" type =" error" label =" Marketing" initials =" MK" />
140
+ </AvatarGroup >
141
+ </div >
142
+ <div class =" space-content" >
143
+ <h2 >Badge</h2 >
144
+ <div class =" flex flex-wrap gap-2" >
145
+ <Badge type =" default" >Default</Badge >
146
+ <Badge type =" info" >Info</Badge >
147
+ <Badge type =" success" >Success</Badge >
148
+ <Badge type =" warning" >Warning</Badge >
149
+ <Badge type =" error" >Error</Badge >
150
+ </div >
151
+ </div >
119
152
<div class =" space-content" >
120
153
<h2 >Breadcrumbs</h2 >
121
154
<Breadcrumbs >
@@ -161,7 +194,7 @@ import {
161
194
<div class =" space-content" >
162
195
<h2 >Cards</h2 >
163
196
<Card
164
- img =" https://images.unsplash.com/photo-1620428268482-cf1851a36764?auto=format&fit=crop&q=80 &w=800"
197
+ img =" https://images.unsplash.com/photo-1620428268482-cf1851a36764?auto=format&fit=crop&q=100 &w=800"
165
198
title =" Card Title"
166
199
footer =" Author name"
167
200
>
@@ -176,13 +209,19 @@ import {
176
209
</div >
177
210
<div class =" space-content" >
178
211
<h2 >DarkMode Toggle</h2 >
179
- <p >This component can be viewed in the top right corner besides the main navigation.</p >
212
+ <div class =" flex gap-2" >
213
+ <DarkMode />
214
+ <DarkMode >
215
+ <Icon name =" ion:bulb" slot =" light" />
216
+ <Icon name =" ion:bulb-outline" slot =" dark" />
217
+ </DarkMode >
218
+ </div >
180
219
</div >
181
220
<div class =" space-content" >
182
221
<h2 >Media</h2 >
183
222
<Media
184
223
class =" rounded-lg"
185
- src =" https://images.unsplash.com/photo-1620428268482-cf1851a36764?auto=format&fit=crop&q=80 &w=800"
224
+ src =" https://images.unsplash.com/photo-1620428268482-cf1851a36764?auto=format&fit=crop&q=100 &w=800"
186
225
/>
187
226
</div >
188
227
<div class =" space-content" >
@@ -232,8 +271,11 @@ import {
232
271
<Pagination totalPages =" 200" />
233
272
</div >
234
273
<div class =" space-content" >
235
- <h2 >SkipLinks</h2 >
236
- <p >This component can be viewed by shift+tabbing until they show up.</p >
274
+ <h2 >SkipLink</h2 >
275
+ <p >
276
+ The SkipLink component becomes visible when you shift+tab to navigate backward through the page, it's the
277
+ first focusable element on the page.
278
+ </p >
237
279
</div >
238
280
</div >
239
281
<div class =" my-32" ></div >
@@ -261,11 +303,11 @@ import {
261
303
<div class =" grid grid-cols-1 gap-4 md:grid-cols-2" >
262
304
<Media
263
305
class =" rounded-lg"
264
- src =" https://images.unsplash.com/photo-1636819488537-a9b1ffb315ce?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8& auto=format&fit=crop&w=800&q=80 "
306
+ src =" https://images.unsplash.com/photo-1636819488537-a9b1ffb315ce?auto=format&fit=crop&w=800&q=100 "
265
307
/>
266
308
<Media
267
309
class =" rounded-lg"
268
- src =" https://images.unsplash.com/photo-1636819488537-a9b1ffb315ce?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8& auto=format&fit=crop&w=800&q=80 "
310
+ src =" https://images.unsplash.com/photo-1636819488537-a9b1ffb315ce?auto=format&fit=crop&w=800&q=100 "
269
311
/>
270
312
</div >
271
313
<p >
0 commit comments