undocs 0.4.3 → 0.4.4

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.
@@ -1,6 +1,8 @@
1
1
  @import 'tailwindcss';
2
2
  @import '@nuxt/ui';
3
3
 
4
+ @source '../**/*.vue';
5
+
4
6
  @theme static {
5
7
  --font-sans: 'Inter', sans-serif;
6
8
  }
@@ -104,34 +104,28 @@ const { data: contributors } = await useAsyncData(() => useContributors())
104
104
  <template>
105
105
  <div>
106
106
  <!-- Hero -->
107
- <UPageHero
108
- v-if="hero"
109
- :orientation="hero.orientation"
110
- class="relative"
111
- :ui="{
112
- container: '!pb-20 py-24 sm:py-32 lg:py-40',
113
- title: 'text-5xl sm:text-7xl',
114
- wrapper: 'lg:min-h-[540px]',
115
- }"
116
- >
107
+ <UPageHero v-if="hero" :orientation="hero.orientation" class="relative" :links="hero.links">
117
108
  <template #top>
118
109
  <LandingBackground />
119
110
  </template>
120
111
 
121
112
  <template #headline>
122
- <NuxtLink v-if="latest" :to="latest.path">
123
- <UBadge
124
- variant="subtle"
125
- size="lg"
126
- class="px-3 relative rounded-full font-semibold dark:hover:bg-primary-400/15 dark:hover:ring-primary-700"
127
- >
128
- {{ latest.title }}
129
- </UBadge>
130
- </NuxtLink>
113
+ <UButton
114
+ v-if="latest"
115
+ :to="latest.path"
116
+ variant="subtle"
117
+ size="sm"
118
+ trailing-icon="i-lucide-arrow-right"
119
+ class="rounded-full"
120
+ >
121
+ {{ latest.title }}
122
+ </UButton>
131
123
  </template>
132
124
 
133
125
  <template #title>
134
- {{ landing.heroTitle }}<br /><span class="text-primary text-4xl">{{ landing.heroSubtitle }}</span>
126
+ {{ landing.heroTitle }}<br /><span v-if="landing.heroSubtitle" class="text-primary text-4xl">{{
127
+ landing.heroSubtitle
128
+ }}</span>
135
129
  </template>
136
130
 
137
131
  <template #description>
@@ -139,11 +133,7 @@ const { data: contributors } = await useAsyncData(() => useContributors())
139
133
  </template>
140
134
 
141
135
  <template #links>
142
- <div class="flex flex-col gap-4">
143
- <div class="flex items-center flex-wrap gap-2" :class="{ 'justify-center': !hero.code }">
144
- <UButton v-for="link in hero.links" :key="link.label" v-bind="link" class="!px-6 !py-3"> </UButton>
145
- </div>
146
- </div>
136
+ <UButton v-for="link in hero.links" :key="link.label" v-bind="link" />
147
137
  </template>
148
138
 
149
139
  <ProseCodeGroup v-if="hero.code" class="mx-auto" style="max-width: 100%">
@@ -162,13 +152,9 @@ const { data: contributors } = await useAsyncData(() => useContributors())
162
152
 
163
153
  <UPageSection
164
154
  v-if="landing.features?.length > 0"
165
- :title="landing?.featuresTitle"
166
- :description="''"
167
155
  :ui="{
168
- title: 'text-left',
169
- description: 'text-left',
170
- root: '',
171
- features: 'xl:grid-cols-4 lg:gap-10',
156
+ container: 'pt-4 sm:pt-8 lg:pt-12',
157
+ body: 'mt-0',
172
158
  }"
173
159
  >
174
160
  <template #features>
@@ -191,18 +177,18 @@ const { data: contributors } = await useAsyncData(() => useContributors())
191
177
  </template>
192
178
  </UPageSection>
193
179
 
194
- <UPageSection v-if="sponsors?.sponsors.length" title="Sponsors">
180
+ <UPageSection v-if="sponsors?.sponsors.length" title="Sponsors" class="bg-muted/30 border-y border-default">
195
181
  <div id="sponsors" class="flex flex-col items-center gap-8">
196
182
  <div
197
183
  v-for="(tier, i) of sponsors.sponsors.slice(0, 2)"
198
184
  :key="i"
199
- class="flex flex-wrap justify-center gap-4 max-w-4xl mb-4"
185
+ class="flex flex-wrap justify-center gap-8 max-w-4xl"
200
186
  >
