You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
189 lines
4.3 KiB
189 lines
4.3 KiB
9 months ago
|
<template>
|
||
|
<div class="container-1420">
|
||
|
<div class="banner">
|
||
|
<div class="title">2024年度全国电子科技大赛火热报名中</div>
|
||
|
<div class="description">
|
||
|
我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介我是一段比赛简介
|
||
|
</div>
|
||
|
<div class="application gradient">立即报名</div>
|
||
|
<div class="nav-title">
|
||
|
<div class="top">竞赛导航</div>
|
||
|
<div class="bottom">30+项目登陆后报名</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 比赛列表 -->
|
||
|
<div class="race-list">
|
||
|
<div class="item" v-for="i in 8" :key="i">
|
||
|
<div class="image">
|
||
|
<img src="../../assets/images/item.png" alt="" />
|
||
|
</div>
|
||
|
<div class="reac-info">
|
||
|
<div class="reac-title">全国计算机等级大赛</div>
|
||
|
<div class="reac-project">全国计算机等级大赛项目</div>
|
||
|
<div class="time">报名时间:2022-01-01 18:00-2022-01-01:18:00</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 新闻列表 -->
|
||
|
<div class="news-list">
|
||
|
<div class="news-title">
|
||
|
<div class="top">竞赛导航</div>
|
||
|
<div class="bottom">30+项目登陆后报名</div>
|
||
|
</div>
|
||
|
<div class="newa-panel">
|
||
|
<div class="tab">
|
||
|
<div :class="active === i ? 'item active gradient' : 'item'" v-for="i in 5" :key="i" @click="active = i">全部</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
import { ref } from 'vue'
|
||
|
const active = ref(1)
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.banner {
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
height: 692px;
|
||
|
background: radial-gradient(
|
||
|
circle,
|
||
|
rgba(131, 255, 197, 1) 0%,
|
||
|
rgba(255, 255, 255, 1) 50%
|
||
|
);
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
.title {
|
||
|
font-size: 50px;
|
||
|
font-weight: 600;
|
||
|
color: #333333;
|
||
|
}
|
||
|
.description {
|
||
|
width: 1074px;
|
||
|
text-align: center;
|
||
|
font-size: 20px;
|
||
|
color: #666;
|
||
|
margin-top: 37px;
|
||
|
}
|
||
|
.application {
|
||
|
width: 272px;
|
||
|
height: 64px;
|
||
|
text-align: center;
|
||
|
line-height: 64px;
|
||
|
border-radius: 10px;
|
||
|
font-size: 24px;
|
||
|
color: #fff;
|
||
|
cursor: pointer;
|
||
|
margin-top: 50px;
|
||
|
}
|
||
|
.nav-title {
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
color: #1e2033;
|
||
|
.top {
|
||
|
font-size: 40px;
|
||
|
font-weight: 600;
|
||
|
text-align: center;
|
||
|
}
|
||
|
.bottom {
|
||
|
font-size: 16px;
|
||
|
text-align: center;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.race-list {
|
||
|
width: 100%;
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
justify-content: space-between;
|
||
|
margin-top: 40px;
|
||
|
.item {
|
||
|
width: 340px;
|
||
|
height: 360px;
|
||
|
// background-color: pink;
|
||
|
.image {
|
||
|
width: 100%;
|
||
|
height: 194px;
|
||
|
img {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
}
|
||
|
}
|
||
|
.reac-info {
|
||
|
.reac-title {
|
||
|
margin-top: 19px;
|
||
|
color: #c9c9c9;
|
||
|
font-size: 12px;
|
||
|
}
|
||
|
.reac-project {
|
||
|
font-size: 16px;
|
||
|
font-weight: 600;
|
||
|
color: #333333;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
.time {
|
||
|
font-size: 14px;
|
||
|
color: #8c8b8b;
|
||
|
margin-top: 40px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.item:nth-child(n) {
|
||
|
margin-top: 20px;
|
||
|
}
|
||
|
}
|
||
|
.news-list {
|
||
|
margin-top: 170px;
|
||
|
.news-title {
|
||
|
.top {
|
||
|
font-size: 40px;
|
||
|
font-weight: 600;
|
||
|
text-align: center;
|
||
|
}
|
||
|
.bottom {
|
||
|
font-size: 16px;
|
||
|
text-align: center;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
}
|
||
|
.newa-panel {
|
||
|
width: 100%;
|
||
|
height: 630px;
|
||
|
background: rgba(255, 255, 255, 0.1);
|
||
|
backdrop-filter: blur(10px);
|
||
|
box-shadow: 2px 6px 14px rgba(0, 0, 0, 0.25);
|
||
|
margin-top: 25px;
|
||
|
padding: 46px 180px 70px 180px;
|
||
|
.tab {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
.item {
|
||
|
width: 152px;
|
||
|
height: 70px;
|
||
|
border-radius: 10px;
|
||
|
text-align: center;
|
||
|
line-height: 70px;
|
||
|
color: #1e2033;
|
||
|
font-size: 18px;
|
||
|
box-shadow: 7px 7px 22px -10px rgba(0, 0, 0, 0.22);
|
||
|
cursor: pointer;
|
||
|
transition: all 0.2s;
|
||
|
}
|
||
|
.item:hover{
|
||
|
transform: scale(1.1);
|
||
|
}
|
||
|
.active {
|
||
|
color: #fff;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|