feat(event): add mobile sponsor list and refactor landing pages
This commit introduces a new mobile-first sponsor list and restructures the event landing pages. Key changes include: - A new responsive sponsor list page built with Vue.js and Tailwind CSS, optimized for SEO and on-site viewing. - The main event index page is now a QR code display for easy access to the mobile list. - The original landing page is refactored with Tailwind CSS and moved to a new `/landing` directory. - Umami analytics script is integrated across all pages for usage tracking.
This commit is contained in:
@@ -1,491 +1,109 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>永平捷兔会30周年庆大跑晚宴</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
|
||||
}
|
||||
<title>QR Code Modal</title>
|
||||
|
||||
body {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
#0c0c0c 0%,
|
||||
#1a1a2e 50%,
|
||||
#1e0b0b 100%
|
||||
);
|
||||
color: #e0e0e0;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 装饰性背景元素 */
|
||||
.bg-pattern {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.03;
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4af37' fill-rule='evenodd'/%3E%3C/svg%3E");
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 头部样式 */
|
||||
header {
|
||||
text-align: center;
|
||||
padding: 2rem 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 4.5rem;
|
||||
font-weight: bold;
|
||||
margin-bottom: 1rem;
|
||||
color: #d4af37;
|
||||
text-transform: uppercase;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
|
||||
letter-spacing: 4px;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
font-size: 1.8rem;
|
||||
font-weight: 300;
|
||||
letter-spacing: 3px;
|
||||
color: #e8e8e8;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.anniversary {
|
||||
font-size: 8rem;
|
||||
font-weight: bold;
|
||||
color: #d4af37;
|
||||
text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
|
||||
margin: 2rem 0;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.anniversary::before,
|
||||
.anniversary::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 200px;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, transparent, #d4af37, transparent);
|
||||
}
|
||||
|
||||
.anniversary::before {
|
||||
left: -220px;
|
||||
}
|
||||
|
||||
.anniversary::after {
|
||||
right: -220px;
|
||||
}
|
||||
|
||||
.event-title {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 500;
|
||||
color: #e8e8e8;
|
||||
margin-bottom: 2rem;
|
||||
text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* 主要内容区域 */
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
text-align: center;
|
||||
max-width: 900px;
|
||||
margin-bottom: 4rem;
|
||||
background: rgba(30, 30, 46, 0.6);
|
||||
padding: 2.5rem;
|
||||
border-radius: 15px;
|
||||
border: 1px solid rgba(212, 175, 55, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.welcome-text h2 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 400;
|
||||
margin-bottom: 1.5rem;
|
||||
color: #e8e8e8;
|
||||
}
|
||||
|
||||
.welcome-text p {
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.8;
|
||||
color: #c0c0c0;
|
||||
}
|
||||
|
||||
/* 导航卡片区域 */
|
||||
.nav-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 2.5rem;
|
||||
width: 100%;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.nav-card {
|
||||
background: rgba(30, 30, 46, 0.7);
|
||||
border: 2px solid rgba(212, 175, 55, 0.4);
|
||||
border-radius: 15px;
|
||||
padding: 2.5rem;
|
||||
text-align: center;
|
||||
transition: all 0.4s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.nav-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(212, 175, 55, 0.1) 0%,
|
||||
transparent 50%
|
||||
);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.nav-card:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
|
||||
border-color: rgba(212, 175, 55, 0.7);
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
font-size: 4rem;
|
||||
color: #d4af37;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.nav-card h3 {
|
||||
font-size: 2rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 1.5rem;
|
||||
color: #e8e8e8;
|
||||
}
|
||||
|
||||
.nav-card p {
|
||||
font-size: 1.2rem;
|
||||
color: #b0b0b0;
|
||||
margin-bottom: 2rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: inline-block;
|
||||
padding: 1.2rem 2.5rem;
|
||||
background: transparent;
|
||||
color: #d4af37;
|
||||
border: 2px solid #d4af37;
|
||||
border-radius: 40px;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: 1.3rem;
|
||||
letter-spacing: 1px;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nav-link::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent,
|
||||
rgba(212, 175, 55, 0.2),
|
||||
transparent
|
||||
);
|
||||
transition: all 0.6s;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background: rgba(212, 175, 55, 0.1);
|
||||
box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
|
||||
}
|
||||
|
||||
.nav-link:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
/* 底部样式 */
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 3rem 0 2rem;
|
||||
margin-top: 4rem;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
color: #888;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* 彩带装饰 */
|
||||
.ribbon {
|
||||
position: absolute;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: #d4af37;
|
||||
transform: rotate(45deg);
|
||||
top: -75px;
|
||||
right: -75px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ribbon::before,
|
||||
.ribbon::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #d4af37;
|
||||
}
|
||||
|
||||
.ribbon::before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 1200px) {
|
||||
.logo {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
|
||||
.anniversary {
|
||||
font-size: 6rem;
|
||||
}
|
||||
|
||||
.anniversary::before,
|
||||
.anniversary::after {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.anniversary::before {
|
||||
left: -170px;
|
||||
}
|
||||
|
||||
.anniversary::after {
|
||||
right: -170px;
|
||||
}
|
||||
|
||||
.event-title {
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.logo {
|
||||
font-size: 2.8rem;
|
||||
}
|
||||
|
||||
.anniversary {
|
||||
font-size: 5rem;
|
||||
}
|
||||
|
||||
.anniversary::before,
|
||||
.anniversary::after {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.anniversary::before {
|
||||
left: -120px;
|
||||
}
|
||||
|
||||
.anniversary::after {
|
||||
right: -120px;
|
||||
}
|
||||
|
||||
.event-title {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.welcome-text h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.nav-cards {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.container {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 1.5rem 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.anniversary {
|
||||
font-size: 4rem;
|
||||
}
|
||||
|
||||
.anniversary::before,
|
||||
.anniversary::after {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.anniversary::before {
|
||||
left: -70px;
|
||||
}
|
||||
|
||||
.anniversary::after {
|
||||
right: -70px;
|
||||
}
|
||||
|
||||
.event-title {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* 跑步剪影装饰 */
|
||||
.runner-silhouette {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 5%;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,70 C30,50 40,30 50,20 C60,30 70,50 80,70" stroke="%23d4af37" stroke-width="3" fill="none"/><circle cx="20" cy="70" r="5" fill="%23d4af37"/><circle cx="80" cy="70" r="5" fill="%23d4af37"/></svg>')
|
||||
no-repeat center;
|
||||
opacity: 0.2;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.runner-silhouette.right {
|
||||
left: auto;
|
||||
right: 5%;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
</style>
|
||||
<script src="/analysis.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-pattern"></div>
|
||||
<div class="runner-silhouette"></div>
|
||||
<div class="runner-silhouette right"></div>
|
||||
<body class="bg-gray-100">
|
||||
<div
|
||||
class="relative w-screen h-screen bg-[url('./hash30bg.png')] bg-no-repeat bg-cover bg-center"
|
||||
>
|
||||
<!-- QR Code Container -->
|
||||
<div
|
||||
class="absolute top-16 left-16 flex flex-col items-center justify-center w-fit"
|
||||
>
|
||||
<div
|
||||
onclick="openModal()"
|
||||
class="cursor-pointer transition-transform duration-300 hover:scale-105"
|
||||
>
|
||||
<img
|
||||
class="size-48 ring-8 ring-white shadow-lg"
|
||||
src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://dinner.tootaio.com/20251108/sponsorList/mobile/"
|
||||
alt="Mobile Sponsor List QR"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="text-2xl font-bold mt-4 text-black bg-white/50 px-4 py-2 rounded-full"
|
||||
>
|
||||
Scan for sponsor list!
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1 class="logo">永平捷兔会</h1>
|
||||
<p class="tagline">三十载奔跑,荣耀同行</p>
|
||||
<div class="anniversary">30</div>
|
||||
<h2 class="event-title">周年庆大跑晚宴</h2>
|
||||
</header>
|
||||
<!-- Floating Buttons -->
|
||||
<div class="fixed bottom-5 right-5 flex flex-col gap-2 z-40">
|
||||
<button
|
||||
class="bg-white/70 backdrop-blur-md shadow-md hover:bg-white/90 transition-all duration-300 px-4 py-2 rounded-full text-sm font-medium"
|
||||
onclick="window.location.href='sponsorList/'"
|
||||
>
|
||||
Sponsor List
|
||||
</button>
|
||||
<button
|
||||
class="bg-white/70 backdrop-blur-md shadow-md hover:bg-white/90 transition-all duration-300 px-4 py-2 rounded-full text-sm font-medium"
|
||||
onclick="window.location.href='sponsorList/mobile/'"
|
||||
>
|
||||
Mobile List
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<main class="main-content">
|
||||
<div class="welcome-text">
|
||||
<h2>欢迎莅临30周年庆典</h2>
|
||||
<p>
|
||||
三十载风雨同舟,感恩每一位捷兔会员的陪伴与支持。今晚,让我们共同庆祝这个荣耀时刻,回顾辉煌历程,展望美好未来!
|
||||
<!-- Modal -->
|
||||
<div
|
||||
id="qrModal"
|
||||
class="hidden fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"
|
||||
>
|
||||
<div class="relative max-w-md w-full mx-4 animate-[zoomIn_0.3s_ease-out]">
|
||||
<button
|
||||
onclick="closeModal()"
|
||||
class="absolute -top-10 right-0 text-white text-3xl font-bold hover:scale-110 transition-transform"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
<div
|
||||
class="bg-white p-8 rounded-xl shadow-2xl flex flex-col items-center"
|
||||
>
|
||||
<h2 class="text-2xl font-bold mb-4 text-gray-800">Scan QR Code</h2>
|
||||
<img
|
||||
class="w-64 h-64 mb-4"
|
||||
src="https://api.qrserver.com/v1/create-qr-code/?size=256x256&data=https://dinner.tootaio.com/20251108/sponsorList/mobile/"
|
||||
alt="QR Code"
|
||||
/>
|
||||
<p class="text-gray-600 text-center">
|
||||
Scan this QR code to view the sponsor list on your mobile device
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="nav-cards">
|
||||
<div class="nav-card">
|
||||
<div class="ribbon"></div>
|
||||
<div class="card-icon">🏃♂️</div>
|
||||
<h3>活动流程</h3>
|
||||
<p>查看大跑活动路线、时间安排及晚宴流程,不错过每一个精彩环节。</p>
|
||||
<a href="./eventSchedule" class="nav-link">查看流程</a>
|
||||
</div>
|
||||
|
||||
<div class="nav-card">
|
||||
<div class="card-icon">💎</div>
|
||||
<h3>赞助商列表</h3>
|
||||
<p>
|
||||
感谢所有赞助商对本次活动的大力支持,让我们共同见证他们的品牌魅力。
|
||||
</p>
|
||||
<a href="./sponsorList" class="nav-link">查看赞助商</a>
|
||||
</div>
|
||||
|
||||
<div class="nav-card">
|
||||
<div class="card-icon">🏆</div>
|
||||
<h3>荣誉殿堂</h3>
|
||||
<p>回顾捷兔会30年辉煌历程,见证会员们的荣耀时刻与珍贵回忆。</p>
|
||||
<a href="./hallOfFame" class="nav-link">进入殿堂</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© 2023 永平捷兔会 30周年庆典. 保留所有权利.</p>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 添加页面加载动画效果
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// 延迟显示内容以增强加载体验
|
||||
const container = document.querySelector(".container");
|
||||
container.style.opacity = "0";
|
||||
|
||||
setTimeout(() => {
|
||||
container.style.transition = "opacity 1.5s ease";
|
||||
container.style.opacity = "1";
|
||||
}, 300);
|
||||
|
||||
// 为导航链接添加点击效果
|
||||
const navLinks = document.querySelectorAll(".nav-link");
|
||||
navLinks.forEach((link) => {
|
||||
link.addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
// 添加点击反馈
|
||||
this.style.transform = "scale(0.95)";
|
||||
|
||||
// 模拟页面跳转延迟
|
||||
setTimeout(() => {
|
||||
window.location.href = this.getAttribute("href");
|
||||
}, 300);
|
||||
});
|
||||
});
|
||||
|
||||
// 添加数字30的脉冲动画
|
||||
const anniversary = document.querySelector(".anniversary");
|
||||
setInterval(() => {
|
||||
anniversary.style.transform = "scale(1.05)";
|
||||
setTimeout(() => {
|
||||
anniversary.style.transform = "scale(1)";
|
||||
}, 500);
|
||||
}, 3000);
|
||||
});
|
||||
const modal = document.getElementById("qrModal");
|
||||
function openModal() {
|
||||
modal.classList.remove("hidden");
|
||||
}
|
||||
function closeModal() {
|
||||
modal.classList.add("hidden");
|
||||
}
|
||||
window.onclick = (e) => e.target === modal && closeModal();
|
||||
document.addEventListener(
|
||||
"keydown",
|
||||
(e) => e.key === "Escape" && closeModal()
|
||||
);
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@keyframes zoomIn {
|
||||
from {
|
||||
transform: scale(0.8);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user