diff --git a/.gitignore b/.gitignore index c31d27d..6ef6414 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ yarn-debug.log* yarn-error.log* pnpm-debug.log* +.idea + # environment variables .env diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..f986f2f --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..161a707 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/yarkov.tech.iml b/.idea/yarkov.tech.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/yarkov.tech.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 08731e9..71378f6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Personal website created with Astro. ### Todo -- [ ] HTML layout +- [x] HTML layout - [ ] Adaptive & Responsive layout - [ ] Dark/Light Theme - [ ] Multilang web-site diff --git a/src/components/ArticleItem/ArticleItem.tsx b/src/components/ArticleItem/ArticleItem.tsx index 5e62eff..99c3be3 100644 --- a/src/components/ArticleItem/ArticleItem.tsx +++ b/src/components/ArticleItem/ArticleItem.tsx @@ -1,6 +1,6 @@ import './ArticleItem.scss'; import { Component } from 'solid-js'; -import { IArticle } from '@root/interfaces'; +import type { IArticle } from '@root/interfaces'; import { DateFormatter } from '@utils/date'; export type ArticleItemProps = { diff --git a/src/components/ArticlesList/ArticlesList.scss b/src/components/ArticlesList/ArticlesList.scss index 8629351..f388180 100644 --- a/src/components/ArticlesList/ArticlesList.scss +++ b/src/components/ArticlesList/ArticlesList.scss @@ -24,15 +24,6 @@ } &-tags { margin-bottom: 45px; - & nav ul { - display: flex; - flex-wrap: wrap; - column-gap: 5px; - row-gap: 10px; - list-style: none; - margin: 0; - padding: 0; - } } &-list { &__wrapper { diff --git a/src/components/ArticlesList/ArticlesList.tsx b/src/components/ArticlesList/ArticlesList.tsx index 02cbfca..3d69f3a 100644 --- a/src/components/ArticlesList/ArticlesList.tsx +++ b/src/components/ArticlesList/ArticlesList.tsx @@ -1,9 +1,9 @@ -import './ArticlesList.scss'; -import { Component, createSignal, Show } from 'solid-js'; -import { PageHeading } from '@components/PageHeading'; -import { IArticle } from '@root/interfaces'; -import * as utils from '@root/utils/articles'; -import { ArticleItem } from '../ArticleItem'; +import "./ArticlesList.scss"; +import { Component, createSignal, Show } from "solid-js"; +import { PageHeading } from "@components/PageHeading"; +import type { IArticle } from "@root/interfaces"; +import * as utils from "@root/utils/articles"; +import { ArticleItem } from "../ArticleItem"; export type ArticlesListProps = { data: IArticle[]; @@ -11,42 +11,39 @@ export type ArticlesListProps = { }; export const ArticlesList: Component = ({ data, tags }) => { - const [articles, setArticles] = createSignal( - utils.filterArticlesByYear(data) - ); - + const [articles, setArticles] = createSignal(utils.filterArticlesByYear(data)); const [selectedTags, setSelectedTags] = createSignal([]); - const [filteredArticles, setFilteredArticles] = createSignal([]); return ( -
+
-