feat: 2.0

This commit is contained in:
mozzie 2023-02-27 00:18:17 +08:00
parent be340499da
commit b1ece07f36
2 changed files with 104 additions and 4 deletions

View File

@ -3,7 +3,23 @@
html, html,
body { body {
position: relative; position: relative;
background: var(--color-neutral-2); // background: var(--color-neutral-2);
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
height: 100vh;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
} }
@font-face { @font-face {
@ -20,3 +36,34 @@ input {
outline: none; outline: none;
border: 0; border: 0;
} }
.g-glossy {
position: relative;
margin: auto;
overflow: hidden;
z-index: 10;
&::before {
content: '';
position: absolute;
top: -100px;
left: -100px;
right: -100px;
bottom: -100px;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
filter: blur(10px);
z-index: -2;
}
&::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.2);
z-index: -1;
}
}

View File

@ -1,5 +1,58 @@
<template> <template>
<div> <div class="course-list">
course <div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
<div class='g-glossy'>
<p>Flutter 2客户端应用开发</p>
<span>开发前端移动端与桌面端应用</span>
</div>
</div> </div>
</template> </template>
<style lang="less" scoped>
.course-list {
.g-glossy {
border-radius: 3px;
margin-bottom: 20px;
padding: 30px 20px;
}
}
</style>