svg实现Unicode图标代码
代码语言:html
所属分类:其他
代码描述:svg实现Unicode图标代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unicode SVG 图标集</title>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0a0f;
--bg2: #111118;
--card: #16161f;
--card-hover: #1e1e2a;
--border: #2a2a3a;
--fg: #e8e8f0;
--muted: #6a6a80;
--accent: #00e5a0;
--accent2: #00c8ff;
--glow: rgba(0, 229, 160, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg);
color: var(--fg);
font-family: 'Noto Sans SC', 'Space Grotesk', sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
/* 背景动态网格 */
.bg-grid {
position: fixed;
inset: 0;
z-index: 0;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 60px 60px;
animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
0% { transform: translate(0, 0); }
100% { transform: translate(60px, 60px); }
}
/* 背景光晕 */
.bg-glow {
position: fixed;
z-index: 0;
border-radius: 50%;
filter: blur(120px);
pointer-events: none;
opacity: 0.4;
}
.bg-glow-1 {
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(0,229,160,0.2), transparent 70%);
top: -100px; left: -100px;
animation: floatGlow1 15s ease-in-out infinite;
}
.bg-glow-2 {
width: 400px; height: 400px;
background: radial-gradient(circle, rgba(0,200,255,0.15), transparent 70%);
bottom: -50px; right: -50px;
animation: floatGlow2 18s ease-in-out infinite;
}
.bg-glow-3 {
width: 300px; height: 300px;
background: radial-gradient(circle, rgba(255,100,200,0.1), transparent 70%);
top: 50%; left: 50%;
transform: translate(-50%, -50%);
animation: floatGlow3 12s ease-in-out infinite;
}
@keyframes floatGlow1 {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(80px, 60px) scale(1.2); }
}
@keyframes floatGlow2 {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-60px, -40px) scale(1.1); }
}
@keyframes floatGlow3 {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
50% { transform: translate(-40%, -60%) scale(1.3); opacity: 0.5; }
}
/* 主容器 */
.container {
position: relative;
z-index: 1;
max-width: 1400px;
margin: 0 auto;
padding: 40px 24px 80px;
}
/* 头部 */
header {
text-align: center;
padding: 60px 0 40px;
}
header h1 {
font-family: 'Space Grotesk', sans-serif;
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 700;
letter-spacing: -0.03em;
background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--accent2) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.1;
margin-bottom: 16px;
}
header p {
color: var(--muted);
font-size: 1.1rem;
font-weight: 300;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
/* 统计条 */
.stats-bar {
display: flex;
justify-content: center;
gap: 40px;
margin: 36px 0 20px;
flex-wrap: wrap;
}
.stat-item {
text-align: center;
}
.stat-item .num {
font-family: 'Space Grotesk', sans-serif;
font-size: 2rem;
font-weight: 700;
color: var(--accent);
}
.stat-item .label {
font-size: 0.8rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-top: 2px;
}
/* 工具栏 */
.toolbar {
display: flex;
align-items: center;
gap: 12px;
margin: 30px 0 24px;
flex-wrap: wrap;
}
.search-box {
flex: 1;
min-width: 240px;
position: relative;
}
.search-box input {
width: 100%;
padding: 12px 16px 12px 44px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
color: var(--fg);
font-size: 0.95rem;
font-family: inherit;
outline: none;
transition: all 0.3s ease;
}
.search-box input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--glow);
}
.search-box input::placeholder { color: var(--muted); }
.search-box .search-icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--muted);
font-size: 1.1rem;
pointer-events: none;
}
/* 分类按钮 */
.category-tabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.cat-btn {
padding: 8px 18px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--muted);
font-size: 0.85rem;
font-family: inherit;
curso.........完整代码请登录后点击上方下载按钮下载查看















网友评论0