diff --git a/.docs/.studio/app.config.json b/.docs/.studio/app.config.json index d6ad0d219..73d394b78 100644 --- a/.docs/.studio/app.config.json +++ b/.docs/.studio/app.config.json @@ -12,7 +12,7 @@ "medium": "" }, "aside": { - "level": 0, + "level": 1, "collapsed": false, "exclude": [] }, diff --git a/.docs/components/landing/BlockHeroVisuals.vue b/.docs/components/landing/BlockHeroVisuals.vue new file mode 100644 index 000000000..8a63ce293 --- /dev/null +++ b/.docs/components/landing/BlockHeroVisuals.vue @@ -0,0 +1,123 @@ + + + + + + + diff --git a/.docs/components/landing/Glow.vue b/.docs/components/landing/Glow.vue new file mode 100644 index 000000000..ad695fc5c --- /dev/null +++ b/.docs/components/landing/Glow.vue @@ -0,0 +1,133 @@ + + + + + + + diff --git a/.docs/content/0.index.md b/.docs/content/0.index.md index 6d796b044..c7205b82a 100644 --- a/.docs/content/0.index.md +++ b/.docs/content/0.index.md @@ -6,8 +6,6 @@ main: fluid: false --- - - ::block-hero --- cta: @@ -18,11 +16,37 @@ secondary: - https://github.com/nuxt-themes/docus --- +#root + :block-hero-visuals + + ::glow + --- + top: calc(0px - var(--docus-header-height)) + height: calc(var(--block-hero-height) + var(--docus-header-height) + 20rem) + maskGradient: + light: + initial: radial-gradient(circle at 51% 64%, rgba(0,0,0, 1) -7%, rgba(0,0,0, 0) 70%) + xl: radial-gradient(at 70% 45%, red, rgba(255, 0, 0, 0) 85%) + dark: + initial: radial-gradient(circle at 51% 64%, rgba(0,0,0, 1) -7%, rgba(0,0,0, 0) 70%) + xl: radial-gradient(at 70% 45%, red, rgba(255, 0, 0, 0) 85%) + gradient: + light: + initial: radial-gradient(circle at 10% 50%,#4200ff 4%,#fbca0563 25%,#ff4700 65%) + xl: radial-gradient(circle at 10% 50%,#4200ff 7%,#23d70c73 35%,#fbca0563 56%,#ff4700e6 82%) + dark: + initial: radial-gradient(circle at 10% 50%,#4142dc,#fbca05db 45%,#ff4700 82%) + xl: radial-gradient(circle at 10% 50%,#4200ff 7%,#23d70c73 35%,#fbca0563 45%,#ff4700e6 82%) + noise: true + backgroundImage: linear-gradient(transparent 75%, {docus.body.backgroundColor}) + --- + :: + #title The best place to start your documentation. #description -Write pages in [Markdown](https://content.nuxtjs.org), use [Vue](https://vuejs.org) components and enjoy the power of [Nuxt](https://nuxt.com). +Write pages in [:icon{name=mdi:language-markdown}]{style="margin-right:4px"} [Markdown](https://content.nuxtjs.org), use [:icon{name=vscode-icons:file-type-vue}]{style="margin-right:4px"} [Vue](https://vuejs.org) components and enjoy the power of [:icon{name=vscode-icons:file-type-nuxt}]{style="margin-right:4px"} [Nuxt](https://nuxt.com). #extra ::list @@ -44,22 +68,39 @@ Write pages in [Markdown](https://content.nuxtjs.org), use [Vue](https://vuejs.o - npm install - npm run dev --- - :: + :: :: ::card-grid{cols=6 gap=1rem} + +#subtitle +Subtitle + #title What's included #root -:ellipsis{left=0px width=40rem top=10rem blur=140px} +::glow +--- +left: 20% +width: 60vw +height: 15rem +top: 45% +blur: 150px +colors: + - '{color.yellow.700}' + - '{color.primary.700}' + - '{color.red.800}' +--- +:: #default ::card{icon=logos:nuxt-icon} --- - col: 3 - row: 2 - show: true + col: + initial: 6 + sm: 3 + row: 1 --- #title Nuxt Architecture @@ -69,7 +110,12 @@ What's included ::card{icon=IconNuxtStudio} --- - col: 3 + col: + initial: 6 + sm: 2 + row: + initial: 1 + sm: 2 --- #title Nuxt Studio ready @@ -79,7 +125,10 @@ What's included ::card{icon=logos:vue} --- - col: 2 + col: + initial: 6 + sm: 2 + row: 1 --- #title Vue Components @@ -89,7 +138,9 @@ What's included ::card{icon=simple-icons:markdown} --- - col: 2 + col: + initial: 6 + sm: 2 --- #title Write Markdown @@ -99,7 +150,9 @@ What's included ::card{icon=noto:rocket} --- - col: 2 + col: + initial: 6 + sm: 3 --- #title Deploy anywhere @@ -107,10 +160,16 @@ What's included Zero config on [Vercel](https://vercel.com) or [Netlify](https://netlify.com). Choose between static generation, on-demand rendering (Node) or edge-side rendering on [CloudFlare workers](https://workers.cloudflare.com). :: - ::card + ::card{icon=material-symbols:token-outline} + --- + col: + initial: 6 + sm: 3 + --- + #title - Extensible + Design Tokens #description - Customize the whole design, or add components using slots - you can make Docus your own. + Make Docus your own! Use [Design Tokens](https://pinceau.dev/configuration/design-tokens) to build your own Design System. :: :: diff --git a/.docs/nuxt.config.ts b/.docs/nuxt.config.ts index f2f655dcc..a5184f0a1 100644 --- a/.docs/nuxt.config.ts +++ b/.docs/nuxt.config.ts @@ -1,3 +1,6 @@ +import { createResolver } from '@nuxt/kit' +const { resolve } = createResolver(import.meta.url) + export default defineNuxtConfig({ extends: '../', app: { @@ -7,5 +10,12 @@ export default defineNuxtConfig({ } } }, - modules: ['@nuxtjs/plausible', '@nuxt/devtools'] + modules: ['@nuxtjs/plausible', '@nuxt/devtools'], + components: [ + { + prefix: '', + path: resolve('./components/landing'), + global: true + }, + ], }) diff --git a/.docs/tokens.config.ts b/.docs/tokens.config.ts index b80da0a33..773d76de3 100644 --- a/.docs/tokens.config.ts +++ b/.docs/tokens.config.ts @@ -1,4 +1,15 @@ import { defineTheme } from 'pinceau' export default defineTheme({ + docus: { + landing: { + blockHero: { + content: { + title: { + mixBlendMode: 'luminosity' + } + } + } + } + } }) diff --git a/components/app/AppFooter.vue b/components/app/AppFooter.vue index a6872660a..7176cd967 100644 --- a/components/app/AppFooter.vue +++ b/components/app/AppFooter.vue @@ -1,10 +1,23 @@