-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainer.vue
More file actions
78 lines (71 loc) · 4.09 KB
/
Copy pathContainer.vue
File metadata and controls
78 lines (71 loc) · 4.09 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
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
<template>
<div class="flex flex-col gap-8">
<GallerySection title="Default container">
<UContainer class="w-full border border-dashed border-(--ui-border) rounded-lg py-4 text-center text-(--ui-text-muted) text-sm">
Default max-width container — centers content with responsive horizontal padding.
</UContainer>
</GallerySection>
<GallerySection title="As a section element">
<UContainer as="section" class="w-full rounded-lg bg-(--ui-bg-elevated) px-6 py-5">
<div class="flex items-center gap-3">
<UIcon name="i-material-symbols-memory-outline" class="text-xl text-(--ui-primary)" />
<div>
<p class="font-semibold text-(--ui-text)">ARCP Runtime</p>
<p class="text-sm text-(--ui-text-muted)">Rendered inside a <code><section></code> element via the <code>as</code> prop.</p>
</div>
</div>
</UContainer>
</GallerySection>
<GallerySection title="Overriding max-width via ui.base">
<div class="flex flex-col gap-4 w-full">
<UContainer :ui="{ base: 'max-w-sm mx-auto px-4' }" class="w-full rounded-lg bg-(--ui-bg-elevated) py-4 text-center">
<p class="text-sm font-medium text-(--ui-text)">Narrow (<code>max-w-sm</code>)</p>
<p class="text-xs text-(--ui-text-muted)">Ideal for auth flows and focused agent prompts.</p>
</UContainer>
<UContainer :ui="{ base: 'max-w-2xl mx-auto px-4' }" class="w-full rounded-lg bg-(--ui-bg-elevated) py-4 text-center">
<p class="text-sm font-medium text-(--ui-text)">Medium (<code>max-w-2xl</code>)</p>
<p class="text-xs text-(--ui-text-muted)">Good for job detail panels and trace views.</p>
</UContainer>
<UContainer :ui="{ base: 'max-w-5xl mx-auto px-4' }" class="w-full rounded-lg bg-(--ui-bg-elevated) py-4 text-center">
<p class="text-sm font-medium text-(--ui-text)">Wide (<code>max-w-5xl</code>)</p>
<p class="text-xs text-(--ui-text-muted)">Suited for session event tables and multi-agent dashboards.</p>
</UContainer>
</div>
</GallerySection>
<GallerySection title="Realistic usage — job summary card">
<UContainer :ui="{ base: 'max-w-2xl mx-auto px-4' }" class="w-full">
<div class="rounded-xl border border-(--ui-border) bg-(--ui-bg) p-6 flex flex-col gap-4">
<div class="flex items-center justify-between">
<div class="flex items-center gap-2">
<UIcon name="i-material-symbols-rocket-launch-outline" class="text-lg text-(--ui-primary)" />
<span class="font-semibold text-(--ui-text)">Job · <code class="text-xs">job_9kZx3mP</code></span>
</div>
<UBadge color="success" variant="soft" label="Running" />
</div>
<div class="grid grid-cols-2 gap-3 text-sm">
<div class="rounded-lg bg-(--ui-bg-elevated) p-3">
<p class="text-(--ui-text-muted) text-xs mb-1">Agent</p>
<p class="font-medium text-(--ui-text)">planner-v2</p>
</div>
<div class="rounded-lg bg-(--ui-bg-elevated) p-3">
<p class="text-(--ui-text-muted) text-xs mb-1">Session</p>
<p class="font-medium text-(--ui-text)">sess_4TqR8nW</p>
</div>
<div class="rounded-lg bg-(--ui-bg-elevated) p-3">
<p class="text-(--ui-text-muted) text-xs mb-1">Lease</p>
<p class="font-medium text-(--ui-text)">42 s remaining</p>
</div>
<div class="rounded-lg bg-(--ui-bg-elevated) p-3">
<p class="text-(--ui-text-muted) text-xs mb-1">Events</p>
<p class="font-medium text-(--ui-text)">128 dispatched</p>
</div>
</div>
<div class="flex gap-2 justify-end">
<UButton variant="outline" color="neutral" size="sm" icon="i-material-symbols-list-alt-outline">Traces</UButton>
<UButton color="error" variant="soft" size="sm" icon="i-material-symbols-stop-circle-outline">Cancel</UButton>
</div>
</div>
</UContainer>
</GallerySection>
</div>
</template>