refactor(首页): 首页样式更新

This commit is contained in:
wangjiahao 2022-08-30 12:01:34 +08:00
parent 74c1d2b249
commit a5ec4efa2a
22 changed files with 80 additions and 98 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -1,20 +0,0 @@
<svg width="1440" height="500" viewBox="0 0 1440 500" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3828_138290)">
<rect width="1440" height="500" fill="#698CF7"/>
<mask id="mask0_3828_138290" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="1440" height="500">
<rect width="1440" height="500" fill="#E1EAFF"/>
</mask>
<g mask="url(#mask0_3828_138290)">
<rect opacity="0.3" x="997.615" y="-520.646" width="649.042" height="904.316" rx="324.521" transform="rotate(30 997.615 -520.646)" fill="url(#paint0_linear_3828_138290)"/>
</g>
</g>
<defs>
<linearGradient id="paint0_linear_3828_138290" x1="896.257" y1="-118.555" x2="1412.82" y2="314.888" gradientUnits="userSpaceOnUse">
<stop stop-color="#698CF7"/>
<stop offset="1" stop-color="#2C49F1" stop-opacity="0.301737"/>
</linearGradient>
<clipPath id="clip0_3828_138290">
<rect width="1440" height="500" fill="white"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 424 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 407 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 89 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -16,7 +16,7 @@
<div class="hint_head">{{ $t('wizard.welcome_title') }}</div>
<div class="hint_content">{{ $t('wizard.welcome_hint') }}</div>
</div>
<img class="top_banner_img" src="../../assets/wizard_main_bg_inner.png"></img>
<svg-icon class="top_banner_img" icon-class="wizard_main_bg_inner"></svg-icon>
</el-row>
<el-row class="top_banner_card">
<wizard-card :details="cardList[0]"></wizard-card>
@ -42,7 +42,7 @@
</el-row>
<el-row >
<ul class="ul-custom">
<li class="li-custom" v-for="blogItem in blogsInfo"><a target="_blank" :href="blogItem.href" :title="blogItem.title" >{{blogItem.title}}</a></li>
<li class="li-custom" v-for="blogItem in blogsInfo"><a target="_blank" class="li-a" :href="blogItem.href" :title="blogItem.title" >{{blogItem.title}}</a></li>
</ul>
</el-row>
</div>
@ -67,7 +67,7 @@
<div class="content_bottom_qr_code">
<div class="contact_wechat_official">
<div class="contact_title_qr">微信公众号</div>
<img class="contact_wechat_official_img" src="@/assets/wizard_wechat-official.png"></img>
<img class="contact_wechat_official_img" src="@/assets/wizard_wechat-official.jpeg"></img>
</div>
<div class="contact_wechat_group">
<div class="contact_title_qr">技术交流群</div>
@ -112,21 +112,21 @@ export default {
{
head: this.$t('wizard.quick_start'),
content: this.$t('wizard.demo_video_hint'),
img: 'wizard_quick_start.png',
img: 'wizard_quick_start',
bgColor: '#E7F2FF',
href: 'https://www.bilibili.com/video/BV1i34y1v7hq/'
},
{
head: this.$t('wizard.online_document'),
content: this.$t('wizard.online_document_hint'),
img: 'wizard_help.png',
img: 'wizard_help',
bgColor: '#F3F2FF',
href: 'https://dataease.io/docs/index.html',
},
{
head: this.$t('wizard.enterprise_edition'),
content: this.$t('wizard.enterprise_edition_hint1') + '<br>' + this.$t('wizard.enterprise_edition_hint2') + '<br>' + this.$t('wizard.enterprise_edition_hint3'),
img: 'wizard_enterprise.png',
img: 'wizard_enterprise',
bgColor: '#FFFAF0',
href: 'https://jinshuju.net/f/TK5TTd',
},
@ -135,17 +135,17 @@ export default {
{
content: '1.1 连接数据库并添加数据集',
img: 'wizard_video1.png',
href: 'https://www.bilibili.com/video/BV15P4y1u7Pa?spm_id_from=333.999.0.0'
href: 'https://www.bilibili.com/video/BV1F34y1n7J7?spm_id_from=333.999.0.0'
},
{
content: '1.2 Excel 数据集和 API 数据集',
img: 'wizard_video2.png',
href: 'https://www.bilibili.com/video/BV1cU4y1d77S?spm_id_from=333.999.0.0'
href: 'https://www.bilibili.com/video/BV1Fa411D7Di?spm_id_from=333.999.0.0'
},
{
content: '1.3 数据集整合',
img: 'wizard_video3.png',
href: 'https://www.bilibili.com/video/BV1zY411n7Q1?spm_id_from=333.999.0.0'
href: 'https://www.bilibili.com/video/BV1EB4y187AL?spm_id_from=333.999.0.0'
}
],
loading: true
@ -222,7 +222,7 @@ export default {
.top_banner_card{
position: relative;
width: 100%;
height: 224px;
height: 214px;
}
.hint_head {
@ -269,17 +269,20 @@ export default {
border-radius: 4px;
height: 26px;
padding: 2px;
&:hover {
background: rgba(31, 35, 41, 0.1);
cursor: pointer;
}
}
.content_middle_more :hover{
border-radius: 4px;
height: 26px;
background: rgba(31, 35, 41, 0.1);
}
.content_middle_more i:hover{
background: none;
}
.content_middle_more a:hover{
background: none;
}
.content_middle_right {
float: left;
height: 290px;
@ -304,22 +307,35 @@ export default {
font-weight: 400;
font-size: 14px;
line-height: 22px;
color: var(--TextPrimary, #1F2329);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
list-style-type : disc;
list-style-position: inside;
border-radius: 4px;
padding-left: 12px;
margin-left: -12px;
&:hover {
background: rgba(31, 35, 41, 0.1);
cursor: pointer;
color: #3370FF!important;
.li-a{
color: #3370FF!important;
}
}
}
.li-custom :hover {
background: rgba(31, 35, 41, 0.1);
border-radius: 4px;
color: #3370FF;
.li-custom a:hover {
background: none;
}
.li-a{
color: var(--TextPrimary, #1F2329);
}
.ul-custom {
padding-inline-start:0px;
color: #8F959E;
}
.content_bottom{
@ -340,6 +356,7 @@ export default {
font-size: 14px;
line-height: 22px;
color: var(--TextPrimary, #1F2329);
margin-bottom: 16px;
}
.contact_content{
@ -348,6 +365,7 @@ export default {
font-size: 14px;
line-height: 22px;
color: #646A73;
margin-top: 8px;
}
.contact_content a:hover{
color: #3370FF;
@ -368,6 +386,7 @@ export default {
line-height: 20px;
text-align: center;
color: #646A73;
margin-bottom: 8px;
}
.contact_wechat_official{

View File

@ -1,5 +1,5 @@
<template>
<el-col :style='{background:details.bgColor}' class="card_main">
<div :style='{background:details.bgColor}' class="card_main" @click.stop="goToWeb">
<el-col style="width: 200px">
<el-row class="card_head">
{{details.head}}
@ -14,10 +14,8 @@
</a>
</el-row >
</el-col>
<el-col style="width: 136px">
<img style="width: 136px" :src="require('@/assets/'+details.img)"/>
</el-col>
</el-col>
<svg-icon class="img-position" :icon-class="details.img"></svg-icon>
</div>
</template>
<script>
@ -34,6 +32,11 @@ export default {
return {}
},
computed:{
},
methods:{
goToWeb(){
window.open(this.details.href,'_blank')
}
}
}
@ -41,15 +44,19 @@ export default {
<style lang="scss" scoped>
.card_main{
float: left;
width: 384px;
height: 190px;
padding: 24px;
opacity: 0.9;
border-radius: 8px;
position: relative;
cursor: pointer;
}
.card_main:hover {
box-shadow: 0px 6px 24px rgba(31, 35, 41, 0.5)
opacity: 1;
box-shadow: 0px 6px 24px rgba(31, 35, 41, 0.25)
}
.card_head{
font-family: 'PingFang SC';
@ -88,5 +95,12 @@ export default {
-webkit-transform: rotate(180deg);
transform: rotate(0deg);
}
.img-position{
width: 160px;
height: 190px;
position: absolute;
right: 0px;
top: 0px;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<el-col :style='{background:details.bgColor}' class="card_main">
<div :style='{background:details.bgColor}' class="card_main" @click.stop="goToWeb">
<el-col style="width: 230px">
<el-row class="card_head">
{{details.head}}
@ -14,10 +14,8 @@
</a>
</el-row >
</el-col>
<el-col style="width: 106px">
<img style="width: 106px" src="../../assets/wizard_enterprise.png"></img>
</el-col>
</el-col>
<svg-icon class="img-position" :icon-class="details.img"></svg-icon>
</div>
</template>
<script>
@ -34,6 +32,11 @@ export default {
return {}
},
computed:{
},
methods:{
goToWeb(){
window.open(this.details.href,'_blank')
}
}
}
@ -41,11 +44,14 @@ export default {
<style lang="scss" scoped>
.card_main{
float: left;
width: 384px;
height: 190px;
padding: 24px;
opacity: 0.9;
border-radius: 8px;
position: relative;
cursor: pointer;
}
.card_main:hover {
@ -89,4 +95,12 @@ export default {
transform: rotate(0deg);
}
.img-position{
width: 160px;
height: 190px;
position: absolute;
right: 0px;
top: 0px;
}
</style>