mermaid/packages/mermaid/src/docs/.vitepress/components/TopBar.vue

27 lines
920 B
Vue
Raw Normal View History

2023-10-04 10:36:43 +02:00
<template>
<div
2023-10-04 10:39:34 +02:00
class="w-full top-bar bg-gradient-to-r from-[#bd34fe] to-[#ff3670] flex items-center text-center justify-center p-1 text-white"
2023-10-04 10:36:43 +02:00
>
2023-11-27 20:36:56 +01:00
<p class="flex-grow text-center tracking-wide text-text">
2023-11-28 09:09:46 +01:00
<a
2024-03-18 22:32:26 +01:00
href="https://www.mermaidchart.com/landing"
2023-11-27 20:36:56 +01:00
target="_blank"
2024-01-12 16:54:19 +01:00
class="unstyled flex-grow tracking-wide plausible-event-name=bannerClick"
2023-11-27 20:36:56 +01:00
>
2024-01-12 07:42:09 +01:00
<span class="text-primary-50 font-semibold">{{
[
'Try diagramming with ChatGPT at Mermaid Chart',
'Try Mermaids Visual Editor at Mermaid Chart',
'Enjoy live collaboration with teammates at Mermaid Chart',
][Math.floor(Math.random() * 3)]
}}</span>
<button
class="ml-4 rounded bg-[#111113] p-1 px-2 text-sm font-semibold tracking-wide text-white"
2023-11-28 09:09:46 +01:00
>
2024-01-12 07:42:09 +01:00
Try it now
</button>
2023-11-28 09:09:46 +01:00
</a>
2023-11-27 20:36:56 +01:00
</p>
2023-10-04 10:36:43 +02:00
</div>
</template>