js+css实现电商全套svg图标并下载网页代码
代码语言:html
所属分类:其他
代码描述:生成电商全套svg图标并下载网页代码
代码标签: js css 电商 全套 svg 图标 下载代码
下面为部分代码预览,完整代码请点击下载或在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>电商App SVG图标设计集</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
min-height: 100vh;
padding: 40px 20px;
}
.header { text-align: center; margin-bottom: 50px; }
.header h1 {
color: #fff; font-size: 2.5rem; margin-bottom: 10px;
background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header p { color: rgba(255,255,255,0.6); font-size: 1.1rem; }
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 24px; max-width: 1400px; margin: 0 auto;
}
.icon-card {
background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
padding: 24px 16px 16px; display: flex; flex-direction: column;
align-items: center; transition: all 0.3s ease; cursor: pointer;
position: relative; overflow: hidden;
}
.icon-card::before {
content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
opacity: 0; transition: opacity 0.3s ease;
}
.icon-card:hover {
transform: translateY(-4px); border-color: rgba(102,126,234,0.5);
box-shadow: 0 8px 32px rgba(102,126,234,0.2);
}
.icon-card:hover::before { opacity: 1; }
.icon-card svg { width: 48px; height: 48px; margin-bottom: 12px; position: relative; z-index: 1; }
.icon-card .icon-name { color: rgba(255,255,255,0.9); font-size: 0.85rem; text-align: center; position: relative; z-index: 1; margin-bottom: 4px; }
.icon-card .icon-en { color: rgba(255,255,255,0.4); font-size: 0.7rem; text-align: center; position: relative; z-index: 1; margin-bottom: 12px; }
.download-btn {
background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none;
padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; cursor: pointer;
transition: all 0.3s ease; position: relative; z-index: 1; opacity: 0.7;
}
.icon-card:hover .download-btn { opacity: 1; }
.download-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.category-title {
color: #fff; font-size: 1.3rem; margin: 40px auto 20px; max-width: 1400px;
padding-left: 10px; border-left: 4px solid #667eea; padding: 4px 0 4px 12px;
}
.toast {
position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px);
background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 12px 24px;
border-radius: 30px; font-size: 0.9rem; .........完整代码请登录后点击上方下载按钮下载查看















网友评论0