Skip to content

Commit a24bfe0

Browse files
committed
feat(ui): 添加网站图标支持
- 在index.html中引入favicon.ico作为网站图标 - 设置图标类型为image/x-icon - 图标显示在浏览器标签页和书签栏中
1 parent 14af8cd commit a24bfe0

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
3+
<!-- Background -->
4+
<rect width="32" height="32" fill="#17a2b8"/>
5+
6+
<!-- Folder -->
7+
<path d="M3 7 L9 7 L13 11 L27 11 L27 25 L3 25 Z" fill="#FFD93D"/>
8+
<path d="M3 7 L9 7 L13 11 L27 11 L27 13 L3 13 Z" fill="#FFB700"/>
9+
10+
<!-- Tree structure -->
11+
<circle cx="10" cy="18" r="2" fill="#28a745"/>
12+
<circle cx="16" cy="15" r="2" fill="#28a745"/>
13+
<circle cx="16" cy="21" r="2" fill="#28a745"/>
14+
<line x1="11.8" y1="18" x2="14.2" y2="15.8" stroke="#28a745" stroke-width="2"/>
15+
<line x1="11.8" y1="18" x2="14.2" y2="20.2" stroke="#28a745" stroke-width="2"/>
16+
17+
<!-- Tag # as a stamp in the bottom right corner -->
18+
<circle cx="24" cy="24" r="6" fill="#6f42c1"/>
19+
<text x="24" y="28" font-family="Arial, sans-serif" font-weight="bold" font-size="12" fill="#ffffff" text-anchor="middle">#</text>
20+
</svg>

file_classification_webapi/static/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8">
55
<meta content="width=device-width, initial-scale=1.0" name="viewport">
66
<title>文件分类系统</title>
7+
<link href="favicon.ico" rel="icon" type="image/x-icon">
78
<link href="styles.css" rel="stylesheet">
89
</head>
910
<body>

0 commit comments

Comments
 (0)