Skip to content

Commit d6bea0e

Browse files
authored
feat: adds about page metadata (#122)
1 parent 52aa9be commit d6bea0e

File tree

2 files changed

+39
-28
lines changed

2 files changed

+39
-28
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"use client";
2+
import { Heading, Box, Text, Container, Avatar } from "@chakra-ui/react";
3+
import { useTranslations } from "next-intl";
4+
import { Stats } from "./Stats";
5+
import { Footer } from "./Footer";
6+
7+
function About() {
8+
const t = useTranslations();
9+
return (
10+
<>
11+
<Container maxW="container.sm">
12+
<Heading mb="4">{t("about")}</Heading>
13+
<Text mb="4">{t("about_description_1")}</Text>
14+
<Text mb="4">{t("about_description_2")}</Text>
15+
<Text mb="4">{t("about_description_3")}</Text>
16+
<Heading mb="4">{t("complete_platform_for_career")}</Heading>
17+
<Text mb="4">{t("about_description_4")}</Text>
18+
<Text mb="4">{t("about_description_5")}</Text>
19+
<Text mb="4">{t("about_description_6")}</Text>
20+
<Stats mb="4" />
21+
<Box mb="32">
22+
<Avatar name="Amer Karamustafić" src="/about/avatar.png" />
23+
<Text>Amer Karamustafić, {t("founder_of_resumebuilder")}</Text>
24+
</Box>
25+
</Container>
26+
<Footer />
27+
</>
28+
);
29+
}
30+
31+
export { About };
Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,12 @@
1-
"use client";
2-
import { Text, Heading, Container, Avatar, Box } from "@chakra-ui/react";
3-
import { useTranslations } from "next-intl";
4-
import { Footer } from "app/[locale]/(marketing)/_components/Footer";
5-
import { Stats } from "app/[locale]/(marketing)/_components/Stats";
1+
import { Metadata } from "next";
2+
import { About } from "app/[locale]/(marketing)/_components/About";
63

7-
function About() {
8-
const t = useTranslations();
4+
export const metadata: Metadata = {
5+
title: "About | resumebuilder.dev",
6+
};
97

10-
return (
11-
<>
12-
<Container maxW="container.sm">
13-
<Heading mb="4">{t("about")}</Heading>
14-
<Text mb="4">{t("about_description_1")}</Text>
15-
<Text mb="4">{t("about_description_2")}</Text>
16-
<Text mb="4">{t("about_description_3")}</Text>
17-
<Heading mb="4">{t("complete_platform_for_career")}</Heading>
18-
<Text mb="4">{t("about_description_4")}</Text>
19-
<Text mb="4">{t("about_description_5")}</Text>
20-
<Text mb="4">{t("about_description_6")}</Text>
21-
<Stats mb="4" />
22-
<Box mb="32">
23-
<Avatar name="Amer Karamustafić" src="/about/avatar.png" />
24-
<Text>Amer Karamustafić, {t("founder_of_resumebuilder")}</Text>
25-
</Box>
26-
</Container>
27-
<Footer />
28-
</>
29-
);
8+
function AboutPage() {
9+
return <About />;
3010
}
3111

32-
export default About;
12+
export default AboutPage;

0 commit comments

Comments
 (0)