Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add marketing pages #3308

Merged
merged 39 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2483f32
docs: add pro marketing pages
atinux Feb 6, 2025
6bd9fd8
chore: fix 404 links
atinux Feb 6, 2025
eed83e1
up
atinux Feb 6, 2025
16210ba
Merge branch 'v3' into pro/marketing
atinux Feb 7, 2025
3785a8e
up
atinux Feb 7, 2025
174dc2a
docs: fix when using neutral color on pre-rendering
atinux Feb 7, 2025
211fd69
Merge branch 'v3' into pro/marketing
atinux Feb 7, 2025
ae99c75
up
atinux Feb 7, 2025
aee731d
chore: move to pricing
atinux Feb 7, 2025
7da64e3
up
atinux Feb 7, 2025
b41e600
up
atinux Feb 7, 2025
19a5240
up
atinux Feb 7, 2025
f97e7f6
up
atinux Feb 7, 2025
270807f
chore: disable pre-rendering
atinux Feb 7, 2025
83b2551
chore: add back pre-rendering
atinux Feb 7, 2025
b9dcc0b
up
atinux Feb 10, 2025
bf21df7
feat: figma page
atinux Feb 11, 2025
f7c9651
up
atinux Feb 11, 2025
a9fc345
up
atinux Feb 11, 2025
7027f1a
add figma plugin
atinux Feb 11, 2025
cb0a710
chore: same line height for cursors
atinux Feb 11, 2025
a2f798e
chore: add og image
atinux Feb 11, 2025
1832b32
chore: improve images
atinux Feb 12, 2025
b111000
up
atinux Feb 12, 2025
54b329c
up
atinux Feb 13, 2025
6284707
up
atinux Feb 13, 2025
073a85d
up
atinux Feb 13, 2025
2bc5fc7
ignore types on yaml
atinux Feb 13, 2025
3d4c950
up
atinux Feb 13, 2025
ce4c7af
docs: add thumbnail on the left
atinux Feb 13, 2025
f14778b
Merge branch 'v3' into pro/marketing
benjamincanac Feb 13, 2025
6b10f61
Merge branch 'v3' into pro/marketing
benjamincanac Feb 14, 2025
1e36b08
chore: lint fix
atinux Feb 14, 2025
829bf65
Merge branch 'v3' into pro/marketing
benjamincanac Feb 14, 2025
e264297
chore: add type to external fetch
atinux Feb 14, 2025
3f241a2
fix ts
benjamincanac Feb 14, 2025
3c40ef3
fix(figma): add `unmount-on-hide` on tabs to prevent flickr
benjamincanac Feb 14, 2025
fb5e384
fix(figma): improve design
benjamincanac Feb 14, 2025
af04ce9
up
benjamincanac Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 6 additions & 31 deletions docs/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { withoutTrailingSlash } from 'ufo'
// import { withoutTrailingSlash } from 'ufo'
import colors from 'tailwindcss/colors'
// import { debounce } from 'perfect-debounce'

Expand All @@ -22,32 +22,7 @@ const searchTerm = ref('')
// useTrackEvent('Search', { props: { query: `${query} - ${searchTerm.value?.commandPaletteRef.results.length} results` } })
// }, 500))

const links = computed(() => [{
label: 'Docs',
icon: 'i-lucide-square-play',
to: '/getting-started',
active: route.path.startsWith('/getting-started')
}, {
label: 'Components',
icon: 'i-lucide-square-code',
to: '/components',
active: route.path.startsWith('/components')
}, {
label: 'Roadmap',
icon: 'i-lucide-map',
to: '/roadmap'
}, {
label: 'Figma',
icon: 'i-lucide-figma',
to: 'https://www.figma.com/community/file/1288455405058138934',
target: '_blank'
}, {
label: 'Releases',
icon: 'i-lucide-rocket',
to: 'https://github.com/nuxt/ui/releases',
target: '_blank'
}].filter(Boolean))

