Skip to content

Commit

Permalink
feat(about): initial layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Jul 14, 2024
1 parent 4775ba0 commit beb5dd0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Binary file added public/PPF.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"Name": "My name is Miguel",
"Details": "Your next Back-end Developer"
},
"About": {
"Text": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur, voluptatum culpa odio optio earum deserunt nulla alias sint eum accusamus commodi ipsum, eveniet sed similique explicabo nesciunt quo non! Provident."
},
"ErrorToast": {
"Title": "Error copied!",
"Description": "Error code has copied to clipboard"
Expand Down
3 changes: 3 additions & 0 deletions public/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"Name": "Meu nome é Miguel",
"Details": "Seu próximo Desenvolvedor Back-end"
},
"About": {
"Text": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur, voluptatum culpa odio optio earum deserunt nulla alias sint eum accusamus commodi ipsum, eveniet sed similique explicabo nesciunt quo non! Provident."
},
"ErrorToast": {
"Title": "Erro copiado!",
"Description": "Código de erro copiado para a area de transferência"
Expand Down
13 changes: 10 additions & 3 deletions src/components/about.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { useTranslations } from "next-intl";

export function About() {
const t = useTranslations();
const t = useTranslations("About");

return (
<section
id="about"
className="flex justify-center mt-8 h-screen text-4xl text-blue-700"
className="flex justify-center mt-8 h-screen text-white"
>
<div>{t("Hello")}</div>
<div className="flex items-center mt-8 overflow-wrap break-word">
<img
src="PPF.jpeg"
alt="Miguel Alexandre Uhlein PPF"
className="size-80 mt-4 inline-block mr-4 rounded-xl"
/>
<p className="max-w-md">{t("Text")}</p>
</div>
</section>
);
}

0 comments on commit beb5dd0

Please sign in to comment.