Skip to content

Commit 3d15082

Browse files
committed
style(website): Update banner styles for CLI command and support sections
Refactor SupportMessage to use centered banner layout with yellow gradient. Update CLI banner to use simple background with command in white box.
1 parent 8cdebc9 commit 3d15082

File tree

3 files changed

+29
-57
lines changed

3 files changed

+29
-57
lines changed

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { HeartHandshake, Star } from 'lucide-vue-next';
2+
import { Star } from 'lucide-vue-next';
33
import { computed, ref } from 'vue';
44
55
const 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.3s ease;
69+
transition: text-decoration-color 0.2s 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>

website/client/components/Home/TryItResultContent.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ dd {
368368
display: flex;
369369
align-items: center;
370370
justify-content: space-between;
371-
gap: 16px;
372-
padding: 12px 16px;
373-
background: linear-gradient(135deg, var(--vp-c-brand-soft) 0%, var(--vp-c-bg-soft) 100%);
371+
gap: 12px;
372+
padding: 8px 16px;
373+
background: var(--vp-c-bg-soft);
374374
border-top: 1px solid var(--vp-c-border);
375375
}
376376
@@ -401,6 +401,10 @@ dd {
401401
white-space: nowrap;
402402
overflow: hidden;
403403
text-overflow: ellipsis;
404+
background: var(--vp-c-bg);
405+
border: 1px solid var(--vp-c-border);
406+
border-radius: 4px;
407+
padding: 4px 8px;
404408
}
405409
406410
.cli-banner-copy {

0 commit comments

Comments
 (0)