Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Jul 16, 2024
2 parents 9ea36a9 + 7922e71 commit 4b51f97
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 55 deletions.
115 changes: 62 additions & 53 deletions WebApp/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand All @@ -15,69 +16,77 @@

<body class="dark:bg-neutral-900">
<div class="text-white py-4 bg-gray-600 dark:bg-neutral-800">
<div class="container mx-auto flex items-center justify-between">
<a href="/" class="text-2xl font-semibold hidden sm:block">EasyBlog</a>
<span class="hidden sm:block">🗽to be a human</span>
<div class="flex items-center">
<input id="searchText" placeholder="博客标题" class="px-4 py-2 border border-gray-600 rounded-lg dark:bg-neutral-800 text-white focus:outline-none" />
<button id="searchBtn" class="ml-2 bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg">
搜索
</button>
<div class="container mx-auto flex items-center justify-between">
<a href="/" class="text-2xl font-semibold hidden sm:block">EasyBlog</a>
<span class="hidden sm:block">🗽to be a human</span>
<div class="flex items-center">
<input id="searchText" placeholder="博客标题"
class="px-4 py-2 border border-gray-600 rounded-lg dark:bg-neutral-800 text-black dark:text-white focus:outline-none" />
<button id="searchBtn" class="ml-2 bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg">
搜索
</button>
</div>
</div>
</div>
</div>

<div class="container mx-auto mt-2">
<div class="flex">
<div class="sm:w-3/4 sm:pr-4 w-full">
<!-- 博客卡片列表 -->
<div class="px-3 bg-white dark:bg-neutral-900" id="blogList">
<!-- 博客卡片内容 -->
<div class="w-100 rounded overflow-hidden shadow-lg dark:bg-neutral-800 my-2">
<div class="px-6 py-3">
<div class="font-bold text-xl mb-2">
<a href = "/blogs/introduction.html" target="_blank" class="block text-lg py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">📑 introduction</a>
</div>
<p class="text-neutral-700 text-base dark:text-neutral-300">
👨‍💻 NilTor
&nbsp;&nbsp;
⏱️ <span class="publish-time" data-time="2024-04-07T14:07:45+08:00"></span>
</p>
</div>
</div>
<div class="flex">
<div class="sm:w-3/4 sm:pr-4 w-full">
<!-- 博客卡片列表 -->
<div class="px-3 bg-white dark:bg-neutral-900" id="blogList">
<!-- 博客卡片内容 -->
<div class="w-100 rounded overflow-hidden shadow-lg dark:bg-neutral-800 my-2">
<div class="px-6 py-3">
<div class="font-bold text-xl mb-2">
<a href="/blogs/introduction.html" target="_blank"
class="block text-lg py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">📑
introduction</a>
</div>
<p class="text-neutral-700 text-base dark:text-neutral-300">
👨‍💻 NilTor
&nbsp;&nbsp;
⏱️ <span class="publish-time" data-time="2024-04-07T14:07:45+08:00"></span>
</p>
</div>
</div>

</div>
</div>
</div>
</div>

<div class="w-1/4 mt-1 hidden sm:block">
<!-- 分类 -->
<div id="catalog-list" class="rounded-lg shadow-md p-4 dark:bg-neutral-800">
<div class="text-xl font-semibold dark:text-neutral-300">分类</div>
<span data-catalog="all" class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
全部 [1]
</span>
</div>
<div id="date-list" class="rounded-lg shadow-md p-4 dark:bg-neutral-800 mt-2">
<div class="text-xl font-semibold dark:text-neutral-300">存档</div>
<span data-date="all" class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
全部 [1]
</span>
<span data-date="2024-04" class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
2024-04 [1]
</span>
</div>
<div class="w-1/4 mt-1 hidden sm:block">
<!-- 分类 -->
<div id="catalog-list" class="rounded-lg shadow-md p-4 dark:bg-neutral-800">
<div class="text-xl font-semibold dark:text-neutral-300">分类</div>
<span data-catalog="all"
class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
全部 [1]
</span>
</div>
<div id="date-list" class="rounded-lg shadow-md p-4 dark:bg-neutral-800 mt-2">
<div class="text-xl font-semibold dark:text-neutral-300">存档</div>
<span data-date="all"
class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
全部 [1]
</span>
<span data-date="2024-04"
class="filter-item text-lg block py-2 text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100">
2024-04 [1]
</span>
</div>

</div>
</div>
</div>
</div>
</div>

<div class="dark:bg-neutral-800 py-4 fixed bottom-0 w-full bg-gray-200">
<div class="container mx-auto text-center">
<p class="text-neutral-600 dark:text-neutral-300">
EasyBlog
<a class="text-blue-600" target="_blank" href="https://github.com/AterDev/blazor-blog">Powered by Ater Blog</a>
</p>
</div>
<div class="container mx-auto text-center">
<p class="text-neutral-600 dark:text-neutral-300">
EasyBlog
<a class="text-blue-600" target="_blank" href="https://github.com/AterDev/blazor-blog">Powered by Ater
Blog</a>
</p>
</div>
</div>
</body>

</html>
4 changes: 2 additions & 2 deletions src/BuildSite/template/index.html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="@{BaseUrl}" class="text-2xl font-semibold hidden sm:block">@{Name}</a>
<span class="hidden sm:block">@{Description}</span>
<div class="flex items-center">
<input id="searchText" placeholder="博客标题" class="px-4 py-2 border border-gray-600 rounded-lg dark:bg-neutral-800 text-white focus:outline-none" />
<input id="searchText" placeholder="博客标题" class="px-4 py-2 border border-gray-600 rounded-lg dark:bg-neutral-800 text-black dark:text-white focus:outline-none" />
<button id="searchBtn" class="ml-2 bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg">
搜索
</button>
Expand Down Expand Up @@ -48,7 +48,7 @@
<div class="container mx-auto text-center">
<p class="text-neutral-600 dark:text-neutral-300">
@{Name}
<a class="text-blue-600" target="_blank" href="https://github.com/AterDev/blazor-blog">Powered by Ater Blog</a>
<a class="text-blue-600" target="_blank" href="https://github.com/AterDev/EasyBlog">Powered by Ater Blog</a>
</p>
</div>
</div>
Expand Down

0 comments on commit 4b51f97

Please sign in to comment.