@uxfront/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,210 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+
4
+ import { useExperience } from "../composables/experience";
5
+
6
+ const { state, labels, setMotion } = useExperience();
7
+
8
+ const pad = (n: number) => String(n).padStart(2, "0");
9
+
10
+ const stats = computed(() => {
11
+ if (state.status === "ready") {
12
+ return `${state.particles.toLocaleString("en-US")} particles · ${state.fps} fps`;
13
+ }
14
+ if (state.status === "fallback") return "Static mode";
15
+ return "Warming up the GPU";
16
+ });
17
+ </script>
18
+
19
+ <template>
20
+ <div class="ux-hud">
21
+ <p class="ux-hud__stats" aria-hidden="true">
22
+ <span class="ux-hud__led" :data-status="state.status" />
23
+ {{ stats }}
24
+ </p>
25
+ <p class="ux-hud__chapter" aria-hidden="true">
26
+ <span>{{ pad(state.chapter + 1) }} / {{ pad(labels.length) }}</span>
27
+ <span class="ux-hud__bar"><span class="ux-hud__fill" /></span>
28
+ <span class="ux-hud__label">{{ labels[state.chapter] }}</span>
29
+ </p>
30
+ <button
31
+ type="button"
32
+ class="ux-hud__motion"
33
+ :aria-pressed="state.motion"
34
+ @click="setMotion(!state.motion)"
35
+ >
36
+ <span class="ux-hud__wave" :data-on="state.motion" aria-hidden="true">
37
+ <i v-for="n in 4" :key="n" />
38
+ </span>
39
+ Motion
40
+ </button>
41
+ </div>
42
+ </template>
43
+
44
+ <style scoped>
45
+ .ux-hud {
46
+ position: fixed;
47
+ inset: auto 0 0;
48
+ z-index: 20;
49
+ display: grid;
50
+ grid-template-columns: 1fr auto 1fr;
51
+ align-items: center;
52
+ gap: 1rem;
53
+ padding: 0.75rem var(--ux-gutter) 1rem;
54
+ font-family: var(--font-ux-mono);
55
+ font-size: 0.75rem;
56
+ letter-spacing: 0.04em;
57
+ color: var(--ux-fg-2);
58
+ background: linear-gradient(0deg, rgb(5 5 7 / 0.8), rgb(5 5 7 / 0));
59
+ pointer-events: none;
60
+ }
61
+
62
+ .ux-hud p {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 0.75rem;
66
+ margin: 0;
67
+ white-space: nowrap;
68
+ }
69
+
70
+ .ux-hud__led {
71
+ width: 6px;
72
+ height: 6px;
73
+ border-radius: 50%;
74
+ background: var(--ux-fg-3);
75
+ }
76
+
77
+ .ux-hud__led[data-status="ready"] {
78
+ background: #7dffb2;
79
+ box-shadow: 0 0 10px #7dffb2;
80
+ }
81
+
82
+ .ux-hud__led[data-status="loading"] {
83
+ background: #ffd27d;
84
+ animation: blink 1s steps(2) infinite;
85
+ }
86
+
87
+ .ux-hud__chapter {
88
+ justify-self: center;
89
+ text-transform: uppercase;
90
+ }
91
+
92
+ .ux-hud__bar {
93
+ position: relative;
94
+ width: clamp(4rem, 12vw, 10rem);
95
+ height: 1px;
96
+ background: var(--ux-line-strong);
97
+ overflow: hidden;
98
+ }
99
+
100
+ .ux-hud__fill {
101
+ position: absolute;
102
+ inset: 0;
103
+ background: var(--ux-fg);
104
+ transform: scaleX(var(--ux-progress, 0));
105
+ transform-origin: left;
106
+ }
107
+
108
+ .ux-hud__label {
109
+ color: var(--ux-fg);
110
+ }
111
+
112
+ .ux-hud__motion {
113
+ justify-self: end;
114
+ display: inline-flex;
115
+ align-items: center;
116
+ gap: 0.6rem;
117
+ min-height: 2.75rem;
118
+ padding: 0 0.25rem;
119
+ font: inherit;
120
+ letter-spacing: inherit;
121
+ text-transform: uppercase;
122
+ color: var(--ux-fg-2);
123
+ background: none;
124
+ border: 0;
125
+ cursor: pointer;
126
+ pointer-events: auto;
127
+ transition: color 0.3s var(--ux-ease-out);
128
+ }
129
+
130
+ .ux-hud__motion:hover,
131
+ .ux-hud__motion[aria-pressed="true"] {
132
+ color: var(--ux-fg);
133
+ }
134
+
135
+ .ux-hud__wave {
136
+ display: inline-flex;
137
+ align-items: flex-end;
138
+ gap: 2px;
139
+ height: 12px;
140
+ }
141
+
142
+ .ux-hud__wave i {
143
+ width: 2px;
144
+ height: 100%;
145
+ background: currentColor;
146
+ transform-origin: bottom;
147
+ transform: scaleY(0.25);
148
+ }
149
+
150
+ .ux-hud__wave[data-on="true"] i {
151
+ animation: wave 1.1s var(--ux-ease-in-out) infinite alternate;
152
+ }
153
+
154
+ .ux-hud__wave i:nth-child(2) {
155
+ animation-delay: -0.3s;
156
+ }
157
+
158
+ .ux-hud__wave i:nth-child(3) {
159
+ animation-delay: -0.6s;
160
+ }
161
+
162
+ .ux-hud__wave i:nth-child(4) {
163
+ animation-delay: -0.9s;
164
+ }
165
+
166
+ @keyframes wave {
167
+ to {
168
+ transform: scaleY(1);
169
+ }
170
+ }
171
+
172
+ @keyframes blink {
173
+ 50% {
174
+ opacity: 0.2;
175
+ }
176
+ }
177
+
178
+ /* Where the copy scrolls under the HUD (see UxHeader), a solid band. */
179
+ @media (max-width: 1099px), (max-aspect-ratio: 5/4) {
180
+ .ux-hud {
181
+ padding-top: 1.5rem;
182
+ background: linear-gradient(0deg, rgb(5 5 7 / 0.96), rgb(5 5 7 / 0.9) 55%, rgb(5 5 7 / 0));
183
+ }
184
+ }
185
+
186
+ @media (max-width: 760px) {
187
+ .ux-hud {
188
+ grid-template-columns: 1fr auto;
189
+ }
190
+
191
+ .ux-hud__stats {
192
+ display: none !important;
193
+ }
194
+
195
+ .ux-hud__chapter {
196
+ justify-self: start;
197
+ }
198
+
199
+ .ux-hud__bar {
200
+ display: none;
201
+ }
202
+ }
203
+
204
+ @media (prefers-reduced-motion: reduce) {
205
+ .ux-hud__wave i,
206
+ .ux-hud__led {
207
+ animation: none !important;
208
+ }
209
+ }
210
+ </style>
@@ -0,0 +1,60 @@
1
+ <script setup lang="ts">
2
+ import { vScramble } from "../directives/scramble";
3
+ import UxArrowIcon from "./icons/UxArrowIcon.vue";
4
+
5
+ const { arrow = true, scramble = true } = defineProps<{
6
+ href: string;
7
+ label: string;
8
+ /** An arrow pointing out of the page, nudged on hover. */
9
+ arrow?: boolean;
10
+ /** Decodes the label through random glyphs on hover and focus. */
11
+ scramble?: boolean;
12
+ }>();
13
+ </script>
14
+
15
+ <template>
16
+ <a class="ux-pill-link" :href="href">
17
+ <span v-if="scramble" v-scramble>{{ label }}</span>
18
+ <span v-else>{{ label }}</span>
19
+ <UxArrowIcon v-if="arrow" />
20
+ </a>
21
+ </template>
22
+
23
+ <style scoped>
24
+ /* `a.` outranks the reveal transition on `[data-reveal] > *`, so a revealed
25
+ link keeps its own hover transitions. */
26
+ a.ux-pill-link {
27
+ display: inline-flex;
28
+ align-items: center;
29
+ gap: 0.75rem;
30
+ min-height: 3rem;
31
+ padding: 0 1.25rem;
32
+ font-family: var(--font-ux-mono);
33
+ font-size: 0.8125rem;
34
+ letter-spacing: 0.04em;
35
+ color: var(--ux-fg);
36
+ text-decoration: none;
37
+ border: 1px solid var(--ux-line-strong);
38
+ border-radius: 999px;
39
+ transition:
40
+ background 0.4s var(--ux-ease-out),
41
+ color 0.4s var(--ux-ease-out),
42
+ border-color 0.4s var(--ux-ease-out);
43
+ }
44
+
45
+ .ux-pill-link svg {
46
+ width: 1rem;
47
+ height: 1rem;
48
+ transition: transform 0.4s var(--ux-ease-out);
49
+ }
50
+
51
+ .ux-pill-link:hover {
52
+ color: var(--ux-bg);
53
+ background: var(--ux-fg);
54
+ border-color: var(--ux-fg);
55
+ }
56
+
57
+ .ux-pill-link:hover svg {
58
+ transform: translate(2px, -2px);
59
+ }
60
+ </style>
@@ -0,0 +1,44 @@
1
+ <script setup lang="ts">
2
+ import type { UxPillar } from "../types";
3
+
4
+ defineProps<{ items: UxPillar[] }>();
5
+ </script>
6
+
7
+ <template>
8
+ <!-- Rows that light up one after another (set `steps` on the UxChapter). -->
9
+ <dl class="ux-pillars">
10
+ <div v-for="(item, i) in items" :key="item.code" class="ux-pillar" :data-step-item="i">
11
+ <dt class="ux-mono">{{ item.code }}</dt>
12
+ <dd>
13
+ <strong>{{ item.title }}</strong>
14
+ <p>{{ item.text }}</p>
15
+ </dd>
16
+ </div>
17
+ </dl>
18
+ </template>
19
+
20
+ <style scoped>
21
+ .ux-pillars {
22
+ display: grid;
23
+ }
24
+
25
+ .ux-pillar {
26
+ display: grid;
27
+ grid-template-columns: 3rem 1fr;
28
+ gap: 1rem;
29
+ padding: 0.9rem 0;
30
+ border-top: 1px solid
31
+ color-mix(in srgb, var(--ux-fg) calc(10% + var(--active, 0) * 45%), transparent);
32
+ color: color-mix(in srgb, var(--ux-fg) calc(var(--active, 0) * 100%), var(--ux-fg-3));
33
+ }
34
+
35
+ .ux-pillar dt {
36
+ padding-top: 0.2rem;
37
+ }
38
+
39
+ .ux-pillar dt,
40
+ .ux-pillar strong {
41
+ font-weight: 500;
42
+ color: color-mix(in srgb, var(--ux-fg) calc(var(--active, 0) * 100%), var(--ux-fg-2));
43
+ }
44
+ </style>
@@ -0,0 +1,93 @@
1
+ <script setup lang="ts">
2
+ import type { Formation } from "@uxfront/scene";
3
+ import { inject, onBeforeUnmount, onMounted, useTemplateRef } from "vue";
4
+
5
+ import { provideExperience } from "../composables/experience";
6
+ import { uxRenderHookKey } from "../keys";
7
+ import UxHud from "./UxHud.vue";
8
+ import UxStage from "./UxStage.vue";
9
+ import UxStageFallback from "./UxStageFallback.vue";
10
+
11
+ const { scene, skipLabel = "Skip to the content" } = defineProps<{
12
+ /** The formations, one per `data-stage` section (UxHero, UxChapter, UxFinale), in order. */
13
+ scene: Formation[];
14
+ /** The skip link's target, like `#first-chapter`. No skip link without it. */
15
+ skipTo?: string;
16
+ skipLabel?: string;
17
+ }>();
18
+
19
+ defineSlots<{
20
+ /** `UxAnchor` labels pinned to the formations. */
21
+ anchors?(): unknown;
22
+ /** Clickable `UxAnchor`s (variant "button"), layered above the copy. */
23
+ controls?(): unknown;
24
+ /** Shown instead of the scene without a capable GPU. Defaults to a CSS monolith. */
25
+ fallback?(): unknown;
26
+ header?(): unknown;
27
+ /** Defaults to `UxHud`. */
28
+ hud?(): unknown;
29
+ /** The sections, inside `<main>`. */
30
+ default(): unknown;
31
+ }>();
32
+
33
+ inject(uxRenderHookKey, null)?.();
34
+
35
+ const root = useTemplateRef("root");
36
+ const experience = provideExperience(scene);
37
+ onMounted(() => experience.start(root.value!));
38
+ onBeforeUnmount(() => experience.stop());
39
+ </script>
40
+
41
+ <template>
42
+ <div ref="root" class="ux-site">
43
+ <a v-if="skipTo" class="ux-site__skip" :href="skipTo">{{ skipLabel }}</a>
44
+ <UxStage>
45
+ <template #fallback
46
+ ><slot name="fallback"><UxStageFallback /></slot
47
+ ></template>
48
+ <template #anchors><slot name="anchors" /></template>
49
+ <template #controls><slot name="controls" /></template>
50
+ </UxStage>
51
+ <slot name="header" />
52
+ <!-- Early in the tab order: the motion toggle should be quick to reach. -->
53
+ <slot name="hud"><UxHud /></slot>
54
+ <main class="ux-site__main"><slot /></main>
55
+ </div>
56
+ </template>
57
+
58
+ <style>
59
+ /* Global, but only for pages that render a UxSite: inlined with the page's
60
+ HTML instead of shipping as a render-blocking stylesheet. */
61
+ @import "../styles/index.css";
62
+ </style>
63
+
64
+ <style scoped>
65
+ .ux-site {
66
+ position: relative;
67
+ /* The copy's soft scrims bleed past the edges; never let them scroll. */
68
+ overflow-x: clip;
69
+ }
70
+
71
+ .ux-site__main {
72
+ position: relative;
73
+ z-index: 1;
74
+ text-shadow: 0 0 2rem rgb(5 5 7 / 0.8);
75
+ }
76
+
77
+ .ux-site__skip {
78
+ position: fixed;
79
+ top: 1rem;
80
+ left: 1rem;
81
+ z-index: 50;
82
+ padding: 0.75rem 1rem;
83
+ color: var(--ux-bg);
84
+ background: var(--ux-fg);
85
+ border-radius: 4px;
86
+ transform: translateY(-200%);
87
+ transition: transform 0.3s var(--ux-ease-out);
88
+ }
89
+
90
+ .ux-site__skip:focus-visible {
91
+ transform: none;
92
+ }
93
+ </style>
@@ -0,0 +1,45 @@
1
+ <script setup lang="ts">
2
+ import type { UxSpecRow } from "../types";
3
+
4
+ defineProps<{ items: UxSpecRow[] }>();
5
+ </script>
6
+
7
+ <template>
8
+ <!-- Term and detail rows that light up one after another (set `steps` on the UxChapter). -->
9
+ <dl class="ux-spec">
10
+ <div v-for="(item, i) in items" :key="item.term" :data-step-item="i">
11
+ <dt class="ux-mono">{{ item.term }}</dt>
12
+ <dd>{{ item.detail }}</dd>
13
+ </div>
14
+ </dl>
15
+ </template>
16
+
17
+ <style scoped>
18
+ .ux-spec {
19
+ display: grid;
20
+ }
21
+
22
+ .ux-spec div {
23
+ display: grid;
24
+ grid-template-columns: 7.5rem 1fr;
25
+ gap: 1rem;
26
+ padding: 0.85rem 0;
27
+ border-top: 1px solid
28
+ color-mix(in srgb, var(--ux-fg) calc(10% + var(--active, 0) * 40%), transparent);
29
+ }
30
+
31
+ .ux-spec dt {
32
+ padding-top: 0.15rem;
33
+ color: var(--ux-fg-3);
34
+ }
35
+
36
+ .ux-spec dd {
37
+ color: color-mix(in srgb, var(--ux-fg) calc(var(--active, 0) * 100%), var(--ux-fg-2));
38
+ }
39
+
40
+ @media (max-width: 760px) {
41
+ .ux-spec div {
42
+ grid-template-columns: 6rem 1fr;
43
+ }
44
+ }
45
+ </style>
@@ -0,0 +1,82 @@
1
+ <script setup lang="ts">
2
+ import { onMounted, useTemplateRef } from "vue";
3
+
4
+ import { useExperienceHost } from "../composables/experience";
5
+
6
+ const host = useExperienceHost();
7
+ const { state } = host;
8
+ const canvas = useTemplateRef("canvas");
9
+ const anchors = useTemplateRef("anchors");
10
+ const controls = useTemplateRef("controls");
11
+
12
+ onMounted(() => {
13
+ host.attachStage({ canvas: canvas.value!, anchorRoots: [anchors.value!, controls.value!] });
14
+ });
15
+ </script>
16
+
17
+ <template>
18
+ <div
19
+ class="ux-stage"
20
+ :data-status="state.status"
21
+ :data-hero="state.chapter === 0"
22
+ aria-hidden="true"
23
+ >
24
+ <div class="ux-stage__fallback"><slot name="fallback" /></div>
25
+ <canvas ref="canvas" class="ux-stage__canvas" />
26
+ <div ref="anchors" class="ux-stage__anchors"><slot name="anchors" /></div>
27
+ </div>
28
+ <!-- Above the copy, so labels placed here can take clicks. -->
29
+ <div ref="controls" class="ux-stage__controls"><slot name="controls" /></div>
30
+ </template>
31
+
32
+ <style scoped>
33
+ .ux-stage {
34
+ position: fixed;
35
+ inset: 0;
36
+ z-index: 0;
37
+ pointer-events: none;
38
+ }
39
+
40
+ .ux-stage__canvas {
41
+ position: absolute;
42
+ inset: 0;
43
+ width: 100%;
44
+ height: 100vh;
45
+ height: 100lvh;
46
+ opacity: 0;
47
+ }
48
+
49
+ .ux-stage[data-status="ready"] .ux-stage__canvas {
50
+ opacity: 1;
51
+ }
52
+
53
+ /* Without a capable GPU: a quiet, static echo of the scene. */
54
+ .ux-stage__fallback {
55
+ position: absolute;
56
+ inset: 0;
57
+ opacity: 0;
58
+ transition: opacity 1.4s var(--ux-ease-out);
59
+ }
60
+
61
+ .ux-stage[data-status="fallback"] .ux-stage__fallback {
62
+ opacity: 0.25;
63
+ }
64
+
65
+ .ux-stage[data-status="fallback"][data-hero="true"] .ux-stage__fallback {
66
+ opacity: 1;
67
+ }
68
+
69
+ .ux-stage__anchors {
70
+ position: absolute;
71
+ inset: 0;
72
+ overflow: hidden;
73
+ }
74
+
75
+ .ux-stage__controls {
76
+ position: fixed;
77
+ inset: 0;
78
+ z-index: 2;
79
+ overflow: hidden;
80
+ pointer-events: none;
81
+ }
82
+ </style>
@@ -0,0 +1,46 @@
1
+ <template>
2
+ <!-- The monolith and its mark, drawn in CSS: shown when the GPU can't run the scene. -->
3
+ <div class="ux-stage-fallback" />
4
+ </template>
5
+
6
+ <style scoped>
7
+ .ux-stage-fallback {
8
+ position: absolute;
9
+ inset: 0;
10
+ background:
11
+ radial-gradient(38% 52% at 68% 46%, rgb(120 140 255 / 0.12), transparent 70%),
12
+ radial-gradient(60% 30% at 68% 78%, rgb(120 140 255 / 0.06), transparent 70%);
13
+ }
14
+
15
+ .ux-stage-fallback::before,
16
+ .ux-stage-fallback::after {
17
+ content: "";
18
+ position: absolute;
19
+ left: 68%;
20
+ }
21
+
22
+ .ux-stage-fallback::before {
23
+ top: 46%;
24
+ width: min(13vw, 20vh);
25
+ aspect-ratio: 4 / 9;
26
+ translate: -50% -50%;
27
+ border: 1px solid rgb(210 220 255 / 0.55);
28
+ /* The mark as the scene draws it: an outline around a faint stroke, placed on the
29
+ slab's face (the 120 × 270 box) where the monolith formation carries it. */
30
+ background:
31
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -135 120 270'%3E%3Cdefs%3E%3Cpath id='m' transform='translate(0 -35) scale(.85)' d='M-21-38V-16A14 14 0 0 0-7-2H7A14 14 0 0 0 21-16V-38M38-21H16A14 14 0 0 0 2-7V7A14 14 0 0 0 16 21H38M21 38V16A14 14 0 0 0 7 2H-7A14 14 0 0 0-21 16V38M-38 21H-16A14 14 0 0 0-2 7V-7A14 14 0 0 0-16-21H-38' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='o'%3E%3Cuse href='%23m' stroke='%23fff' stroke-width='8.8'/%3E%3Cuse href='%23m' stroke='%23000' stroke-width='7.2'/%3E%3C/mask%3E%3C/defs%3E%3Cuse href='%23m' stroke='%23a0afff' stroke-opacity='.12' stroke-width='8'/%3E%3Crect x='-60' y='-135' width='120' height='270' fill='%23d2dcff' fill-opacity='.55' mask='url(%23o)'/%3E%3C/svg%3E")
32
+ center / 100% no-repeat,
33
+ linear-gradient(180deg, rgb(160 175 255 / 0.12), rgb(160 175 255 / 0.03));
34
+ box-shadow:
35
+ 0 0 60px rgb(140 160 255 / 0.18),
36
+ inset 0 0 40px rgb(140 160 255 / 0.08);
37
+ }
38
+
39
+ .ux-stage-fallback::after {
40
+ top: calc(46% + min(13vw, 20vh) * 9 / 8);
41
+ width: 20vw;
42
+ height: 1px;
43
+ translate: -50% 0;
44
+ background: linear-gradient(90deg, transparent, rgb(210 220 255 / 0.5), transparent);
45
+ }
46
+ </style>
@@ -0,0 +1,59 @@
1
+ <script setup lang="ts">
2
+ import type { UxTrait } from "../types";
3
+
4
+ defineProps<{ items: UxTrait[] }>();
5
+ </script>
6
+
7
+ <template>
8
+ <!-- A two-column grid of cells that light up one after another (set `steps` on the UxChapter). -->
9
+ <ul class="ux-traits">
10
+ <li v-for="(item, i) in items" :key="item.title" :data-step-item="i">
11
+ <strong>{{ item.title }}</strong>
12
+ <span>{{ item.text }}</span>
13
+ </li>
14
+ </ul>
15
+ </template>
16
+
17
+ <style scoped>
18
+ .ux-traits {
19
+ display: grid;
20
+ grid-template-columns: repeat(2, minmax(0, 1fr));
21
+ gap: 1px;
22
+ padding: 0;
23
+ list-style: none;
24
+ border: 1px solid var(--ux-line);
25
+ background: var(--ux-line);
26
+ }
27
+
28
+ .ux-traits li {
29
+ display: grid;
30
+ align-content: start;
31
+ gap: 0.4rem;
32
+ padding: 1rem 1.1rem 1.15rem;
33
+ font-size: 0.875rem;
34
+ line-height: 1.45;
35
+ color: color-mix(in srgb, var(--ux-fg-2) calc(var(--active, 0) * 100%), var(--ux-fg-3));
36
+ background: color-mix(
37
+ in srgb,
38
+ rgb(255 255 255 / 0.06) calc(var(--active, 0) * 100%),
39
+ var(--ux-bg)
40
+ );
41
+ }
42
+
43
+ .ux-traits strong {
44
+ font-size: 1rem;
45
+ font-weight: 500;
46
+ letter-spacing: -0.01em;
47
+ color: var(--ux-fg);
48
+ }
49
+
50
+ @media (max-width: 760px) {
51
+ .ux-traits {
52
+ grid-template-columns: 1fr;
53
+ }
54
+
55
+ .ux-traits li {
56
+ padding: 0.7rem 0.9rem;
57
+ }
58
+ }
59
+ </style>
@@ -0,0 +1,6 @@
1
+ <template>
2
+ <!-- An arrow pointing up and out: the link leaves the page. -->
3
+ <svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
4
+ <path d="M4.5 11.5l7-7M5.5 4.5h6v6" fill="none" stroke="currentColor" stroke-width="1.4" />
5
+ </svg>
6
+ </template>
@@ -0,0 +1,13 @@
1
+ <script setup lang="ts">
2
+ import { FRAMEWORK_LOGOS } from "../../frameworks";
3
+ import type { Framework } from "../../frameworks";
4
+
5
+ defineProps<{ name: Framework }>();
6
+ </script>
7
+
8
+ <template>
9
+ <!-- Filled with the current text colour. -->
10
+ <svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
11
+ <path fill="currentColor" :d="FRAMEWORK_LOGOS[name]" />
12
+ </svg>
13
+ </template>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <!-- Four rounded U strokes, each a quarter turn from the last: the UXFront mark. -->
3
+ <svg viewBox="-43.5 -43.5 87 87" fill="none" aria-hidden="true" focusable="false">
4
+ <path
5
+ d="M-21-38V-16A14 14 0 0 0-7-2H7A14 14 0 0 0 21-16V-38M38-21H16A14 14 0 0 0 2-7V7A14 14 0 0 0 16 21H38M21 38V16A14 14 0 0 0 7 2H-7A14 14 0 0 0-21 16V38M-38 21H-16A14 14 0 0 0-2 7V-7A14 14 0 0 0-16-21H-38"
6
+ stroke="currentColor"
7
+ stroke-width="8"
8
+ stroke-linecap="round"
9
+ stroke-linejoin="round"
10
+ />
11
+ </svg>
12
+ </template>
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
3
+ <path
4
+ fill="currentColor"
5
+ d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"
6
+ />
7
+ </svg>
8
+ </template>