Initial commit: AIGC项目完整代码
This commit is contained in:
223
demo/frontend/src/views/Welcome.vue
Normal file
223
demo/frontend/src/views/Welcome.vue
Normal file
@@ -0,0 +1,223 @@
|
||||
<template>
|
||||
<div class="welcome-page">
|
||||
<!-- 导航栏 -->
|
||||
<header class="navbar">
|
||||
<div class="navbar-content">
|
||||
<div class="logo">Logo</div>
|
||||
<nav class="nav-links">
|
||||
<a href="#" class="nav-link">文生视频</a>
|
||||
<a href="#" class="nav-link">图生视频</a>
|
||||
<a href="#" class="nav-link">分镜视频</a>
|
||||
<a href="#" class="nav-link">订阅套餐</a>
|
||||
</nav>
|
||||
<button class="nav-button">开始体验</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 主要内容 -->
|
||||
<main class="content">
|
||||
<h1 class="title">
|
||||
<span class="title-line">
|
||||
<span class="bright-text">智创</span><span class="fade-text">无限,</span>
|
||||
</span>
|
||||
<span class="title-line">
|
||||
<span class="bright-text">灵感</span><span class="fade-text">变现。</span>
|
||||
</span>
|
||||
</h1>
|
||||
<button class="main-button">立即体验</button>
|
||||
</main>
|
||||
|
||||
<!-- 背景光影效果已删除 -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.welcome-page {
|
||||
min-height: 100vh;
|
||||
background: url('/images/backgrounds/welcome.jpg') center/cover no-repeat;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 95%;
|
||||
max-width: 1200px;
|
||||
background: rgba(26, 26, 46, 0.8);
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 1000;
|
||||
height: 60px;
|
||||
border-radius: 30px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.navbar-content {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo {
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: 30px;
|
||||
margin-left: auto;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
color: #4a9eff;
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
background: rgba(74, 158, 255, 0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
background: rgba(74, 158, 255, 1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* 主要内容 */
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
padding-top: 80px;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 6.5rem;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 60px;
|
||||
letter-spacing: -0.03em;
|
||||
text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title-line {
|
||||
display: block;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bright-text {
|
||||
color: white;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-text {
|
||||
color: white;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.main-button {
|
||||
background: linear-gradient(90deg, rgba(74, 158, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 22px 60px;
|
||||
border-radius: 50px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 6px 25px rgba(74, 158, 255, 0.3);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.main-button:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 40px rgba(74, 158, 255, 0.5);
|
||||
}
|
||||
|
||||
.main-button:active {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* 背景光影效果已删除 */
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 1024px) {
|
||||
.title {
|
||||
font-size: 5.5rem;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
.main-button {
|
||||
padding: 20px 50px;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
.title {
|
||||
font-size: 4rem;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.main-button {
|
||||
padding: 18px 40px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.title {
|
||||
font-size: 3rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.main-button {
|
||||
padding: 16px 35px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user