File size: 10,929 Bytes
5fc700d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - ToolHub</title>
<meta name="description" content="ToolHub - 一站式在线工具平台,集成图片处理、文档转换、数据计算等多种实用工具" />
<meta name="keywords" content="在线工具,PDF转换,图片处理,文档转换,数据计算" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="~/favicon.ico" />
<!-- 外部字体和图标 -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet" />
<!-- 样式文件 -->
<link rel="stylesheet" href="~/css/toolhub.css" asp-append-version="true" />
@await RenderSectionAsync("Styles", required: false)
</head>
<body>
<!-- 导航栏 -->
<header class="navbar">
<div class="container">
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
<!-- Logo -->
<a href="@Url.Action("Index", "Home")" class="navbar-brand">
<div class="brand-icon">
<i class="fas fa-wrench"></i>
</div>
<span class="text-gradient">ToolHub</span>
</a>
<!-- 搜索框 - 桌面端 -->
<div class="search-container" style="display: none;">
<form class="search-form" action="@Url.Action("Tools", "Home")" method="get">
<input type="text" name="search" class="search-input" placeholder="搜索工具、文档或教程..." value="@ViewBag.Search" />
<i class="fas fa-search search-icon"></i>
</form>
</div>
<!-- 导航链接和按钮 -->
<div style="display: flex; align-items: center; gap: 1rem;">
<!-- 桌面端链接 -->
<nav style="display: none;">
<a href="@Url.Action("Tools", "Home")" class="btn btn-outline btn-sm">
<i class="fas fa-th-large"></i>
<span>所有工具</span>
</a>
<a href="@Url.Action("Privacy", "Home")" class="btn btn-outline btn-sm">
<i class="fas fa-shield-alt"></i>
<span>隐私政策</span>
</a>
</nav>
<!-- 移动端菜单按钮 -->
<button class="mobile-menu-toggle btn btn-outline btn-sm">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
<!-- 移动端搜索容器 -->
<div class="mobile-search-container" style="margin-top: 1rem; display: none;">
<form class="search-form" action="@Url.Action("Tools", "Home")" method="get">
<input type="text" name="search" class="search-input" placeholder="搜索工具..." value="@ViewBag.Search" />
<i class="fas fa-search search-icon"></i>
</form>
</div>
</div>
<!-- 移动端菜单 -->
<div class="mobile-menu" style="display: none;">
<div class="container">
<div style="padding: 1rem 0; border-top: 1px solid var(--light-2);">
<a href="@Url.Action("Tools", "Home")" style="display: flex; align-items: center; padding: 0.75rem; text-decoration: none; color: var(--dark);">
<i class="fas fa-th-large" style="width: 1.5rem; margin-right: 0.75rem;"></i>
<span>所有工具</span>
</a>
<a href="@Url.Action("Privacy", "Home")" style="display: flex; align-items: center; padding: 0.75rem; text-decoration: none; color: var(--dark);">
<i class="fas fa-shield-alt" style="width: 1.5rem; margin-right: 0.75rem;"></i>
<span>隐私政策</span>
</a>
</div>
</div>
</div>
</header>
<!-- 主内容区 -->
<main style="min-height: calc(100vh - 200px); padding-top: 5rem;">
@RenderBody()
</main>
<!-- 页脚 -->
<footer class="footer">
<div class="container">
<div class="footer-grid">
<!-- 品牌信息 -->
<div class="footer-section">
<div style="display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;">
<div class="brand-icon">
<i class="fas fa-wrench"></i>
</div>
<span style="font-size: 1.25rem; font-weight: 700; color: white;">ToolHub</span>
</div>
<p style="margin-bottom: 1.5rem; max-width: 300px;">
一站式在线工具平台,集成图片处理、文档转换、数据计算等多种实用工具,满足您的日常工作和学习需求。
</p>
<div class="social-links">
<a href="#" class="social-link">
<i class="fab fa-weixin"></i>
</a>
<a href="#" class="social-link">
<i class="fab fa-weibo"></i>
</a>
<a href="#" class="social-link">
<i class="fab fa-qq"></i>
</a>
<a href="#" class="social-link">
<i class="fab fa-github"></i>
</a>
</div>
</div>
<!-- 快速链接 -->
<div class="footer-section">
<h4>快速链接</h4>
<ul>
<li><a href="@Url.Action("Index", "Home")">首页</a></li>
<li><a href="@Url.Action("Tools", "Home")">全部工具</a></li>
<li><a href="#">关于我们</a></li>
<li><a href="#">联系我们</a></li>
</ul>
</div>
<!-- 支持 -->
<div class="footer-section">
<h4>支持</h4>
<ul>
<li><a href="#">帮助中心</a></li>
<li><a href="#">使用教程</a></li>
<li><a href="#">常见问题</a></li>
<li><a href="#">反馈建议</a></li>
</ul>
</div>
<!-- 法律 -->
<div class="footer-section">
<h4>法律</h4>
<ul>
<li><a href="@Url.Action("Privacy", "Home")">隐私政策</a></li>
<li><a href="#">服务条款</a></li>
<li><a href="#">版权声明</a></li>
<li><a href="#">免责声明</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p style="color: var(--light-3); font-size: 0.875rem;">
© 2025 ToolHub. 保留所有权利。
</p>
<div style="display: flex; gap: 1.5rem;">
<a href="@Url.Action("Privacy", "Home")" style="color: var(--light-3); font-size: 0.875rem; text-decoration: none;">隐私政策</a>
<a href="#" style="color: var(--light-3); font-size: 0.875rem; text-decoration: none;">服务条款</a>
<a href="#" style="color: var(--light-3); font-size: 0.875rem; text-decoration: none;">Cookies</a>
</div>
</div>
</div>
</footer>
<!-- 返回顶部按钮 -->
<button class="back-to-top">
<i class="fas fa-chevron-up"></i>
</button>
<!-- 提示消息容器 -->
<div id="toast-container" style="position: fixed; top: 2rem; right: 2rem; z-index: 10000;"></div>
<!-- JavaScript -->
<script src="~/js/toolhub.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
<style>
/* 移动端响应式 */
@@media (min-width: 768px) {
.search-container {
display: block !important;
}
nav {
display: flex !important;
gap: 0.5rem;
}
.mobile-menu-toggle {
display: none !important;
}
}
/* 提示消息样式 */
.toast {
position: relative;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
padding: 1rem;
margin-bottom: 0.5rem;
transform: translateX(100%);
transition: transform 0.3s ease;
border-left: 4px solid var(--primary);
}
.toast.show {
transform: translateX(0);
}
.toast.toast-success {
border-left-color: var(--success);
}
.toast.toast-error {
border-left-color: var(--danger);
}
.toast.toast-warning {
border-left-color: var(--warning);
}
.toast-content {
display: flex;
align-items: center;
gap: 0.75rem;
}
.toast-content i {
font-size: 1.25rem;
}
.toast-success .toast-content i {
color: var(--success);
}
.toast-error .toast-content i {
color: var(--danger);
}
.toast-warning .toast-content i {
color: var(--warning);
}
.toast-info .toast-content i {
color: var(--primary);
}
/* 移动端菜单动画 */
.mobile-menu {
background: white;
border-top: 1px solid var(--light-2);
box-shadow: var(--shadow);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.mobile-menu.show {
max-height: 300px;
}
.mobile-search-container {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.mobile-search-container.show {
max-height: 100px;
}
</style>
</body>
</html>
|