Skip to content

Commit 5fd673e

Browse files
committed
feat(plausible): add plausible ; fix landing page
1 parent 75a2e74 commit 5fd673e

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

docs/components/content/BlockHero.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defineProps({
2121

2222
<template>
2323
<section class="py-6 sm:py-12 lg:py-24 lg:pb-16">
24-
<Container padded class="my-16 flex flex-col lg:flex-row">
25-
<div class="mb-8 flex flex-col items-center pr-0 lg:mb-0 lg:w-2/3 lg:items-start lg:pr-12">
24+
<Container padded class="my-16 flex flex-col items-center lg:flex-row">
25+
<div class="mb-8 flex flex-col items-center justify-center pr-0 lg:mb-0 lg:w-2/3 lg:items-start lg:pr-12">
2626
<NuxtLink v-if="announcement" :to="announcement[1]" class="hover:bg-primary-200 text-primary-900 bg-primary-100 transition dark:bg-transparent hover:dark:bg-primary-900 dark:border-primary-700 dark:text-primary-100 border border-primary-400 mb-8 px-4 py-2 rounded-md flex gap-x-1 flex items-center justify-center">
2727
<Icon name="heroicons-solid:sparkles" class="h-4 w-4" />
2828
<span class="font-medium text-sm">{{ announcement[0] }}</span>
@@ -49,7 +49,7 @@ defineProps({
4949
</div>
5050

5151
<div class="sm:w-580px mx-auto lg:w-1/3">
52-
<VideoPlayer poster="/video-cover.jpeg" src="https://www.youtube.com/watch?v=o9e12WbKrd8" />
52+
<VideoPlayer class="border-2 shadow-lg surface-border" poster="/video-cover.jpeg" src="https://www.youtube.com/watch?v=o9e12WbKrd8" />
5353
</div>
5454
</Container>
5555
</section>

docs/content/1.index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ Nuxt Content reads the `content/` directory in your project, parses `.md`, `.yml
2626
::
2727

2828
::card-grid
29-
#root
30-
::ellipsis{.-z-[1]}
31-
::
32-
3329
#title
3430
Powerful Features
3531

@@ -79,6 +75,9 @@ Powerful Features
7975
description: Nuxt Content support both Static or Node server hosting.
8076
---
8177
::
78+
79+
#root
80+
:ellipsis
8281
::
8382

8483
::container{padded .py-8 .mb-8 .flex .items-center .justify-center}

docs/nuxt.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineNuxtConfig({
4545
generate: {
4646
routes: []
4747
},
48-
modules: ['@nuxthq/admin', '@docus/github'],
48+
modules: ['@nuxthq/admin', '@docus/github', 'vue-plausible'],
4949
alias,
5050
extends: [
5151
(process.env.DOCUS_THEME_PATH || './node_modules/@docus/docs-theme')
@@ -63,6 +63,9 @@ export default defineNuxtConfig({
6363
'process.env.FORCE_TERM': {}
6464
}
6565
},
66+
plausible: {
67+
domain: 'content.nuxtjs.org'
68+
},
6669
tailwindcss: {
6770
config: {
6871
theme: {

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"@docus/docs-theme": "npm:@docus/docs-theme-edge@latest",
1313
"@docus/github": "npm:@docus/github-edge@latest",
1414
"monaco-editor-core": "^0.33.0",
15-
"nuxt": "^3.0.0-rc.3"
15+
"nuxt": "^3.0.0-rc.3",
16+
"vue-plausible": "^1.3.1"
1617
},
1718
"dependencies": {
1819
"@typescript/ata": "^0.9.3",

0 commit comments

Comments
 (0)