Skip to content

Commit

Permalink
feat(plausible): add plausible ; fix landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 24, 2022
1 parent 75a2e74 commit 5fd673e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/components/content/BlockHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defineProps({

<template>
<section class="py-6 sm:py-12 lg:py-24 lg:pb-16">
<Container padded class="my-16 flex flex-col lg:flex-row">
<div class="mb-8 flex flex-col items-center pr-0 lg:mb-0 lg:w-2/3 lg:items-start lg:pr-12">
<Container padded class="my-16 flex flex-col items-center lg:flex-row">
<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">
<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">
<Icon name="heroicons-solid:sparkles" class="h-4 w-4" />
<span class="font-medium text-sm">{{ announcement[0] }}</span>
Expand All @@ -49,7 +49,7 @@ defineProps({
</div>

<div class="sm:w-580px mx-auto lg:w-1/3">
<VideoPlayer poster="/video-cover.jpeg" src="https://www.youtube.com/watch?v=o9e12WbKrd8" />
<VideoPlayer class="border-2 shadow-lg surface-border" poster="/video-cover.jpeg" src="https://www.youtube.com/watch?v=o9e12WbKrd8" />
</div>
</Container>
</section>
Expand Down
7 changes: 3 additions & 4 deletions docs/content/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ Nuxt Content reads the `content/` directory in your project, parses `.md`, `.yml
::

::card-grid
#root
::ellipsis{.-z-[1]}
::

#title
Powerful Features

Expand Down Expand Up @@ -79,6 +75,9 @@ Powerful Features
description: Nuxt Content support both Static or Node server hosting.
---
::

#root
:ellipsis
::

::container{padded .py-8 .mb-8 .flex .items-center .justify-center}
Expand Down
5 changes: 4 additions & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default defineNuxtConfig({
generate: {
routes: []
},
modules: ['@nuxthq/admin', '@docus/github'],
modules: ['@nuxthq/admin', '@docus/github', 'vue-plausible'],
alias,
extends: [
(process.env.DOCUS_THEME_PATH || './node_modules/@docus/docs-theme')
Expand All @@ -63,6 +63,9 @@ export default defineNuxtConfig({
'process.env.FORCE_TERM': {}
}
},
plausible: {
domain: 'content.nuxtjs.org'
},
tailwindcss: {
config: {
theme: {
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@docus/docs-theme": "npm:@docus/docs-theme-edge@latest",
"@docus/github": "npm:@docus/github-edge@latest",
"monaco-editor-core": "^0.33.0",
"nuxt": "^3.0.0-rc.3"
"nuxt": "^3.0.0-rc.3",
"vue-plausible": "^1.3.1"
},
"dependencies": {
"@typescript/ata": "^0.9.3",
Expand Down

0 comments on commit 5fd673e

Please sign in to comment.