diff --git a/astro.config.mjs b/astro.config.mjs index 978c5c8..47c9659 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,5 +17,10 @@ export default defineConfig({ }), vite: { plugins: [], + server: { + watch: { + usePolling: true, + }, + }, }, }); diff --git a/src/assets/icon/calendar.png b/src/assets/icon/calendar.png new file mode 100644 index 0000000..d16ac5b Binary files /dev/null and b/src/assets/icon/calendar.png differ diff --git a/src/assets/icon/eye.png b/src/assets/icon/eye.png new file mode 100644 index 0000000..58f33e8 Binary files /dev/null and b/src/assets/icon/eye.png differ diff --git a/src/assets/icon/folder.png b/src/assets/icon/folder.png new file mode 100644 index 0000000..ca84780 Binary files /dev/null and b/src/assets/icon/folder.png differ diff --git a/src/components/IndexSidebar.astro b/src/components/IndexSidebar.astro new file mode 100644 index 0000000..42386ec --- /dev/null +++ b/src/components/IndexSidebar.astro @@ -0,0 +1,87 @@ +--- +import Folder from "@/assets/icon/folder.png?url"; +import type {CategoriesStats} from "@/types"; + +interface Props { + categories: CategoriesStats[] +} +const {categories} = Astro.props +--- + + + diff --git a/src/components/IndexView.astro b/src/components/IndexView.astro new file mode 100644 index 0000000..b1cb123 --- /dev/null +++ b/src/components/IndexView.astro @@ -0,0 +1,35 @@ +--- +import type {Post, CategoriesStats} from "@/types/post"; +import IndexSidebar from "@/components/IndexSidebar.astro"; +import PostList from '@/components/PostList.astro' + +interface Props { + posts: Post[] + page: number + totalPage: number + categories: CategoriesStats[] +} + +const {posts, page, totalPage, categories} = Astro.props +--- + +