diff --git a/README.md b/README.md index b979e35..f9d9c08 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,14 @@ Personal website created with Astro. +### Todo + +- [ ] HTML layout +- [ ] Adaptive & Responsive layout +- [ ] Dark/Light Theme +- [ ] Multilang web-site +- [ ] Form handling via Netlify Forms + ## License This project is open source and available under the [MIT License](LICENSE). diff --git a/src/components/ArticlesList/ArticlesList.tsx b/src/components/ArticlesList/ArticlesList.tsx index 71b314b..157fa68 100644 --- a/src/components/ArticlesList/ArticlesList.tsx +++ b/src/components/ArticlesList/ArticlesList.tsx @@ -1,5 +1,5 @@ import './ArticlesList.scss'; -import { Component, createSignal } from 'solid-js'; +import { Component, createSignal, Show } from 'solid-js'; import { PageHeading } from '@components/PageHeading'; import { IArticle } from '@root/interfaces'; import * as utils from '@root/utils/articles'; @@ -15,6 +15,10 @@ export const ArticlesList: Component = ({ data, tags }) => { utils.filterArticlesByYear(data) ); + const [selectedTags, setSelectedTags] = createSignal([]); + + const [filteredArticles, setFilteredArticles] = createSignal([]); + return (
= ({ data, tags }) => {
- {Object.keys(articles()) - .map(Number) - .sort((a, b) => b - a) - .map((year) => ( -
-

{year}

- {utils.sortArtcilesByDate(articles()[year]).map((article) => ( - - ))} -
+ + {Object.keys(articles()) + .map(Number) + .sort((a, b) => b - a) + .map((year) => ( +
+

{year}

+ {utils.sortArtcilesByDate(articles()[year]).map((article) => ( + + ))} +
+ ))} +
+ + {utils.sortArtcilesByDate(filteredArticles()).map((article) => ( + ))} +
); diff --git a/src/pages/articles.astro b/src/pages/articles.astro index 67f4614..041b697 100644 --- a/src/pages/articles.astro +++ b/src/pages/articles.astro @@ -8,7 +8,6 @@ const articles = await Astro.glob('../../content/articles/**/*.md'); const tags = new Set( articles.map((article) => article.frontmatter.tags).flat() ); -console.log(tags); --- diff --git a/src/pages/projects.astro b/src/pages/projects.astro new file mode 100644 index 0000000..e69de29