const links = useLinks()
const color = computed(() => colorMode.value === 'dark' ? (colors as any)[appConfig.ui.colors.neutral][900] : 'white')
const radius = computed(() => `:root { --ui-radius: ${appConfig.theme.radius}rem; }`)
const blackAsPrimary = computed(() => appConfig.theme.blackAsPrimary ? `:root { --ui-primary: black; } .dark { --ui-primary: white; }` : ':root {}')
Expand All @@ -58,8 +33,8 @@ useHead({
{ key: 'theme-color', name: 'theme-color', content: color }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
{ rel: 'canonical', href: `https://ui.nuxt.com${withoutTrailingSlash(route.path)}` }
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }
// { rel: 'canonical', href: `https://ui.nuxt.com${withoutTrailingSlash(route.path)}` }
],
style: [
{ innerHTML: radius, id: 'nuxt-ui-radius', tagPriority: -2 },
Expand All @@ -83,7 +58,7 @@ provide('navigation', mappedNavigation)

<template>
<UApp :toaster="appConfig.toaster">
<NuxtLoadingIndicator color="#FFF" />
<NuxtLoadingIndicator color="var(--ui-primary)" :height="2" />

<template v-if="!route.path.startsWith('/examples')">
<!-- <Banner /> -->
Expand All @@ -96,7 +71,7 @@ provide('navigation', mappedNavigation)
</NuxtLayout>

<template v-if="!route.path.startsWith('/examples')">
<!-- <Footer /> -->
<Footer />

<ClientOnly>
<LazyUContentSearch
Expand Down
51 changes: 29 additions & 22 deletions docs/app/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
<script setup lang="ts">
const route = useRoute()

// const items = [{
// label: 'Figma Kit',
// to: 'https://www.figma.com/community/file/1288455405058138934',
// target: '_blank'
// }, {
// label: 'Playground',
// to: 'https://stackblitz.com/edit/nuxt-ui',
// target: '_blank'
// }, {
// label: 'Roadmap',
// to: '/roadmap'
// }, {
// label: 'Releases',
// to: '/releases'
// }]
const links = [{
label: 'Figma',
to: '/figma'
}, {
label: 'Roadmap',
to: '/roadmap'
}, {
label: 'Terms',
to: '/pro/terms'
}, {
label: 'Releases',
to: 'https://github.com/nuxt/ui/releases',
target: '_blank'
}]
</script>

<template>
<USeparator icon="i-simple-icons-nuxtdotjs" class="h-px" />

<UFooter>
<template #left>
<NuxtLink v-if="route.path.startsWith('/pro')" to="https://ui.nuxt.com/pro/purchase" target="_blank" class="text-sm text-(--ui-text-muted)">
Purchase <span class="text-(--ui-text-highlighted)">Nuxt UI Pro</span>
</NuxtLink>
<NuxtLink v-else to="https://github.com/nuxt/ui" target="_blank" class="text-sm text-(--ui-text-muted)">
<NuxtLink to="https://github.com/nuxt/ui" target="_blank" class="text-sm text-(--ui-text-muted)">
Published under <span class="text-(--ui-text-highlighted)">MIT License</span>
</NuxtLink>
</template>

<!-- <UNavigationMenu :items="items" variant="link" color="neutral" /> -->
<UNavigationMenu :items="links" variant="link" color="neutral" />

<template #right>
<UButton
Expand All @@ -41,6 +35,7 @@ const route = useRoute()
target="_blank"
color="neutral"
variant="ghost"
size="sm"
/>
<UButton
aria-label="Nuxt UI on Discord"
Expand All @@ -49,6 +44,7 @@ const route = useRoute()
target="_blank"
color="neutral"
variant="ghost"
size="sm"
/>
<UButton
aria-label="Nuxt on X"
Expand All @@ -57,6 +53,16 @@ const route = useRoute()
target="_blank"
color="neutral"
variant="ghost"
size="sm"
/>
<UButton
aria-label="Nuxt on BlueSky"
icon="i-simple-icons-bluesky"
to="https://bsky.app/profile/nuxt.com"
target="_blank"
color="neutral"
variant="ghost"
size="sm"
/>
<UButton
aria-label="Nuxt UI on GitHub"
Expand All @@ -65,6 +71,7 @@ const route = useRoute()
target="_blank"
color="neutral"
variant="ghost"
size="sm"
/>
</template>
</UFooter>
Expand Down
28 changes: 28 additions & 0 deletions docs/app/components/PromotionalVideo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<div class="relative">
<UPageCard
variant="subtle"
class="rounded-[calc(var(--ui-radius)*6)]"
>
<video
class="rounded-[calc(var(--ui-radius)*2)]"
preload="none"
poster="https://res.cloudinary.com/nuxt/video/upload/so_3.3/v1708511800/ui-pro/video-nuxt-ui-pro_kwfbdh.jpg"
:controls="true"
>
<source
src="https://res.cloudinary.com/nuxt/video/upload/v1708511800/ui-pro/video-nuxt-ui-pro_kwfbdh.webm"
type="video/webm"
>
<source
src="https://res.cloudinary.com/nuxt/video/upload/v1708511800/ui-pro/video-nuxt-ui-pro_kwfbdh.mp4"
type="video/mp4"
>
<source
src="https://res.cloudinary.com/nuxt/video/upload/v1708511800/ui-pro/video-nuxt-ui-pro_kwfbdh.ogg"
type="video/ogg"
>
</video>
</UPageCard>
</div>
</template>
Loading