Skip to content

Commit

Permalink
✨ feat(docs): add demo.vue component and update index.vue component
Browse files Browse the repository at this point in the history
🆕 Add a new component called demo.vue to the docs directory. This component represents a demo page and includes a main section with an h1 heading. It also imports and uses the `useSeoMeta` and `definePageMeta` functions from the `#imports` module to define the page's metadata, including the layout, meta title, meta description, and Twitter card type.

🔄 Update the index.vue component in the docs directory. The main section now has a class of "bg-base-200" for styling purposes. The h1 heading has been changed to "Getting Started". The `useSeoMeta` and `definePageMeta` functions are also updated to reflect the new meta title and meta description for the page.

🆕 Add a new component called partners.vue to the pages directory. This component represents a partners page and includes a main section with an h1 heading. It also imports and uses the `useSeoMeta` and `definePageMeta` functions from the `#imports` module to define the page's metadata, including the layout, meta title, meta description, and Twitter card type.

The changes were made to improve the documentation pages of the Vue Stripe application. The new demo page provides a template for showcasing demos, while the updated index page and the new partners page have improved metadata for better search engine optimization and social media sharing.
  • Loading branch information
jofftiquez committed Aug 3, 2023
1 parent 23faa3d commit 823485c
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 8 deletions.
32 changes: 32 additions & 0 deletions src/pages/docs/demo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<main>
<h1>Demo</h1>
</main>
</template>

<script>
// import { onMounted, ref } from 'vue';
import { useSeoMeta, definePageMeta } from '#imports';
export default {
setup () {
definePageMeta({
layout: 'blank',
});
const metaTitle = 'Demo - Vue Stripe Docs';
const metaDescription = 'Demo for Vue Stripe.';
useSeoMeta({
title: metaTitle,
ogTitle: metaTitle,
description: metaDescription,
ogDescription: metaDescription,
// image: ogBanner,
// ogImage: ogBanner,
// url: 'https://jofftiquez.com/gui',
// ogUrl: 'https://jofftiquez.com/gui',
twitterCard: 'summary_large_image',
});
},
};
</script>
15 changes: 7 additions & 8 deletions src/pages/docs/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<main>
<b>Hello HAHAHA</b>
<ContentDoc path="/docs/about" />
<main class="bg-base-200">
<h1>Getting Started</h1>
</main>
</template>

Expand All @@ -11,11 +10,11 @@ import { useSeoMeta, definePageMeta } from '#imports';
export default {
setup () {
definePageMeta({
layout: 'blank',
layout: 'docs',
});
const metaTitle = 'Home - Joff Tiquez';
const metaDescription = 'Web Developer from 🇵🇭';
const metaTitle = 'Geting Started - Vue Stripe Docs';
const metaDescription = 'Get started with Vue Stripe.';
useSeoMeta({
title: metaTitle,
Expand All @@ -24,8 +23,8 @@ export default {
ogDescription: metaDescription,
// image: ogBanner,
// ogImage: ogBanner,
url: 'https://jofftiquez.com/gui',
ogUrl: 'https://jofftiquez.com/gui',
// url: 'https://jofftiquez.com/gui',
// ogUrl: 'https://jofftiquez.com/gui',
twitterCard: 'summary_large_image',
});
},
Expand Down
32 changes: 32 additions & 0 deletions src/pages/partners.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<main>
<h1>Partners</h1>
</main>
</template>

<script>
// import { onMounted, ref } from 'vue';
import { useSeoMeta, definePageMeta } from '#imports';
export default {
setup () {
definePageMeta({
layout: 'default',
});
const metaTitle = 'Partners - Vue Stripe';
const metaDescription = 'Partners of Vue Stripe.';
useSeoMeta({
title: metaTitle,
ogTitle: metaTitle,
description: metaDescription,
ogDescription: metaDescription,
// image: ogBanner,
// ogImage: ogBanner,
// url: 'https://jofftiquez.com/gui',
// ogUrl: 'https://jofftiquez.com/gui',
twitterCard: 'summary_large_image',
});
},
};
</script>

0 comments on commit 823485c

Please sign in to comment.