-
Notifications
You must be signed in to change notification settings - Fork 80
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: Benjamin Canac <canacb1@gmail.com>
- Loading branch information
1 parent
6c8d3e8
commit e8c9f1f
Showing
17 changed files
with
2,882 additions
and
1,975 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,8 @@ | ||
export default defineAppConfig({ | ||
ui: { | ||
primary: 'indigo', | ||
gray: 'zinc', | ||
variables: { | ||
light: { | ||
background: 'var(--color-gray-50)' | ||
}, | ||
dark: { | ||
background: 'var(--color-gray-950)' | ||
} | ||
}, | ||
button: { | ||
rounded: 'rounded-full', | ||
default: { | ||
size: 'md', | ||
color: 'black' | ||
} | ||
}, | ||
input: { | ||
rounded: 'rounded-full' | ||
}, | ||
header: { | ||
wrapper: 'lg:!border-transparent bg-gray-50 dark:bg-gray-950', | ||
links: { | ||
wrapper: 'ring-1 ring-gray-200 dark:ring-gray-800 px-3 gap-x-0 rounded-full', | ||
base: 'py-2 px-4 font-medium transition-colors relative after:absolute after:-bottom-px after:inset-x-2 after:h-px after:rounded-full after:opacity-0 after:bg-gray-900 dark:after:bg-white after:transition-opacity', | ||
active: 'text-gray-900 dark:text-white after:opacity-100', | ||
inactive: 'text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200' | ||
} | ||
}, | ||
footer: { | ||
top: { | ||
wrapper: 'border-t border-gray-200 dark:border-gray-800', | ||
container: 'py-8 lg:py-16' | ||
}, | ||
bottom: { | ||
wrapper: 'border-t border-gray-200 dark:border-gray-800' | ||
} | ||
}, | ||
pricing: { | ||
card: { | ||
highlight: 'ring-gray-900 dark:ring-white', | ||
features: { | ||
item: { | ||
icon: { | ||
base: 'text-gray-900 dark:text-white' | ||
} | ||
} | ||
} | ||
} | ||
colors: { | ||
primary: 'green', | ||
neutral: 'zinc' | ||
} | ||
} | ||
}) |
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,28 @@ | ||
@import "tailwindcss"; | ||
@import "@nuxt/ui-pro"; | ||
|
||
@theme { | ||
--font-sans: 'Public Sans', sans-serif; | ||
|
||
--color-green-50: #EFFDF5; | ||
--color-green-100: #D9FBE8; | ||
--color-green-200: #B3F5D1; | ||
--color-green-300: #75EDAE; | ||
--color-green-400: #00DC82; | ||
--color-green-500: #00C16A; | ||
--color-green-600: #00A155; | ||
--color-green-700: #007F45; | ||
--color-green-800: #016538; | ||
--color-green-900: #0A5331; | ||
--color-green-950: #052E16; | ||
} | ||
|
||
:root { | ||
--ui-primary: black; | ||
--ui-bg: white; | ||
} | ||
|
||
.dark { | ||
--ui-primary: white; | ||
--ui-bg: #090909; | ||
} |
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 |
---|---|---|
@@ -1,74 +1,69 @@ | ||
<script setup lang="ts"> | ||
const nuxtApp = useNuxtApp() | ||
const { activeHeadings, updateHeadings } = useScrollspy() | ||
const route = useRoute() | ||
const links = computed(() => [{ | ||
const items = computed(() => [{ | ||
label: 'Features', | ||
to: '#features', | ||
icon: 'i-heroicons-cube-transparent', | ||
active: activeHeadings.value.includes('features') && !activeHeadings.value.includes('pricing') | ||
active: route.hash === '#features' | ||
}, { | ||
label: 'Templates', | ||
to: '#templates', | ||
active: route.hash === '#templates' | ||
}, { | ||
label: 'Pricing', | ||
to: '#pricing', | ||
icon: 'i-heroicons-credit-card', | ||
active: activeHeadings.value.includes('pricing') && !activeHeadings.value.includes('testimonials') | ||
active: route.hash === '#pricing' | ||
}, { | ||
label: 'Testimonials', | ||
to: '#testimonials', | ||
icon: 'i-heroicons-academic-cap', | ||
active: activeHeadings.value.includes('testimonials') | ||
active: route.hash === '#testimonials' | ||
}, { | ||
label: 'FAQ', | ||
to: '#faq', | ||
icon: 'i-heroicons-question-mark-circle', | ||
active: activeHeadings.value.includes('faq') | ||
active: route.hash === '#faq' | ||
}]) | ||
nuxtApp.hooks.hookOnce('page:finish', () => { | ||
updateHeadings([ | ||
document.querySelector('#features'), | ||
document.querySelector('#pricing'), | ||
document.querySelector('#testimonials'), | ||
document.querySelector('#faq') | ||
]) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<UHeader :links="links"> | ||
<template #logo> | ||
Nuxt UI Pro <UBadge | ||
label="Landing" | ||
variant="subtle" | ||
class="mb-0.5" | ||
/> | ||
<UHeader> | ||
<template #left> | ||
<NuxtLink to="/"> | ||
<LogoPro class="w-auto h-6 shrink-0" /> | ||
</NuxtLink> | ||
<TemplateMenu /> | ||
</template> | ||
|
||
<UNavigationMenu | ||
:items="items" | ||
variant="link" | ||
/> | ||
|
||
<template #right> | ||
<UColorModeButton /> | ||
<UButton | ||
label="Sign in" | ||
color="white" | ||
color="neutral" | ||
variant="ghost" | ||
trailing-icon="i-heroicons-arrow-right-20-solid" | ||
trailing-icon="i-lucide-arrow-right" | ||
class="hidden lg:flex" | ||
/> | ||
</template> | ||
|
||
<template #panel> | ||
<UAsideLinks :links="links" /> | ||
<template #content> | ||
<UNavigationMenu | ||
:items="items" | ||
orientation="vertical" | ||
class="-mx-2.5" | ||
/> | ||
|
||
<UDivider class="my-6" /> | ||
<USeparator class="my-6" /> | ||
|
||
<UButton | ||
label="Sign in" | ||
color="white" | ||
color="neutral" | ||
block | ||
class="mb-3" | ||
/> | ||
<UButton | ||
label="Get started" | ||
block | ||
/> | ||
</template> | ||
</UHeader> | ||
</template> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.