UI优化:美化顶部按钮为圆形图标,添加交互功能
This commit is contained in:
parent
5b79d2179f
commit
359dc1a7da
2 changed files with 67 additions and 16 deletions
|
|
@ -10,12 +10,23 @@
|
|||
<header class="top-bar">
|
||||
<div class="top-bar__brand">
|
||||
<img src="src/avatar_48.png" alt="Logo" class="top-bar__logo">
|
||||
<span>Coldin04 WorkSpace</span>
|
||||
<span>Coldin04 的工作台</span>
|
||||
</div>
|
||||
|
||||
<div class="top-bar__actions">
|
||||
<button class="top-bar__button">主页</button>
|
||||
<button class="top-bar__button">退出</button>
|
||||
<button class="top-bar__button" onclick="window.location.href='https://cold04.com'">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
|
||||
<polyline points="9 22 9 12 15 12 15 22"></polyline>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="top-bar__button" onclick="alert('你已退出登录(个鬼)')">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
|
||||
<polyline points="16 17 21 12 16 7"></polyline>
|
||||
<line x1="21" y1="12" x2="9" y2="12"></line>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
|
@ -73,7 +84,7 @@
|
|||
</li>
|
||||
<li class="task-item">
|
||||
<input type="checkbox" id="task2">
|
||||
<label for="task2" class="task-content">完善个人主页样式</label>
|
||||
<label for="task2" class="task-content">记得启动原神</label>
|
||||
</li>
|
||||
<li class="task-item">
|
||||
<input type="checkbox" id="task3">
|
||||
|
|
@ -81,7 +92,7 @@
|
|||
</li>
|
||||
<li class="task-item">
|
||||
<input type="checkbox" id="task4">
|
||||
<label for="task4" class="task-content">优化移动端体验</label>
|
||||
<label for="task4" class="task-content">Home可以点</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue