-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Sébastien Chopin <seb@nuxt.com>
- Loading branch information
1 parent
a90c0d3
commit 516fb4a
Showing
122 changed files
with
9,862 additions
and
7,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h1, h2, h3, h4, h5, h6 { | ||
@apply font-title; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script setup lang="ts"> | ||
const links = [ | ||
{ | ||
label: 'Nuxt Docs', | ||
to: 'https://nuxt.com' | ||
}, { | ||
label: 'Terms', | ||
to: 'https://admin.hub.nuxt.com/terms', | ||
target: '_blank' | ||
}, { | ||
label: 'Privacy', | ||
to: 'https://admin.hub.nuxt.com/privacy', | ||
target: '_blank' | ||
} | ||
] | ||
</script> | ||
|
||
<template> | ||
<UFooter :links="links"> | ||
<template #left> | ||
<span class="inline text-sm">© {{ new Date().getFullYear() }} <a href="https://nuxtlabs.com" target="_blank" class="text-gray-900 dark:text-gray-50 hover:underline underline-offset-4">NuxtLabs</a></span> | ||
</template> | ||
|
||
<template #right> | ||
<UColorModeButton /> | ||
<UButton | ||
icon="i-simple-icons-x" | ||
color="gray" | ||
variant="ghost" | ||
to="https://x.com/nuxt_hub" | ||
target="_blank" | ||
aria-label="Go to NuxtHub X account" | ||
/> | ||
<UButton | ||
icon="i-simple-icons-github" | ||
color="gray" | ||
variant="ghost" | ||
to="https://github.com/nuxt-hub/core" | ||
target="_blank" | ||
aria-label="Go to NuxtHub GitHub repository" | ||
/> | ||
</template> | ||
</UFooter> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<script setup lang="ts"> | ||
const { metaSymbol } = useShortcuts() | ||
const navigation = inject('navigation') | ||
const links = [ | ||
{ | ||
label: 'Docs', | ||
to: '/docs/getting-started' | ||
}, { | ||
label: 'Templates', | ||
to: '/templates', | ||
color: 'cyan' | ||
}, { | ||
label: 'Pricing', | ||
to: '/pricing' | ||
}, { | ||
label: 'Changelog', | ||
to: '/changelog' | ||
}, { | ||
label: 'Blog', | ||
to: '/blog' | ||
} | ||
] | ||
const navLinks = links.map((link) => { | ||
if (link.label === 'Docs') { | ||
return { | ||
...link, | ||
children: mapContentNavigation(navigation.value) | ||
.find(link => link.label === 'Docs') | ||
.children | ||
.map(({ icon, ...link }) => link) | ||
} | ||
} | ||
return { | ||
...link | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<UHeader :ui="{}" :links="links"> | ||
<template #logo> | ||
<HubLogo class="h-6" /> | ||
<UBadge variant="subtle" size="xs" class="-mb-[2px] rounded font-semibold"> | ||
beta | ||
</UBadge> | ||
</template> | ||
|
||
<template #right> | ||
<UTooltip text="Search" :shortcuts="[metaSymbol, 'K']" :popper="{ strategy: 'absolute' }"> | ||
<UContentSearchButton :label="null" /> | ||
</UTooltip> | ||
<UButton variant="ghost" label="Log in" to="https://admin.hub.nuxt.com/" color="black" size="md" class="hidden sm:block" external /> | ||
<UButton variant="solid" label="Sign up" to="https://admin.hub.nuxt.com/" size="md" class="hidden sm:block" external /> | ||
</template> | ||
|
||
<template #panel> | ||
<UNavigationTree :links="navLinks" :default-open="1" :multiple="false" :ui="{ accordion: { button: { label: 'font-normal' } } }" /> | ||
|
||
<div class="flex flex-col gap-y-2 mt-4"> | ||
<UButton variant="solid" label="Log in" to="https://admin.hub.nuxt.com/" color="white" size="md" class="flex justify-center sm:hidden" external /> | ||
<UButton variant="solid" label="Sign up" to="https://admin.hub.nuxt.com/" size="md" class="flex justify-center text-gray-900 bg-primary sm:hidden" external /> | ||
</div> | ||
</template> | ||
</UHeader> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<svg viewBox="0 0 1440 181" fill="none" xmlns="http://www.w3.org/2000/svg" class="pointer-events-none"> | ||
<mask id="path-1-inside-1_414_5526" fill="white"> | ||
<path d="M0 0H1440V181H0V0Z" /> | ||
</mask> | ||
<path d="M0 0H1440V181H0V0Z" fill="url(#paint0_linear_414_5526)" fill-opacity="0.22" /> | ||
<path d="M0 2H1440V-2H0V2Z" fill="url(#paint1_linear_414_5526)" mask="url(#path-1-inside-1_414_5526)" /> | ||
<defs> | ||
<linearGradient id="paint0_linear_414_5526" x1="720" y1="0" x2="720" y2="181" gradientUnits="userSpaceOnUse"> | ||
<stop stop-color="currentColor" /> | ||
<stop offset="1" stop-color="currentColor" stop-opacity="0" /> | ||
</linearGradient> | ||
<linearGradient id="paint1_linear_414_5526" x1="0" y1="90.5" x2="1440" y2="90.5" gradientUnits="userSpaceOnUse"> | ||
<stop stop-color="currentColor" stop-opacity="0" /> | ||
<stop offset="0.395" stop-color="currentColor" /> | ||
<stop offset="1" stop-color="currentColor" stop-opacity="0" /> | ||
</linearGradient> | ||
</defs> | ||
</svg> | ||
</template> |
Oops, something went wrong.