11<script setup lang="ts">
2- import { HeartHandshake , Star } from ' lucide-vue-next' ;
2+ import { Star } from ' lucide-vue-next' ;
33import { computed , ref } from ' vue' ;
44
55const messages = [
@@ -26,73 +26,50 @@ const supportMessage = computed(() => messages[currentMessageIndex.value]);
2626 </script >
2727
2828<template >
29- <div class =" support-notice" >
30- <div class =" support-message" >
31- <a :href =" supportMessage.link" target =" _blank" rel =" noopener noreferrer" class =" support-link" >
32- <component :is =" supportMessage.icon" :size =" 14" class =" support-icon" />
33- <span class =" link-text" >{{ supportMessage.linkText }}</span >{{ supportMessage.suffix }}
34- </a >
35- </div >
29+ <div class =" support-banner" >
30+ <a :href =" supportMessage.link" target =" _blank" rel =" noopener noreferrer" class =" support-link" >
31+ <component :is =" supportMessage.icon" :size =" 14" class =" support-icon" />
32+ <span class =" link-text" >{{ supportMessage.linkText }}</span >{{ supportMessage.suffix }}
33+ </a >
3634 </div >
3735</template >
3836
3937<style scoped>
40- .support-notice {
41- padding : 8px ;
42- background : var (--vp-c-bg-soft );
43- border-top : 1px solid var (--vp-c-border );
44- display : flex ;
45- justify-content : center ;
46- align-items : center ;
47- text-align : center ;
48- min-height : 45px ;
49- }
50-
51- .support-message {
38+ .support-banner {
5239 display : flex ;
5340 align-items : center ;
5441 justify-content : center ;
55- color : var (--vp-c-text-2 );
56- font-size : 12px ;
57- width : 100% ;
58- }
59-
60- .support-icon {
61- flex-shrink : 0 ;
62- transition : color 0.3s ease ;
63- color : v-bind(' supportMessage.color' );
42+ padding : 10px 16px ;
43+ background : linear-gradient (135deg , rgba (255 , 140 , 0 , 0.05 ) 0% , var (--vp-c-bg-soft ) 100% );
44+ border-top : 1px solid var (--vp-c-border );
6445}
6546
6647.support-link {
67- text-decoration : none ;
68- font-weight : normal ;
69- transition : color 0.3s ease ;
7048 display : flex ;
7149 align-items : center ;
7250 gap : 6px ;
51+ font-size : 12px ;
52+ color : var (--vp-c-text-2 );
53+ text-decoration : none ;
54+ transition : color 0.2s ease ;
7355}
7456
7557.support-link :hover {
76- color : var (--vp-c-brand-1 );
58+ color : var (--vp-c-text-1 );
59+ }
60+
61+ .support-icon {
62+ flex-shrink : 0 ;
63+ color : v-bind(' supportMessage.color' );
7764}
7865
7966.link-text {
8067 text-decoration : underline ;
8168 text-decoration-color : var (--vp-c-text-3 );
82- transition : text-decoration-color 0.3 s ease ;
69+ transition : text-decoration-color 0.2 s ease ;
8370}
8471
8572.support-link :hover .link-text {
86- text-decoration-color : var (--vp-c-brand-1 );
87- }
88-
89- @media (max-width : 768px ) {
90- .support-notice {
91- padding : 16px ;
92- }
93-
94- .support-message {
95- max-width : 100% ;
96- }
73+ text-decoration-color : var (--vp-c-text-1 );
9774}
9875 </style >
0 commit comments