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.
 
 
 
 
 

290 lines
6.9 KiB

<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 class="newa-main">
<div class="left"></div>
<div class="right">
<div class="title">新闻标题</div>
<div class="description">
我是新闻描述,我是新闻描述,我是新闻描述
</div>
<div class="newa-main-list">
<ul>
<li v-for="i in 6" :key="i ">
<div class="time">2024-09-12</div>
<div class="info">我是一段新闻描述,我是一段新闻描述,我是一段新闻描述</div>
</li>
</ul>
</div>
</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;
padding-top: 46px;
display: flex;
flex-direction: column;
align-items: center;
.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;
margin-right: 48px;
}
.item:hover {
transform: scale(1.1);
}
.item:last-child {
margin: 0;
}
.active {
color: #fff;
}
}
.newa-main {
width: 1200px;
height: 465px;
padding: 58px 54px 19px 25px;
display: flex;
align-items: center;
justify-content: space-between;
.left {
width: 546px;
height: 388px;
background-color: #d9d9d9;
border-radius: 15px;
}
.right {
flex: 1;
height: 388px;
margin-left: 89px;
padding: 15px 0;
.title {
font-size: 24px;
font-weight: 600;
color: #1e2033;
}
.description {
font-size: 14px;
margin-top: 10px;
color: #1e2033;
}
.newa-main-list{
width: 100%;
height: 270px;
// background-color: pink;
margin-top: 38px;
ul{
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
li{
width: 227px;
height: 65px;
.time{
position: relative;
font-size: 14px;
color: #1e2033;
padding-left: 13px;
}
.time::before{
content: ' ';
display: block;
position: absolute;
top: 0;
left: 0;
width: 6px;
height: 13px;
background-color: #319245;
}
.info{
margin-top: 12px;
font-size: 12px;
color: #1e2033;
line-height: 18px;
}
}
}
}
}
}
}
}
</style>