Skip to content

Commit 869f024

Browse files
committed
Refactor HomeAds component to add new site link
1 parent ab5e9b7 commit 869f024

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/.vuepress/components/HomeAds.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const vidHubEn = {
1616
],
1717
url: "https://apps.apple.com/app/apple-store/id1659622164?pt=118612019&ct=alist&mt=8",
1818
tag: "Free",
19+
new_site: "Open the new site",
1920
}
2021
2122
const vidHubCN = {
@@ -26,6 +27,7 @@ const vidHubCN = {
2627
],
2728
url: "https://zh.okaapps.com/product/1659622164?ref=alist",
2829
tag: "免费",
30+
new_site: "打开新站点",
2931
}
3032
3133
const vidHub = computed(() => {
@@ -62,11 +64,24 @@ const isApple = computed(() => {
6264
</div>
6365
</div>
6466
</a>
67+
<a class="new_site" href="https://alistgo.com" target="_blank">{{ vidHub.new_site }}</a>
6568
</div>
6669
</div>
6770
</template>
6871

6972
<style scoped lang="scss">
73+
.new_site {
74+
display: flex;
75+
justify-content: center;
76+
margin-top: 10px;
77+
font-size: larger;
78+
font-weight: bold;
79+
border: 1px solid #aaaaaa50;
80+
border-radius: 10px;
81+
padding: 10px 0;
82+
color: #007bff;
83+
text-decoration: none;
84+
}
7085
.vidhub {
7186
width: 100%;
7287
height: 150px;

0 commit comments

Comments
 (0)