mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
add product hunt badge to homepage
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div class="-mt-6 mb-8">
|
||||||
|
<a
|
||||||
|
href="https://www.producthunt.com/products/mermaid-chart?utm_source=badge-follow&utm_medium=badge&utm_souce=badge-mermaid-chart"
|
||||||
|
target="_blank"
|
||||||
|
><img
|
||||||
|
src="https://api.producthunt.com/widgets/embed-image/v1/follow.svg?product_id=552855&theme=light"
|
||||||
|
alt="Mermaid Chart - A smarter way to create diagrams | Product Hunt"
|
||||||
|
style="width: 250px; height: 54px"
|
||||||
|
width="250"
|
||||||
|
height="54"
|
||||||
|
/></a>
|
||||||
|
</div>
|
||||||
|
</template>
|
@@ -8,6 +8,8 @@ import Contributors from '../components/Contributors.vue';
|
|||||||
import HomePage from '../components/HomePage.vue';
|
import HomePage from '../components/HomePage.vue';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import TopBar from '../components/TopBar.vue';
|
import TopBar from '../components/TopBar.vue';
|
||||||
|
// @ts-ignore
|
||||||
|
import ProductHuntBadge from '../components/ProductHuntBadge.vue';
|
||||||
import { getRedirect } from './redirect.js';
|
import { getRedirect } from './redirect.js';
|
||||||
import { h } from 'vue';
|
import { h } from 'vue';
|
||||||
import Theme from 'vitepress/theme';
|
import Theme from 'vitepress/theme';
|
||||||
@@ -21,6 +23,7 @@ export default {
|
|||||||
return h(Theme.Layout, null, {
|
return h(Theme.Layout, null, {
|
||||||
// Keeping this as comment as it took a lot of time to figure out how to add a component to the top bar.
|
// Keeping this as comment as it took a lot of time to figure out how to add a component to the top bar.
|
||||||
'home-hero-before': () => h(TopBar),
|
'home-hero-before': () => h(TopBar),
|
||||||
|
'home-hero-info-before': () => h(ProductHuntBadge),
|
||||||
'home-features-after': () => h(HomePage),
|
'home-features-after': () => h(HomePage),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user