5 changed files with 33 additions and 95 deletions
-
41src/components/CaseCard.vue
-
11src/components/SubNavigation.vue
-
56src/components/Track.vue
-
20src/pages/CaseShow.vue
-
BINsrc/static/img/banner/arrow.png
@ -1,67 +1,19 @@ |
|||||
<template> |
<template> |
||||
<div> |
<div> |
||||
<HeadLine themeTitle="赛道" title="九大" line1="TRACK" :flip="true" /> |
<HeadLine themeTitle="赛道" title="九大" line1="TRACK" :flip="true" /> |
||||
<div class="track_container"> |
|
||||
<div |
|
||||
:class="item.bg ? 'card bg' : 'card'" |
|
||||
v-for="item in trackList" |
|
||||
:key="item.id" |
|
||||
> |
|
||||
<img class="icon" :src="item.pic" /> |
|
||||
<p class="title">{{ item.title }}</p> |
|
||||
<div class="btn">点击查看更多</div> |
|
||||
</div> |
|
||||
|
<div class="track_container_case_wrap"> |
||||
|
<CaseCard /> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script setup> |
<script setup> |
||||
import HeadLine from 'cpns/HeadLine' |
import HeadLine from 'cpns/HeadLine' |
||||
import { trackList } from '@/mock' |
|
||||
|
import CaseCard from 'cpns/CaseCard' |
||||
</script> |
</script> |
||||
|
|
||||
<style lang="scss" scoped> |
<style lang="scss" scoped> |
||||
.track_container { |
|
||||
display: grid; |
|
||||
grid-template-columns: repeat(3, 1fr); |
|
||||
grid-template-rows: repeat(3, 1fr); |
|
||||
|
.track_container_case_wrap { |
||||
padding: 0 7px; |
padding: 0 7px; |
||||
padding-top: 7px; |
|
||||
box-sizing: border-box; |
|
||||
.card { |
|
||||
flex: 1; |
|
||||
background: #fff; |
|
||||
padding: 30px 0; |
|
||||
display: flex; |
|
||||
flex-direction: column; |
|
||||
align-items: center; |
|
||||
.icon { |
|
||||
width: auto; |
|
||||
height: 20px; |
|
||||
margin-bottom: 11px; |
|
||||
} |
|
||||
.title { |
|
||||
font-size: 8px; |
|
||||
font-family: Alibaba PuHuiTi; |
|
||||
font-weight: 400; |
|
||||
color: #262626; |
|
||||
margin-bottom: 9px; |
|
||||
} |
|
||||
.btn { |
|
||||
border: 1px solid #262626; |
|
||||
padding: 3px 6px; |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
font-size: 6px; |
|
||||
font-family: Alibaba PuHuiTi; |
|
||||
font-weight: 300; |
|
||||
color: #262626; |
|
||||
white-space: nowrap; |
|
||||
} |
|
||||
} |
|
||||
.bg { |
|
||||
background: #fafafa; |
|
||||
} |
|
||||
} |
} |
||||
</style> |
</style> |
After Width: 24 | Height: 42 | Size: 650 B |
Write
Preview
Loading…
Cancel
Save
Reference in new issue