diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro
index 2a2565d..9d6975d 100644
--- a/src/components/BaseHead.astro
+++ b/src/components/BaseHead.astro
@@ -9,18 +9,17 @@ export interface Props {
const { title = SITE_METADATA.title, description } = Astro.props as Props;
---
-
-
-
+
+
+
-
-
+
+
{title}
-
-
-
-
+
+
+
+
+
diff --git a/src/components/ProjectItem/ProjectItem.scss b/src/components/ProjectItem/ProjectItem.scss
index acdc63f..4669e2b 100644
--- a/src/components/ProjectItem/ProjectItem.scss
+++ b/src/components/ProjectItem/ProjectItem.scss
@@ -1,4 +1,6 @@
.project-item {
+ display: flex;
+ flex-direction: column;
border: 1px solid var(--border-color);
border-radius: var(--border-radius-lg);
padding: 15px;
@@ -25,12 +27,9 @@
}
}
- &__description {
- margin-bottom: 15px;
- }
-
&__links {
display: flex;
+ margin-top: auto;
column-gap: 5px;
}
}
diff --git a/src/components/SearchInput/SearchInput.tsx b/src/components/SearchInput/SearchInput.tsx
index 5430cd6..e2221d8 100644
--- a/src/components/SearchInput/SearchInput.tsx
+++ b/src/components/SearchInput/SearchInput.tsx
@@ -1,4 +1,4 @@
-import { Component, JSX } from 'solid-js';
+import type { Component, JSX } from 'solid-js';
import { createEffect } from 'solid-js';
import { search, setSearch } from '@stores/searchStore';
@@ -58,7 +58,15 @@ const SearchInput: Component = (props) => {
-
+
{props.count}
);
diff --git a/src/config.ts b/src/config.ts
index 232e695..d959cd5 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -1,8 +1,4 @@
-export const SITE_SETTINGS = {
- defaultTheme: 'dark',
-};
-
-export const SITE_METADATA = {
+export const SITE_METADATA: SiteMetadataType = {
title: 'Sergey Yarkov',
name: 'yarkov.tech',
author: 'Sergey Yarkov',
@@ -21,7 +17,7 @@ export const SITE_METADATA = {
],
projects: [
{
- icon: 'nodejs',
+ icon: 'book',
name: 'yarkov.tech',
year: '2022',
description: 'Мой персональный веб-сайт где находятся информация обо мне и список различных статей, туториалов...',
diff --git a/src/icons/book.svg b/src/icons/book.svg
new file mode 100644
index 0000000..05fd249
--- /dev/null
+++ b/src/icons/book.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/styles/theme.scss b/src/styles/theme.scss
index 727a519..dfe9dcc 100644
--- a/src/styles/theme.scss
+++ b/src/styles/theme.scss
@@ -80,7 +80,7 @@
--border-radius-lg: 5px;
/* Sizes */
- --content-width: 820px;
+ --content-width: 750px;
--content-padding: 24px;
--opacity-hover: 0.7;
diff --git a/src/types/main.d.ts b/src/types/main.d.ts
index 6a1a5ad..182e73b 100644
--- a/src/types/main.d.ts
+++ b/src/types/main.d.ts
@@ -10,6 +10,29 @@ declare global {
onthemetoggled: CustomEvent;
}
+ type SiteMetadataType = {
+ title: string;
+ name: string;
+ author: string;
+ description: string;
+ contacts: {
+ email: string;
+ githubUrl: string;
+ telegramUrl: string;
+ };
+ nav: Array<{ name: string; url: string }>;
+ projects: Array<{
+ icon: string;
+ name: string;
+ year: string;
+ description: string;
+ sourceUrl?: string | undefined;
+ demoUrl?: string | undefined;
+ articleUrl?: string | undefined;
+ }>;
+ skills: Array<{ title: string; list: Array<{ icon: string; name: string }> }>;
+ };
+
type ArticleType = {
slug: string;
title: string;