Markdown<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>delog | 我的主页</title>
<!-- 引入Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- 引入Font Awesome -->
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!-- 自定义Tailwind配置 -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#4F46E5',
secondary: '#64748B',
accent: '#0EA5E9',
dark: '#1E293B',
light: '#F8FAFC'
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
},
},
}
}
</script>
<!-- 自定义工具类 -->
<style type="text/tailwindcss">
@layer utilities {
.content-auto {
content-visibility: auto;
}
.text-gradient {
background-clip: text;
-webkit-background-clip: text;
color: transparent;
background-image: linear-gradient(to right, #4F46E5, #0EA5E9);
}
}
</style>
<style>
html {
scroll-behavior: smooth;
}
/* 基础动画 */
.fade-in {
animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(15px); }
to { opacity: 1; transform: translateY(0); }
}
/* 悬停效果 */
.card-hover {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-light text-dark font-sans">
<!-- 导航栏 -->
<header class="fixed top-0 left-0 right-0 bg-white/95 backdrop-blur-sm shadow-sm z-50">
<nav class="container mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
<a href="#" class="text-xl font-bold text-primary flex items-center">
<span class="fa fa-user-circle mr-2"></span>
<span>delog</span>
</a>
<!-- 桌面导航 -->
<div class="hidden md:flex space-x-8">
<a href="#about" class="text-secondary hover:text-primary transition-colors">关于</a>
<a href="#philosophy" class="text-secondary hover:text-primary transition-colors">理念</a>
<a href="#contact" class="text-secondary hover:text-primary transition-colors">联系</a>
</div>
<!-- 移动端菜单按钮 -->
<button id="menuBtn" class="md:hidden text-dark hover:text-primary transition-colors">
<span class="fa fa-bars text-xl"></span>
</button>
</nav>
<!-- 移动端菜单 -->
<div id="mobileMenu" class="hidden md:hidden bg-white shadow-md absolute w-full">
<div class="container mx-auto px-4 py-3 flex flex-col space-y-4">
<a href="#about" class="text-secondary hover:text-primary transition-colors py-2">关于</a>
<a href="#philosophy" class="text-secondary hover:text-primary transition-colors py-2">理念</a>
<a href="#contact" class="text-secondary hover:text-primary transition-colors py-2">联系</a>
</div>
</div>
</header>
<!-- 英雄区域 -->
<section class="pt-32 pb-20 bg-gradient-to-br from-primary/5 to-accent/5">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 fade-in">
<h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold leading-tight mb-4">
你好,我是<span style="margin-bottom: 0" class="text-gradient"><a style="color: #5eb95e; text-underline-offset: !important" href="https://www.luogu.com.cn/user/1979336" target="_blank">delog</a> <a class="sb_amazeui" target="_blank" href="#"></a></span>
</h1>
<p class="text-xl text-secondary mb-8 max-w-lg">
这只是一个平平无奇的网站。。
</p>
<div class="flex flex-wrap gap-4">
<a href="#about" class="px-6 py-3 bg-primary text-white rounded-lg shadow-md hover:shadow-lg transition-all hover:-translate-y-1">
了解更多
</a>
<a href="#contact" class="px-6 py-3 bg-white text-primary border border-primary rounded-lg hover:bg-primary/5 transition-all hover:-translate-y-1">
联系我
</a>
</div>
</div>
<div class="md:w-1/2 mt-12 md:mt-0 flex justify-center fade-in" style="animation-delay: 0.2s">
<div class="relative">
<div class="w-64 h-64 md:w-80 md:h-80 rounded-full overflow-hidden border-4 border-white shadow-xl">
<img src="https://cdn.luogu.com.cn/upload/usericon/1979336.png" alt="个人头像" class="w-full h-full object-cover">
</div>
<div class="absolute -bottom-4 -right-4 bg-accent text-white w-16 h-16 rounded-full flex items-center justify-center shadow-lg">
<span class="fa fa-code text-2xl"></span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- 关于区域 -->
<section id="about" class="py-20">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold mb-4">关于我</h2>
<div class="w-20 h-1 bg-primary mx-auto"></div>
</div>
<div class="max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="bg-white rounded-xl shadow-sm p-8 card-hover fade-in">
<div class="text-primary text-3xl mb-6">
<span class="fa fa-info-circle"></span>
</div>
<h3 class="text-xl font-bold mb-4">个人简介</h3>
<p class="text-secondary leading-relaxed">
暂未完善
</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-8 card-hover fade-in" style="animation-delay: 0.1s">
<div class="text-primary text-3xl mb-6">
<span class="fa fa-graduation-cap"></span>
</div>
<h3 class="text-xl font-bold mb-4">获奖记录</h3>
<ul class="text-secondary space-y-3">
<li class="flex items-start">
<span class="fa fa-check-circle text-accent mt-1 mr-2"></span>
<span>暂未完善</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- 人生理念区域 -->
<section id="philosophy" class="py-20 bg-gray-50">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold mb-4">名言警句</h2>
<div class="w-20 h-1 bg-primary mx-auto"></div>
</div>
<div class="max-w-4xl mx-auto">
<div class="bg-white rounded-xl shadow-sm p-10 mb-12 fade-in">
<div class="text-center mb-8">
<span class="fa fa-quote-left text-4xl text-primary/30"></span>
</div>
<p class="text-xl text-center text-dark mb-8 italic">
"十年OI一场空,不开longlong见祖宗。"
</p>
<p class="text-center text-secondary">— 佚名</p>
</div>
</div>
</div>
</div>
</section>
<!-- 联系区域 -->
<section id="contact" class="py-20 bg-gray-50">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold mb-4">联系我</h2>
<div class="w-20 h-1 bg-primary mx-auto"></div>
</div>
<div class="max-w-3xl mx-auto bg-white rounded-xl shadow-sm p-8 md:p-12 fade-in">
<div class="grid grid-cols-1 md:grid-cols-2 gap-12">
<div>
<h3 class="text-xl font-bold mb-6">联系方式</h3>
<ul class="space-y-4">
<li class="flex items-start">
<span class="fa fa-envelope text-primary text-xl mt-1 mr-4"></span>
<div>
<p class="font-medium">邮箱1456696@qq.com</p>
</div>
</li>
<li class="flex items-start">
<span class="fa fa-phone text-primary text-xl mt-1 mr-4"></span>
<div>
<p class="font-medium">电话</p>
<p class="text-secondary">+86 189 3782 5636</p>
</div>
</li>
<li class="flex items-start">
<span class="fa fa-map-marker text-primary text-xl mt-1 mr-4"></span>
<div>
<p class="font-medium">城市</p>
<p class="text-secondary">HA-KF</p>
</div>
</li>
</ul>
<div class="mt-8">
<h3 class="text-xl font-bold mb-4">社交媒体</h3>
<div class="flex space-x-4">
<a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
<span class="fa fa-weibo"></span>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
<span class="fa fa-wechat"></span>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
<span class="fa fa-instagram"></span>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
<span class="fa fa-linkedin"></span>
</a>
</div>
</div>
</div>
<div>
<h3 class="text-xl font-bold mb-6">发送消息(待完善)</h3>
<form class="space-y-4">
<div>
<label for="name" class="block text-sm font-medium mb-1">姓名</label>
<input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors">
</div>
<div>
<label for="email" class="block text-sm font-medium mb-1">邮箱</label>
<input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors">
</div>
<div>
<label for="message" class="block text-sm font-medium mb-1">消息</label>
<textarea id="message" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors"></textarea>
</div>
<button type="submit" class="w-full px-6 py-3 bg-primary text-white rounded-lg shadow-sm hover:shadow-md transition-all hover:-translate-y-1">
发送消息
</button>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- 页脚 -->
<footer class="bg-dark text-white py-12">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<a href="#" class="text-xl font-bold flex items-center">
<span class="fa fa-user-circle mr-2"></span>
<span>delog</span>
</a>
<p class="text-gray-400 mt-2">© 2025 delog. 九万里风鹏正举.</p>
</div>
<div class="flex space-x-6">
<a href="#about" class="text-gray-400 hover:text-white transition-colors">关于</a>
<a href="#philosophy" class="text-gray-400 hover:text-white transition-colors">理念</a>
<a href="#contact" class="text-gray-400 hover:text-white transition-colors">联系</a>
</div>
</div>
</div>
</footer>
<!-- JavaScript -->
<script>
// 移动端菜单切换
const menuBtn = document.getElementById('menuBtn');
const mobileMenu = document.getElementById('mobileMenu');
menuBtn.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
// 导航栏滚动效果
window.addEventListener('scroll', () => {
const header = document.querySelector('header');
if (window.scrollY > 50) {
header.classList.add('shadow-md');
} else {
header.classList.remove('shadow-md');
}
});
// 平滑滚动和菜单关闭
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
if (targetId === '#') return;
const targetElement = document.querySelector(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 80,
behavior: 'smooth'
});
// 关闭移动端菜单
mobileMenu.classList.add('hidden');
}
});
});
// 滚动动画
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('fade-in');
observer.unobserve(entry.target);
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.card-hover, section > div > div > div').forEach(el => {
observer.observe(el);
});
</script>
</body>
</html>