-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCard.vue
More file actions
47 lines (46 loc) · 1.58 KB
/
Copy pathCard.vue
File metadata and controls
47 lines (46 loc) · 1.58 KB
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
<template>
<div class="flex flex-col gap-8">
<GallerySection title="Basic">
<UCard class="w-full max-w-md">
<template #header>
<div class="flex items-center gap-2">
<UIcon name="i-material-symbols-cable" class="size-5 text-primary" />
<h3 class="font-semibold">Server connection</h3>
</div>
</template>
<dl class="grid grid-cols-2 gap-3 text-sm">
<div>
<dt class="text-muted">Endpoint</dt>
<dd class="font-mono">ws://localhost:8080</dd>
</div>
<div>
<dt class="text-muted">Status</dt>
<dd><UBadge color="success" variant="soft">connected</UBadge></dd>
</div>
</dl>
<template #footer>
<div class="flex justify-end gap-2">
<UButton color="neutral" variant="ghost">Disconnect</UButton>
<UButton color="primary">Reconnect</UButton>
</div>
</template>
</UCard>
</GallerySection>
<GallerySection title="Stat grid">
<div class="grid w-full grid-cols-1 gap-4 sm:grid-cols-3">
<UCard>
<div class="text-2xl font-semibold">12</div>
<div class="text-xs text-muted">Active jobs</div>
</UCard>
<UCard>
<div class="text-2xl font-semibold">340</div>
<div class="text-xs text-muted">Completed</div>
</UCard>
<UCard>
<div class="text-2xl font-semibold">3</div>
<div class="text-xs text-muted">Failed</div>
</UCard>
</div>
</GallerySection>
</div>
</template>