6 changed files with 163 additions and 21 deletions
-
BINsrc/assets/design/bottom/code.png
-
2src/components/CustomerService/index.vue
-
20src/components/MetalPlate/Bottom/NewBottomMetal.vue
-
20src/components/MetalPlate/Bottom/NewBottomWhiteMetal.vue
-
139src/components/MetalPlate/LinkCard/index.vue
-
3src/views/MetalPlate/index.vue
Before Width: 119 | Height: 119 | Size: 22 KiB After Width: 769 | Height: 769 | Size: 73 KiB |
@ -0,0 +1,139 @@ |
|||||
|
<template> |
||||
|
<div class="link_card_container"> |
||||
|
<div class="card mr" @click="toPage('/')"> |
||||
|
<img class="bg_img" :src="BG" alt="" /> |
||||
|
<div class="modal"> |
||||
|
<h1 class="title">整机开发</h1> |
||||
|
<div class="btn"> |
||||
|
<p class="text">立即前往</p> |
||||
|
<img :src="Arrow" class="icon" alt="" /> |
||||
|
</div> |
||||
|
<p class="en">Complete machine</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="card" @click="toPage('/pc/hardware')"> |
||||
|
<img class="bg_img" :src="BG" alt="" /> |
||||
|
<div class="modal"> |
||||
|
<h1 class="title">软硬件定制</h1> |
||||
|
<div class="btn"> |
||||
|
<p class="text">立即前往</p> |
||||
|
<img :src="Arrow" class="icon" alt="" /> |
||||
|
</div> |
||||
|
<p class="en">Hardware</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup> |
||||
|
import BG from '@/assets/design/link/1.png' |
||||
|
import Arrow from '@/assets/design/link/arrow.png' |
||||
|
import { useRouter, useRoute } from 'vue-router' |
||||
|
|
||||
|
const router = useRouter() |
||||
|
const route = useRoute() |
||||
|
|
||||
|
const toPage = (path, p) => { |
||||
|
window.location.href = `http://iflytop.com${path}` |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
@keyframes btnAnimation { |
||||
|
0% { |
||||
|
transform: translateX(0); |
||||
|
} |
||||
|
25% { |
||||
|
transform: translateX(25px); |
||||
|
} |
||||
|
75% { |
||||
|
transform: translateX(-25px); |
||||
|
} |
||||
|
100% { |
||||
|
transform: translateX(0); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.link_card_container { |
||||
|
padding: 0 190px; |
||||
|
padding-bottom: 120px; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
.card { |
||||
|
flex: 1; |
||||
|
height: 420px; |
||||
|
position: relative; |
||||
|
cursor: pointer; |
||||
|
.bg_img { |
||||
|
width: 100%; |
||||
|
height: auto; |
||||
|
object-fit: cover; |
||||
|
} |
||||
|
.modal { |
||||
|
position: absolute; |
||||
|
left: 0; |
||||
|
top: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
background: rgba(0, 0, 0, 0.86); |
||||
|
padding-left: 98px; |
||||
|
box-sizing: border-box; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
justify-content: center; |
||||
|
align-items: flex-start; |
||||
|
.title { |
||||
|
font-family: AlibabaPuHuiTi; |
||||
|
font-size: 76px; |
||||
|
font-weight: bold; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.06em; |
||||
|
color: #f6f6f6; |
||||
|
} |
||||
|
.btn { |
||||
|
margin-top: 18px; |
||||
|
margin-bottom: 20px; |
||||
|
border-radius: 324px; |
||||
|
padding: 11px 24px; |
||||
|
background: #2a4ee1; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
.text { |
||||
|
font-family: Source Han Sans CN; |
||||
|
font-size: 16px; |
||||
|
font-weight: normal; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0.1em; |
||||
|
color: #ffffff; |
||||
|
margin-right: 15px; |
||||
|
} |
||||
|
.icon { |
||||
|
width: 19px; |
||||
|
height: 4px; |
||||
|
} |
||||
|
} |
||||
|
.en { |
||||
|
font-family: Poppins; |
||||
|
font-size: 30px; |
||||
|
font-weight: 500; |
||||
|
line-height: normal; |
||||
|
letter-spacing: 0em; |
||||
|
color: #ffffff; |
||||
|
} |
||||
|
} |
||||
|
&:hover { |
||||
|
.modal { |
||||
|
.btn { |
||||
|
animation-name: btnAnimation; |
||||
|
animation-duration: 1s; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.mr { |
||||
|
margin-right: 20px; |
||||
|
} |
||||
|
} |
||||
|
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue