-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
401 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ links: 友链 | |
link: 友链 | ||
photos: 相册 | ||
photo: 照片 | ||
tool: 工具 | ||
tools: 工具 | ||
search: 搜索... | ||
prev: 上一页 | ||
next: 下一页 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ links: 友鏈 | |
link: 友鏈 | ||
photos: 相簿 | ||
photo: 照片 | ||
tool: 工具 | ||
tools: 工具 | ||
search: 搜尋... | ||
prev: 上一頁 | ||
next: 下一頁 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,50 @@ | ||
<div class="tools-nav-box border-box"> | ||
Tools Nav | ||
<ul class="tools-nav-list"> | ||
<% for (let i = 0; i < theme.source_data.tools.length; i++) { %> | ||
<% const tool = theme.source_data.tools[i] %> | ||
<% const anchor_id = tool.category + i %> | ||
<% if (tool?.category) { %> | ||
<li class="tool-nav-category text-ellipsis border-box <%= i === 0 ? 'active' : '' %>" | ||
data-anchor="<%= anchor_id %>" | ||
> | ||
<%= tool.category %> | ||
</li> | ||
<% } %> | ||
<% } %> | ||
</ul> | ||
<ul class="tool-item-list border-box"> | ||
<% for (let i = 0; i < theme.source_data.tools.length; i++) { %> | ||
<% const tool = theme.source_data.tools[i] %> | ||
<% const anchor_id = tool.category + i %> | ||
<% if (tool?.category) { %> | ||
<li class="tool-category-name text-ellipsis border-box" id="<%= anchor_id %>"> | ||
<span class="category-name text-ellipsis"><%= tool.category %></span> | ||
<i class="fa-solid fa-chevron-down fold"></i> | ||
</li> | ||
<% } else { %> | ||
<li class="tool-item border-box"> | ||
<a class="a-wrap border-box" href="<%= tool?.link %>"> | ||
<div class="top border-box"> | ||
<div class="logo border-box flex-center"> | ||
<i class="icon fas fa-tools text-color-4"></i> | ||
<img src="<%- url_for(tool?.image) %>" | ||
onerror="this.style.display = 'none'" | ||
> | ||
</div> | ||
<div class="name flex-start border-box text-ellipsis"> | ||
<div class="border-box text-color-3 text-ellipsis"> | ||
<%= tool?.name %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="bottom flex-start border-box text-ellipsis"> | ||
<div class="border-box text-color-4 text-ellipsis"> | ||
<%= tool?.description %> | ||
</div> | ||
</div> | ||
</a> | ||
</li> | ||
<% } %> | ||
<% } %> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.