Skip to content

Commit 2ac1e1d

Browse files
committed
doc: add next site nav
1 parent 6fb4787 commit 2ac1e1d

File tree

5 files changed

+72
-33
lines changed

5 files changed

+72
-33
lines changed

site/index.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,23 @@
6363
gtag('config', 'UA-151755889-1');
6464
</script>
6565
<script type="text/javascript" src="https://cdn.wwads.cn/js/makemoney.js" async></script>
66-
<div
66+
<!-- <div
6767
class="surveybyantdv"
6868
data-sf-id="63ad5912f3e10066"
6969
data-sf-mode="popover"
70-
data-sf-button-color="#1890ff"
70+
data-sf-button-color="#3a3939"
7171
data-sf-text-color="#ffffff"
72-
data-sf-font-size="18"
73-
data-sf-button-text=""
74-
data-sf-button-radius="50%"
75-
data-sf-button-icon="like-outlined"
72+
data-sf-button-radius="50"
73+
data-sf-button-icon="form-outlined"
7674
data-sf-default-open="false"
7775
data-sf-allow-repeat-submit="true"
7876
data-sf-close-after-submit="false"
7977
data-sf-hide-after-submit="false"
8078
data-sf-delay-visible="false"
81-
data-sf-width="350px"
82-
data-sf-height="450px"
8379
data-sf-preload="true"
80+
data-sf-width="368px"
81+
data-sf-height="407px"
8482
></div>
85-
<script async src="//aliyuncdn.antdv.com/form/static/embed/v1.js"></script>
83+
<script async src="https://aliyuncdn.antdv.com/form/static/embed/runtime.js"></script> -->
8684
</body>
8785
</html>

site/src/components/surelyVue.vue

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
<template>
2-
<a href="https://www.surely.cool/" target="_blank">
3-
<div :class="cls">
4-
<div class="logo">
5-
<img height="80" src="https://www.surely.cool/surely-vue-logo.png" alt="" />
6-
</div>
7-
<div class="desc">
8-
<div class="title">Surely Vue</div>
9-
<div class="sub-title">
10-
构建更快的网站
11-
<br />
12-
更快的构建网站
2+
<div class="container">
3+
<a-carousel autoplay>
4+
<a style="display: inline-block" href="https://form.antdv.com/" target="_blank">
5+
<div :class="cls">
6+
<div class="logo">
7+
<img height="80" src="https://aliyuncdn.antdv.com/form/static/logo-blue.png" alt="" />
8+
</div>
9+
<div class="desc">
10+
<!-- <div class="title">Surely Form</div> -->
11+
<div class="sub-title">
12+
<strong>雪梨表单、为您定制</strong>
13+
<br />
14+
专属的调研,投票、NPS、报名等系统
15+
</div>
16+
</div>
1317
</div>
14-
</div>
15-
</div>
16-
</a>
18+
</a>
19+
<a style="display: inline-block" href="https://www.surely.cool/" target="_blank">
20+
<div :class="cls">
21+
<div class="logo">
22+
<img height="80" src="https://www.surely.cool/surely-vue-logo.png" alt="" />
23+
</div>
24+
<div class="desc">
25+
<div class="title">Surely Table</div>
26+
<div class="sub-title">
27+
构建更快的网站
28+
<br />
29+
更快的构建网站
30+
</div>
31+
</div>
32+
</div>
33+
</a>
34+
</a-carousel>
35+
</div>
1736
<div class="placeholder"></div>
1837
</template>
1938
<script lang="ts">
@@ -34,23 +53,33 @@ export default defineComponent({
3453
});
3554
</script>
3655
<style scoped>
37-
.wrap {
38-
display: flex;
39-
background-color: #f4f8fa;
40-
padding: 10px 30px;
56+
.container {
4157
position: absolute;
4258
top: 0;
4359
left: 0;
4460
z-index: 9;
4561
width: 100%;
4662
height: 100px;
63+
}
64+
.wrap {
65+
display: flex;
66+
background-color: #f4f8fa;
67+
padding: 8px 16px;
68+
width: 100%;
69+
height: 100px;
4770
overflow: hidden;
4871
}
72+
.logo {
73+
width: 80px;
74+
display: flex;
75+
align-items: center;
76+
justify-content: center;
77+
}
4978
.placeholder {
5079
height: 100px;
5180
}
5281
.desc {
53-
margin-left: 20px;
82+
margin-left: 16px;
5483
overflow: hidden;
5584
color: rgba(0, 0, 0, 0.85);
5685
font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',

site/src/layouts/header/Menu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
:default-value="antdVersion"
1313
>
1414
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
15+
<a-select-option value="next" @click="changeVersion('next')">4.x (Next)</a-select-option>
1516
<a-select-option value="2.x" @click="changeVersion('2x')">
1617
2.x (Not Recommended)
1718
</a-select-option>

site/src/layouts/header/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<header id="header" :class="headerClassName">
3-
<div v-if="visibleAdblockBanner" class="adblock-banner">
3+
<!-- <div v-if="visibleAdblockBanner" class="adblock-banner">
44
<template v-if="isZhCN">
55
我们检测到你可能使用了 AdBlock 或 Adblock
66
Plus,它会影响到正常功能的使用(如复制、展开代码等)。
@@ -15,9 +15,9 @@
1515
</template>
1616
1717
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
18-
</div>
18+
</div> -->
1919
<div v-if="visibleAlertBanner && isZhCN" class="alert-banner">
20-
Surely Form 1.0 发布,快速搭建在线问卷,无缝嵌入各种系统,限时限量加群,记得扫码哦
20+
Surely Form 2.0 发布,快速定制自己的问卷平台 &nbsp;&nbsp;
2121
<a href="https://form.antdv.com">立即体验</a>
2222

2323
<CloseOutlined class="close-icon" @click="visibleAlertBanner = false" />
@@ -128,10 +128,10 @@ export default defineComponent({
128128
watch(globalConfig?.blocked, val => {
129129
visibleAdblockBanner.value = val;
130130
});
131-
const visibleAlertBanner = ref(!localStorage.getItem('surelyform'));
131+
const visibleAlertBanner = ref(!localStorage.getItem('surelyform_v2'));
132132
watch(visibleAlertBanner, () => {
133133
if (!visibleAlertBanner.value) {
134-
localStorage.setItem('surelyform', version);
134+
localStorage.setItem('surelyform_v2', version);
135135
}
136136
});
137137
return {

site/src/main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,14 @@ app.use(i18n);
5757
app.config.globalProperties.$i18n = i18n;
5858

5959
app.mount('#app');
60+
61+
// setTimeout(() => {
62+
// const clicked = localStorage.getItem('surveybyantdv_22_03_14');
63+
// if (!clicked) {
64+
// const btn = document.getElementsByClassName('surveybyantdv-launch-button')?.[0];
65+
// if (btn) {
66+
// btn.click();
67+
// localStorage.setItem('surveybyantdv_22_03_14', true);
68+
// }
69+
// }
70+
// }, 3000);

0 commit comments

Comments
 (0)