|
|
<!doctype html>
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
<meta charset="UTF-8" />
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
<meta name="description" content="vhtml.js Features" details="vhtml 框架特性介绍">
|
|
|
<title>vhtml - 现代前端框架</title>
|
|
|
</head>
|
|
|
<style>
|
|
|
body {
|
|
|
margin: 0;
|
|
|
font-family: var(--font-family);
|
|
|
background-color: var(--bg-color-secondary);
|
|
|
color: var(--text-color);
|
|
|
}
|
|
|
|
|
|
header {
|
|
|
background: linear-gradient(120deg, var(--color-primary), color-mix(in srgb, var(--color-primary), #000 20%));
|
|
|
color: white;
|
|
|
padding: 40px 20px;
|
|
|
text-align: center;
|
|
|
box-shadow: var(--shadow-md);
|
|
|
}
|
|
|
|
|
|
header h1 {
|
|
|
font-size: 3rem;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
header p {
|
|
|
font-size: 1.2rem;
|
|
|
margin-top: 10px;
|
|
|
opacity: 0.9;
|
|
|
}
|
|
|
|
|
|
.container {
|
|
|
max-width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
padding: 20px;
|
|
|
}
|
|
|
|
|
|
.features {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
gap: 20px;
|
|
|
justify-content: center;
|
|
|
margin-top: 40px;
|
|
|
}
|
|
|
|
|
|
.feature-card {
|
|
|
background: var(--bg-color);
|
|
|
border-radius: var(--radius-lg);
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
padding: 20px;
|
|
|
width: 300px;
|
|
|
text-align: center;
|
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
|
border: 1px solid var(--border-color);
|
|
|
}
|
|
|
|
|
|
.feature-card:hover {
|
|
|
transform: translateY(-10px);
|
|
|
box-shadow: var(--shadow-lg);
|
|
|
}
|
|
|
|
|
|
.feature-card h2 {
|
|
|
font-size: 1.5rem;
|
|
|
margin-bottom: 10px;
|
|
|
color: var(--color-primary);
|
|
|
}
|
|
|
|
|
|
.feature-card p {
|
|
|
font-size: 1rem;
|
|
|
color: var(--text-color-secondary);
|
|
|
}
|
|
|
|
|
|
.cta-button {
|
|
|
display: inline-block;
|
|
|
background: var(--color-primary);
|
|
|
color: white;
|
|
|
padding: 10px 20px;
|
|
|
border-radius: var(--radius-md);
|
|
|
text-decoration: none;
|
|
|
font-size: 1rem;
|
|
|
margin-top: 20px;
|
|
|
transition: background 0.3s ease;
|
|
|
border: none;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.cta-button:hover {
|
|
|
background: color-mix(in srgb, var(--color-primary), black 10%);
|
|
|
}
|
|
|
|
|
|
footer {
|
|
|
background: var(--bg-color);
|
|
|
color: var(--text-color);
|
|
|
text-align: center;
|
|
|
padding: 20px;
|
|
|
margin-top: 40px;
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
transform: translateY(20px);
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
transform: translateY(0);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.fade-in {
|
|
|
animation: fadeIn 1s ease-out;
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
<body>
|
|
|
<header>
|
|
|
<h1 class="fade-in">vhtml.js</h1>
|
|
|
<p class="fade-in">现代化、轻量级的前端框架</p>
|
|
|
<a href="#" class="cta-button fade-in">立即开始</a>
|
|
|
</header>
|
|
|
<div class="container">
|
|
|
<div class="features">
|
|
|
<div class="feature-card fade-in" v-for="feature in features">
|
|
|
<h2>{{ feature.title }}</h2>
|
|
|
<p>{{ feature.desc }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<footer>
|
|
|
<p>© 2024 vhtml Team. All rights reserved.</p>
|
|
|
</footer>
|
|
|
</body>
|
|
|
<script setup>
|
|
|
features = [
|
|
|
{title: "轻量级", desc: "核心库仅 10KB,加载速度飞快。"},
|
|
|
{title: "组件化", desc: "基于 Web Components,支持原生组件复用。"},
|
|
|
{title: "响应式", desc: "内置响应式数据绑定,状态管理更简单。"},
|
|
|
{title: "零配置", desc: "无需复杂的构建工具,引入即可使用。"},
|
|
|
{title: "高性能", desc: "虚拟 DOM 优化,渲染性能卓越。"},
|
|
|
{title: "易扩展", desc: "丰富的插件系统,满足各种开发需求。"}
|
|
|
]
|
|
|
</script>
|
|
|
|
|
|
</html>
|