201
- <div v-for="s in tier" :key="s.name" class="flex items-center gap-2 max-w-[300px]">
187
+ <div v-for="s in tier" :key="s.name" class="flex items-center gap-6 max-w-[300px]">
202
188
  <a
203
189
  :href="s.website"
204
190
  target="_blank"
205
- class="flex items-center gap-2"
191
+ class="flex items-center gap-2 opacity-80 hover:opacity-100"
206
192
  :class="`font-size-${i === 0 ? '3xl' : i === 1 ? 'xl' : 'lg'}`"
207
193
  >
208
194
  <img
@@ -215,24 +201,29 @@ const { data: contributors } = await useAsyncData(() => useContributors())
215
201
  height: i === 0 ? '80px' : '48px',
216
202
  }"
217
203
  />
218
- <span v-if="i < 2" class="text-lg font-semibold">{{ s.name }}</span>
204
+ <span v-if="i < 2" class="font-semibold" :class="`text-${i === 0 ? '2xl' : 'xl'}`">{{ s.name }}</span>
219
205
  </a>
220
206
  </div>
221
207
  </div>
222
- <div class="flex flex-wrap justify-center gap-4">
223
- <UTooltip v-for="s in sponsors.sponsors[2]" :key="s.name" :text="s.name" placement="top">
224
- <UAvatar :alt="s.name" :src="s.image" size="2xl" :to="s.website" target="_blank" />
208
+ <div class="flex flex-wrap justify-center gap-2">
209
+ <UTooltip v-for="s in sponsors.sponsors[2]" :key="s.name" :text="s.name" :delay-duration="0">
210
+ <a :href="s.website" target="_blank" class="opacity-80 hover:opacity-100">
211
+ <UAvatar :alt="s.name" :src="s.image" size="2xl" />
212
+ </a>
225
213
  </UTooltip>
226
214
  </div>
227
- <div class="flex flex-wrap justify-center gap-4">
228
- <UTooltip v-for="s in sponsors.sponsors[3]" :key="s.name" :text="s.name">
229
- <UAvatar :alt="s.name" :src="s.image" :to="s.website" target="_blank" />
215
+ <div class="flex flex-wrap justify-center gap-1">
216
+ <UTooltip v-for="s in sponsors.sponsors[3]" :key="s.name" :text="s.name" :delay-duration="0">
217
+ <a :href="s.website" target="_blank" class="opacity-80 hover:opacity-100">
218
+ <UAvatar :alt="s.name" :src="s.image" />
219
+ </a>
230
220
  </UTooltip>
231
221
  </div>
232
222
  </div>
233
223
  <div class="text-center">
234
224
  <UButton
235
225
  v-if="sponsors.username"
226
+ icon="i-lucide-heart-handshake"
236
227
  :to="`https://github.com/sponsors/${sponsors.username}`"
237
228
  target="_blank"
238
229
  color="neutral"
@@ -243,15 +234,21 @@ const { data: contributors } = await useAsyncData(() => useContributors())
243
234
  </UPageSection>
244
235
 
245
236
  <UPageSection v-if="contributors?.length" id="contributors" title="Contributors">
246
- <UAvatarGroup class="flex flex-wrap justify-center gap-4">
247
- <UTooltip v-for="c in contributors" :key="c.username" :text="c.name">
248
- <a :href="c.profile" target="_blank">
237
+ <div class="flex flex-wrap justify-center gap-2">
238
+ <UTooltip v-for="c in contributors" :key="c.username" :text="c.name" :delay-duration="0">
239
+ <a :href="c.profile" target="_blank" class="opacity-80 hover:opacity-100">
249
240
  <UAvatar :alt="c.name" :src="c.avatar" size="3xl" />
250
241
  </a>
251
242
  </UTooltip>
252
- </UAvatarGroup>
243
+ </div>
253
244
  <div class="text-center">
254
- <UButton v-if="landing._github" :to="`https://github.com/${landing._github}`" target="_blank" color="neutral">
245
+ <UButton
246
+ v-if="landing._github"
247
+ :to="`https://github.com/${landing._github}`"
248
+ target="_blank"
249
+ color="neutral"
250
+ icon="i-lucide-git-pull-request"
251
+ >
255
252
  Contribute on GitHub
256
253
  </UButton>
257
254
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",