diff options
author | Aylur <[email protected]> | 2024-10-13 01:41:56 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-10-13 01:41:56 +0000 |
commit | 79a96d44b85a6b6e287957f413f98d3812335d52 (patch) | |
tree | 06494479c28445c447f1a0a615da13cb2efb2c19 /docs/showcases/Showcase.vue | |
parent | 9141dea108ee79e7838f7fd9b2267ff7745bcb3f (diff) |
switch to VPButton
Diffstat (limited to 'docs/showcases/Showcase.vue')
-rw-r--r-- | docs/showcases/Showcase.vue | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/docs/showcases/Showcase.vue b/docs/showcases/Showcase.vue index a300974..d58986b 100644 --- a/docs/showcases/Showcase.vue +++ b/docs/showcases/Showcase.vue @@ -1,6 +1,7 @@ <script setup> +import { VPButton } from "vitepress/theme" defineProps({ - src: { type: String, required: true }, + image: { type: String, required: true }, url: { type: String, required: true }, icon: { type: String, required: false, default: "" }, title: { type: String, required: false, default: "" }, @@ -12,7 +13,7 @@ defineProps({ <template> <figure> <div class="image-wrapper"> - <img :src="src" :alt="title"> + <img :src="image" :alt="title"> <div class="overlay"> <div class="text-content"> <h3 v-if="title.length"> @@ -25,11 +26,13 @@ defineProps({ {{ description }} </p> <span class="author">— {{ author }}</span> - <a + <VPButton + tag :href="url" target="_blank" - class="setup-button" - >View Setup</a> + size="medium" + text="View Setup" + /> </div> </div> <i @@ -139,20 +142,8 @@ figure .language-icon { z-index: 1; } -.setup-button { +.VPButton { margin-top: 2rem; - padding: 0.5rem 1rem; - background-color: var(--vp-c-brand); - color: white; text-decoration: none; - border-radius: 0.5rem; - font-weight: bold; - display: inline-block; - font-size: 1rem; - transition: background-color 0.3s ease; -} - -.setup-button:hover { - background-color: darken(var(--vp-c-brand), 10%); } </style> |