div+css实现程序员必须掌握的63个技能卡片列表效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现程序员必须掌握的63个技能卡片列表效果代码
代码标签: div css 程序员 必须 掌握 63个 技能 卡片 列表
下面为部分代码预览,完整代码请点击下载或在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>程序员终极技能图谱 - Build Your Own X</title>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-card: #1a1a2e;
--text-primary: #ffffff;
--text-secondary: #a0a0b0;
--accent-1: #00d4ff;
--accent-2: #7b2cbf;
--accent-3: #ff6b6b;
--accent-4: #4ecdc4;
--accent-5: #ffe66d;
--accent-6: #95e1d3;
--accent-7: #f38181;
--accent-8: #aa96da;
--accent-9: #fcbad3;
--accent-10: #a8d8ea;
--accent-11: #ff9a3c;
--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
--gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
--gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans SC', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
}
/* 动态背景 */
.bg-animation {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.bg-animation::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background:
radial-gradient(circle at 20% 80%, rgba(120, 0, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 40%);
animation: bgMove 20s ease-in-out infinite;
}
@keyframes bgMove {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
33% { transform: translate(30px, -30px) rotate(1deg); }
66% { transform: translate(-20px, 20px) rotate(-1deg); }
}
/* 网格背景 */
.grid-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
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: 50px 50px;
}
/* 头部区域 */
.header {
text-align: center;
padding: 60px 20px;
position: relative;
}
.header::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80%;
height: 1px;
background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
}
.main-title {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 900;
background: linear-gradient(135deg, #00d4ff, #7b2cbf, #ff6b6b, #4ecdc4);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientShift 5s ease infinite;
margin-bottom: 15px;
letter-spacing: 2px;
}
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.subtitle {
font-size: 1.3rem;
color: var(--text-secondary);
margin-bottom: 30px;
font-weight: 300;
}
.subtitle span {
color: var(--accent-1);
font-weight: 500;
}
/* 统计区域 */
.stats-container {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
margin: 30px 0;
}
.stat-item {
text-align: center;
padding: 20px 30px;
background: rgba(255,255,255,0.03);
border-radius: 15px;
border: 1px solid rgba(255,255,255,0.05);
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.stat-item:hover {
transform: translateY(-5px);
border-color: var(--accent-1);
box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}
.stat-number {
font-size: 3rem;
font-weight: 900;
background: var(--gradient-3);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-label {
color: var(--text-secondary);
font-size: 0.9rem;
margin-top: 5px;
}
/* 难度图例 */
.legend {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
margin: 40px 0;
padding: 20px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: rgba(255,255,255,0.03);
border-radius: 20px;
font-size: 0.85rem;
}
.legend-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.legend-dot.beginner { background: #4ecdc4; }
.legend-dot.intermediate { background: #ffe66d; }
.legend-dot.advanced { background: #ff6b6b; }
.legend-dot.expert { background: #7b2cbf; }
.legend-dot.legendary {
background: linear-gradient(135deg, #ff6b6b, #7b2cbf, #00d4ff);
animation: legendGlow 2s ease infinite;
}
@keyframes legendGlow {
0%, 100% { box-shadow: 0 0 10px rgba(123, 44, 191, 0.5); }
50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}
/* 主内容区 */
.main-content {
max-width: 1600px;
margin: 0 auto;
padding: 40px 20px;
}
/* 分类卡片 */
.category {
margin-bottom: 50px;
background: var(--bg-card);
border-radius: 24px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.05);
transition: all 0.3s ease;
}
.category:hover {
border-color: rgba(255,255,255,0.1);
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.category-header {
padding: 30px 40px;
display: flex;
align-items: center;
gap: 20px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.category-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.1;
transition: opacity 0.3s ease;
}
.category:nth-child(1) .category-header::before { background: var(--gradient-1); }
.category:nth-child(2) .category-header::before { background: var(--gradient-2); }
.category:nth-child(3) .category-header::before { background: var(--gradient-3); }
.category:nth-child(4) .category-header::before { background: var(--gradient-4); }
.category:nth-child(5) .category-header::before { background: var(--gradient-5); }
.category:nth-child(6) .category-header::before { background: var(--gradient-1); }
.category:nth-child(7) .category-header::before { background: var(--gradient-2); }
.category:nth-child(8) .category-header::before { background: var(--gradient-3); }
.category:nth-child(9) .category-header::before { background: var(--gradient-4); }
.category:nth-child(10) .category-header::before { background: var(--gradient-5); }
.category:nth-child(11) .category-header::before { background: var(--gradient-1); }
.category-header:hover::before {
opacity: 0.2;
}
.category-icon {
width: 60px;
height: 60px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
position: relative;
z-index: 1;
}
.category:nth-child(1) .category-icon { background: var(--gradient-1); }
.category:nth-child(2) .category-icon { background: var(--gradient-2); }
.category:nth-child(3) .category-icon { background: var(--gradient-3); }
.category:nth-child(4) .category-icon { background: var(--gradient-4); }
.category:nth-child(5) .category-icon { background: var(--gradient-5); }
.category:nth-child(6) .category-icon { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.category:nth-child(7) .category-icon { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.category:nth-child(8) .category-icon { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.category:nth-child(9) .category-icon { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.category:nth-child(10) .category-icon { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.category:nth-child(11) .category-icon {.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0