Skip to content

Commit b3f2310

Browse files
committed
feat(make-skill): add the file minimap beside the page heading
The brand gives the File minimap the job of making Skills, so the /make-skill opening now shows SKILL.md files as dot rows with the rose cursor. It sits beside the heading on wide screens and above the short H1 on phones, so no dot sits behind text and contrast holds. Copy pass: the two step helpers repeated their questions, so they go. The navigation error now follows the COPY.md error pattern.
1 parent 2c7ca86 commit b3f2310

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

‎layers/marketing/app/pages/make-skill.vue‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function openGuide() {
5353
await navigateTo(packageSkillGuide(parsed.value).to)
5454
}
5555
catch {
56-
submission.value = { _tag: 'Failed', message: 'The guide could not open. Submit the form again.' }
56+
submission.value = { _tag: 'Failed', message: 'Couldn\'t open the guide. Check your connection and try again.' }
5757
}
5858
if (submission.value._tag === 'Navigating')
5959
submission.value = { _tag: 'Idle' }
@@ -69,11 +69,15 @@ useHead({ link: [{ rel: 'canonical', href: 'https://skilld.dev/make-skill' }] })
6969

7070
<template>
7171
<div class="mx-auto max-w-2xl px-4 py-12 sm:px-6 md:py-16">
72-
<header>
73-
<h1 class="text-3xl font-semibold tracking-tight sm:text-4xl">
72+
<header class="relative isolate">
73+
<!-- The File minimap: SKILL.md files as dot rows, beside the heading so no dot sits behind text. -->
74+
<div class="make-skill-minimap absolute -top-10 right-0 -z-10 h-24 w-2/5 sm:top-0 sm:h-full sm:w-40 md:-top-4 md:h-[calc(100%+2rem)]">
75+
<TextureFileMinimap />
76+
</div>
77+
<h1 class="text-3xl font-semibold tracking-tight sm:pr-44 sm:text-4xl">
7478
Make a skill
7579
</h1>
76-
<p class="mt-4 max-w-xl text-base leading-relaxed text-muted">
80+
<p class="mt-4 text-base leading-relaxed text-muted sm:pr-44">
7781
Help agents use your package or work in your project. Get the steps to write a Skill and ship it from your repository.
7882
</p>
7983
</header>
@@ -95,9 +99,6 @@ useHead({ link: [{ rel: 'canonical', href: 'https://skilld.dev/make-skill' }] })
9599
<h2 id="kind-heading" class="text-xl font-semibold">
96100
What is your Skill for?
97101
</h2>
98-
<p class="mt-2 text-base text-muted">
99-
Choose what the Skill helps agents with.
100-
</p>
101102
<div class="mt-6 divide-y divide-default rounded-lg border border-default">
102103
<UButton
103104
v-for="(item, key) in skillKinds"
@@ -130,9 +131,6 @@ useHead({ link: [{ rel: 'canonical', href: 'https://skilld.dev/make-skill' }] })
130131
<h2 id="ecosystem-heading" class="text-xl font-semibold">
131132
Where do you publish your package?
132133
</h2>
133-
<p class="mt-2 text-base text-muted">
134-
Choose where developers get your package.
135-
</p>
136134
<div class="mt-6 divide-y divide-default rounded-lg border border-default">
137135
<UButton
138136
v-for="(item, key) in packageEcosystems"
@@ -227,3 +225,11 @@ useHead({ link: [{ rel: 'canonical', href: 'https://skilld.dev/make-skill' }] })
227225
</section>
228226
</div>
229227
</template>
228+
229+
<style scoped>
230+
/* Fade the minimap in from the left and out at the top and bottom, so it has no hard edge. */
231+
.make-skill-minimap {
232+
mask-image: radial-gradient(closest-side, #000 45%, transparent);
233+
-webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
234+
}
235+
</style>

0 commit comments

Comments
 (0)