From 5fc287f9636bcc5ab870a573218f084ae87620fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dias?= Date: Tue, 6 Aug 2024 12:18:50 -0300 Subject: [PATCH 1/3] :boom: fix: remove non-existent prop --- src/pages/[lang]/projects.astro | 2 +- src/pages/[lang]/stack.astro | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/[lang]/projects.astro b/src/pages/[lang]/projects.astro index ea378d4..f7a43f5 100644 --- a/src/pages/[lang]/projects.astro +++ b/src/pages/[lang]/projects.astro @@ -10,7 +10,7 @@ export { getStaticPaths }; const tr = useTranslations(Astro.params.lang as never); --- - +

{ tr("projects.title") }

diff --git a/src/pages/[lang]/stack.astro b/src/pages/[lang]/stack.astro index 126a166..7b0566f 100644 --- a/src/pages/[lang]/stack.astro +++ b/src/pages/[lang]/stack.astro @@ -8,7 +8,14 @@ export { getStaticPaths };

- <> +

Tech Stack

+

This is my knowlege stack! It contains the technologies that I've learned until today.

+ +

Languages

+ TypeScript + +

Frameworks/Libraries

+
diff --git a/src/components/LinkButton.astro b/src/components/LinkButton.astro index 0142cf9..608580b 100644 --- a/src/components/LinkButton.astro +++ b/src/components/LinkButton.astro @@ -1,6 +1,4 @@ --- -import "../styles/_colors.css"; - interface Props { href: string; } @@ -12,7 +10,9 @@ const { href } = Astro.props; - diff --git a/src/components/NavBar.astro b/src/components/NavBar.astro deleted file mode 100644 index 931198c..0000000 --- a/src/components/NavBar.astro +++ /dev/null @@ -1,91 +0,0 @@ ---- -import { useTranslations } from "../i18n/utils.ts"; -import "../styles/global.css"; - -const lang = Astro.params.lang || "en"; -const tr = useTranslations(lang as never); ---- - -
- - -
- - diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro new file mode 100644 index 0000000..7ab35c7 --- /dev/null +++ b/src/components/Navigation.astro @@ -0,0 +1,207 @@ +--- +import { Image } from "astro:assets"; +import { useTranslations } from "../i18n/utils.ts"; +import { i18n, languages } from "../i18n/ui.ts"; + +const pages = [ "stack", "projects" ]; +const lang = Astro.params.lang || "en"; +const tr = useTranslations(lang as never); +--- + + + + + + diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro index b7717d8..aac1606 100644 --- a/src/components/ProjectCard.astro +++ b/src/components/ProjectCard.astro @@ -10,58 +10,98 @@ interface Props { const { icon, developer, title, description, href } = Astro.props; --- -
  • - +
  • - - \ No newline at end of file + diff --git a/src/components/ProjectsComponent.astro b/src/components/ProjectsComponent.astro new file mode 100644 index 0000000..024bc9c --- /dev/null +++ b/src/components/ProjectsComponent.astro @@ -0,0 +1,50 @@ +--- +import { useTranslations } from "../i18n/utils"; +import ProjectCard from "./ProjectCard.astro"; + +const tr = useTranslations(Astro.params.lang as never || "en"); + +--- + + + + + + + + + + + + + + + diff --git a/src/components/SocialLinks.astro b/src/components/SocialLinks.astro index 7461290..6181c18 100644 --- a/src/components/SocialLinks.astro +++ b/src/components/SocialLinks.astro @@ -3,44 +3,57 @@ import LinkButton from "./LinkButton.astro"; --- -