docs: landing page (#611)

Co-authored-by: Sébastien Chopin <seb@nuxt.com>
This commit is contained in:
Benjamin Canac
2023-09-07 12:34:55 +02:00
parent 190378aaa9
commit 9f9d8f5cec
58 changed files with 3366 additions and 209 deletions

View File

@@ -3,9 +3,9 @@ import { hexToRgb } from '../utils'
import { defineNuxtPlugin, useAppConfig } from '#imports'
import colors from '#tailwind-config/theme/colors'
export default defineNuxtPlugin((nuxtApp) => {
export default defineNuxtPlugin(() => {
const appConfig = useAppConfig()
const head = nuxtApp.vueApp._context.provides.usehead
const nuxtApp = useNuxtApp()
const root = computed(() => {
const primary: Record<string, string> | undefined = colors[appConfig.ui.primary]
@@ -53,6 +53,5 @@ ${Object.entries(gray || colors.cool).map(([key, value]) => `--color-gray-${key}
}]
}
// Workaround for https://github.com/nuxt/nuxt/issues/22763
head.push(headData)
useHead(headData)
})