调整首页切换语言位置
This commit is contained in:
@@ -1,14 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="homeRecommend_max">
|
<div class="homeRecommend_max">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<img
|
<img
|
||||||
class="homeRecommend_logo"
|
class="homeRecommend_logo"
|
||||||
@click="turnToNewPage('/')"
|
@click="turnToNewPage('/')"
|
||||||
src="@/assets/images/homePage/aidaIcon.png"
|
src="@/assets/images/homePage/aidaIcon.png"
|
||||||
/>
|
/>
|
||||||
<div class="gallery_btn login white" @click="setLogin">Login</div>
|
<div class="gallery_btn login white" @click="setLogin">{{ t('Login.Login') }}</div>
|
||||||
<div class="gallery_btn" @click="signUp">Sign up</div>
|
<div class="gallery_btn" @click="signUp">{{ t('Login.SignUp') }}</div>
|
||||||
</div>
|
<div class="language_btn">
|
||||||
|
<div @click="handleChangeLanguage">
|
||||||
|
<i class="fi fi-rr-globe"></i>
|
||||||
|
{{ isChinese ? 'CN' : 'EN' }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<img class="bg pc" src="@/assets/images/homePage/squareBg.png" alt="">
|
<img class="bg pc" src="@/assets/images/homePage/squareBg.png" alt="">
|
||||||
@@ -158,227 +164,251 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.homeRecommend_max{
|
.homeRecommend_max {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
> .header{
|
> .header {
|
||||||
padding: 3.2rem 4rem;
|
padding: 3.2rem 4rem;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
column-gap: 2rem;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
position: relative;
|
||||||
|
justify-content: flex-end;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.7rem 1.4rem;
|
||||||
|
margin-left: auto;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
> .homeRecommend_logo {
|
||||||
|
display: none;
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
display: block;
|
||||||
|
height: 2.5rem;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.language_btn {
|
||||||
|
color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 2.5rem;
|
||||||
|
>div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
>i{
|
||||||
position: absolute;
|
display: flex;
|
||||||
right: 0;
|
align-items: center;
|
||||||
@media (max-width: 768px) {
|
font-size: 2.5rem;
|
||||||
position: relative;
|
margin-right: .7rem;
|
||||||
justify-content: space-between;
|
|
||||||
width: 100%;
|
|
||||||
padding: .7rem 1.4rem;
|
|
||||||
margin-left: auto;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
}
|
||||||
> .homeRecommend_logo{
|
}
|
||||||
display: none;
|
@media (max-width: 768px) {
|
||||||
@media (max-width: 768px) {
|
font-size: 1.5rem;
|
||||||
display: block;
|
color: #000;
|
||||||
height: 2.5rem;
|
>div {
|
||||||
|
>i{
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-right: .7rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> .gallery_btn{
|
}
|
||||||
margin-right: 2rem;
|
}
|
||||||
border: none;
|
> .gallery_btn {
|
||||||
font-size: 1.7rem;
|
// margin-right: 2rem;
|
||||||
width: 13rem;
|
border: none;
|
||||||
line-height: 6rem;
|
font-size: 1.7rem;
|
||||||
font-weight: 500;
|
width: 13rem;
|
||||||
border-radius: 4rem;
|
line-height: 6rem;
|
||||||
&:last-child{
|
font-weight: 500;
|
||||||
margin-right: 0;
|
border-radius: 4rem;
|
||||||
}
|
&:last-child {
|
||||||
&.login{
|
margin-right: 0;
|
||||||
@media (max-width: 768px) {
|
}
|
||||||
display: none;
|
&.login {
|
||||||
}
|
@media (max-width: 768px) {
|
||||||
}
|
display: none;
|
||||||
@media (max-width: 768px) {
|
}
|
||||||
font-size: .72rem;
|
}
|
||||||
width: 5.2rem;
|
@media (max-width: 768px) {
|
||||||
line-height: 2.4rem;
|
font-size: 0.72rem;
|
||||||
padding: 0;
|
width: 5.2rem;
|
||||||
|
line-height: 2.4rem;
|
||||||
}
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
> .content{
|
> .content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
> .bg{
|
> .bg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(-50%,-50%);
|
transform: translate(-50%, -50%);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
display: none;
|
display: none;
|
||||||
&.pc{
|
&.pc {
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.mobile{
|
&.mobile {
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> .title{
|
> .title {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(-50%,-50%);
|
transform: translate(-50%, -50%);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
margin-top: -2rem;
|
margin-top: -2rem;
|
||||||
> img{
|
> img {
|
||||||
width: 17rem;
|
width: 17rem;
|
||||||
}
|
}
|
||||||
> .text{
|
> .text {
|
||||||
width: max-content;
|
width: max-content;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> .beForm{
|
> .beForm {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 2.1rem;
|
font-size: 2.1rem;
|
||||||
bottom: 10rem;
|
bottom: 10rem;
|
||||||
left: 10rem;
|
left: 10rem;
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
display: block;
|
display: block;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
bottom: 1rem;
|
bottom: 1rem;
|
||||||
font-size: .8rem;
|
font-size: 0.8rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> .learnMore{
|
> .learnMore {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 29rem;
|
bottom: 29rem;
|
||||||
right: 10rem;
|
right: 10rem;
|
||||||
width: 53.4rem;
|
width: 53.4rem;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
> img{
|
> img {
|
||||||
height: 19.5rem;
|
height: 19.5rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// > .title{
|
// > .title{
|
||||||
// margin-bottom: .8rem;
|
// margin-bottom: .8rem;
|
||||||
// font-size: 11.8rem;
|
// font-size: 11.8rem;
|
||||||
// font-weight: 500;
|
// font-weight: 500;
|
||||||
// }
|
// }
|
||||||
// > .info{
|
// > .info{
|
||||||
// font-family: 'pingfang_regular';
|
// font-family: 'pingfang_regular';
|
||||||
// font-size: 2.8rem;
|
// font-size: 2.8rem;
|
||||||
// font-weight: 400;
|
// font-weight: 400;
|
||||||
// margin-bottom: 2rem;
|
// margin-bottom: 2rem;
|
||||||
// }
|
// }
|
||||||
> .btn{
|
> .btn {
|
||||||
line-height: 6rem;
|
line-height: 6rem;
|
||||||
width: 18rem;
|
width: 18rem;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// > .left,> .right{
|
// > .left,> .right{
|
||||||
// height: 100%;
|
// height: 100%;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
// display: none;
|
// display: none;
|
||||||
// }
|
// }
|
||||||
// > .left{
|
// > .left{
|
||||||
// width: 45%;
|
// width: 45%;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
// justify-content: center;
|
// justify-content: center;
|
||||||
// position: relative;
|
// position: relative;
|
||||||
// > .logoBox{
|
// > .logoBox{
|
||||||
// height: 4rem;
|
// height: 4rem;
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// left: 2rem;
|
// left: 2rem;
|
||||||
// top: 2rem;
|
// top: 2rem;
|
||||||
// img{
|
// img{
|
||||||
// height: 100%;
|
// height: 100%;
|
||||||
// margin-left: 2rem;
|
// margin-left: 2rem;
|
||||||
// }
|
// }
|
||||||
// .codeCreatelogo{
|
// .codeCreatelogo{
|
||||||
// cursor: pointer;
|
// cursor: pointer;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// > .text{
|
// > .text{
|
||||||
// width: 68rem;
|
// width: 68rem;
|
||||||
// > .title{
|
// > .title{
|
||||||
// font-size: 6.4rem;
|
// font-size: 6.4rem;
|
||||||
// font-weight: 900;
|
// font-weight: 900;
|
||||||
// line-height: 1.2;
|
// line-height: 1.2;
|
||||||
// margin-bottom: 3.2rem;
|
// margin-bottom: 3.2rem;
|
||||||
// p{
|
// p{
|
||||||
// margin-bottom: 0;
|
// margin-bottom: 0;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// > .info{
|
// > .info{
|
||||||
// font-size: 2.4rem;
|
// font-size: 2.4rem;
|
||||||
// margin-bottom: 1.6rem;
|
// margin-bottom: 1.6rem;
|
||||||
// line-height: 1.2;
|
// line-height: 1.2;
|
||||||
// > span{
|
// > span{
|
||||||
// color: #0070c9;
|
// color: #0070c9;
|
||||||
// cursor: pointer;
|
// cursor: pointer;
|
||||||
// &:hover{
|
// &:hover{
|
||||||
// text-decoration: underline;
|
// text-decoration: underline;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// > .continue{
|
// > .continue{
|
||||||
// font-size: 2.4rem;
|
// font-size: 2.4rem;
|
||||||
// > i{
|
// > i{
|
||||||
// margin-left: 1rem;
|
// margin-left: 1rem;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// > .right{
|
// > .right{
|
||||||
// position: relative;
|
// position: relative;
|
||||||
// width: 55%;
|
// width: 55%;
|
||||||
// background: #d7d6d5;
|
// background: #d7d6d5;
|
||||||
// display: flex;
|
// display: flex;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
// justify-content: flex-end;
|
// justify-content: flex-end;
|
||||||
// > img{
|
// > img{
|
||||||
// object-fit: cover;
|
// object-fit: cover;
|
||||||
// }
|
// }
|
||||||
// > .model{
|
// > .model{
|
||||||
// height: 100%;
|
// height: 100%;
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
// }
|
// }
|
||||||
// > .text{
|
// > .text{
|
||||||
// height: 45rem;
|
// height: 45rem;
|
||||||
// text-align: right;
|
// text-align: right;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user