Skip to content

Commit a3ac374

Browse files
committed
添加优云智算注册横幅,更新样式和文本内容
1 parent 41478cc commit a3ac374

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

main_page.vue

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
<template>
2+
<!-- Banner Start -->
3+
<div class="banner" @click="goto('https://www.uyunzhisuan.com/register')">
4+
<img class="banner-icon"
5+
src="https://cdn.udelivrs.com/2024/11/437c3c1914197056212918f3d2cb53c1_1730962202072.png" alt="优云智算" />
6+
<span class="banner-text">
7+
点击注册优云智算领10元算力金GPU免费用,高校/企业认证再得10元额外享受算力购买95折!
8+
</span>
9+
</div>
10+
<!-- Banner End -->
211
<NModalProvider>
312
<div class="title-box">
413
<!-- <div class="title-bg"></div> -->
@@ -136,6 +145,42 @@ const message = useMessage();
136145
}
137146
}
138147
148+
.banner {
149+
display: flex;
150+
align-items: center;
151+
justify-content: center;
152+
padding: 5px 32px;
153+
background-color: var(--vp-c-bg-alt);
154+
cursor: pointer;
155+
border-bottom: 1px solid #ddd;
156+
157+
&-icon {
158+
padding: 1px;
159+
height: 30px;
160+
margin-right: 10px;
161+
background-color: #f0f0f02f;
162+
display: none;
163+
}
164+
165+
&-text {
166+
font-size: 0.6em;
167+
color: --vp-c-text-2;
168+
text-align: center;
169+
font-weight: bold
170+
}
171+
172+
&-arrow {
173+
margin-left: auto;
174+
height: 22px;
175+
width: 22px;
176+
177+
svg {
178+
width: 100%;
179+
height: 100%;
180+
}
181+
}
182+
}
183+
139184
.group-item {
140185
display: flex;
141186
align-items: center;

0 commit comments

Comments
 (0)