Skip to content

Commit fecee6f

Browse files
about me done
1 parent 77b9529 commit fecee6f

File tree

14 files changed

+122
-49
lines changed

14 files changed

+122
-49
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets": ["next/babel"]
2+
"presets": ["next/babel"],
3+
"plugins": [["styled-components", { "ssr": true }]]
34
}

public/images/profile.jpg

-60.9 KB
Binary file not shown.

public/images/profile.png

522 KB
Loading

src/app/app.route.conts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum AppRoute {
22
Home = '/',
33
Articles = '/articles',
4-
AboutMe = '/amout-me',
4+
AboutMe = '/about-me',
55
}

src/components/avatar.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import styled from 'styled-components';
2+
import Image from 'next/image';
3+
4+
export const Avatar = styled(Image)`
5+
object-fit: cover;
6+
width: 120px;
7+
height: 120px;
8+
border-radius: 60px;
9+
`;

src/components/content.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import styled from 'styled-components';
2+
3+
export const Content = styled.div`
4+
font-weight: 100;
5+
line-height: 1.8;
6+
letter-spacing: -0.5px;
7+
text-align: justify;
8+
`;

src/components/footer/footer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ const FooterContainer = styled.div`
2525
display: flex;
2626
flex-direction: row;
2727
justify-content: flex-end;
28+
29+
@media only screen and (max-width: 768px) {
30+
justify-content: center;
31+
}
2832
`;
2933

3034
const FooterItem = styled.div`

src/components/layout.tsx

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,45 @@ import { Footer } from './footer/footer';
66

77
export const Layout: React.FC = ({ children }) => {
88
return (
9-
<>
10-
<Head>
11-
<link rel="icon" href="/favicon.ico" />
12-
<meta name="description" content="Learn how to build a personal website using Next.js" />
13-
<meta
14-
property="og:image"
15-
content={`https://og-image.vercel.app/${encodeURI(
16-
translate(translationKeys.site.title)
17-
)}.png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`}
18-
/>
19-
<meta name="og:title" content={translate(translationKeys.site.title)} />
20-
<meta name="twitter:card" content="summary_large_image" />
21-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono" />
22-
<link rel="preconnect" href="https://fonts.gstatic.com" />
23-
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100&display=swap" rel="stylesheet" />
24-
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700&display=swap" rel="stylesheet" />
25-
</Head>
26-
<header>
27-
<Menu />
28-
</header>
29-
<Main>
30-
<main>{children}</main>
31-
</Main>
32-
<Footer />
33-
</>
9+
<LayoutContainer>
10+
<div>
11+
<Head>
12+
<link rel="icon" href="/favicon.ico" />
13+
<meta name="description" content="Learn how to build a personal website using Next.js" />
14+
<meta
15+
property="og:image"
16+
content={`https://og-image.vercel.app/${encodeURI(
17+
translate(translationKeys.site.title)
18+
)}.png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`}
19+
/>
20+
<meta name="og:title" content={translate(translationKeys.site.title)} />
21+
<meta name="twitter:card" content="summary_large_image" />
22+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono" />
23+
<link rel="preconnect" href="https://fonts.gstatic.com" />
24+
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100&display=swap" rel="stylesheet" />
25+
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700&display=swap" rel="stylesheet" />
26+
</Head>
27+
<header>
28+
<Menu />
29+
</header>
30+
<main>
31+
<Main>{children}</Main>
32+
</main>
33+
</div>
34+
<footer>
35+
<Footer />
36+
</footer>
37+
</LayoutContainer>
3438
);
3539
};
3640

41+
const LayoutContainer = styled.div`
42+
min-height: 100vh;
43+
justify-content: space-between;
44+
flex-direction: column;
45+
display: flex;
46+
`;
47+
3748
const Main = styled.div`
3849
max-width: 36rem;
3950
padding: 0 1rem;

src/components/title.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import styled from 'styled-components';
2+
3+
export const Title = styled.h1`
4+
font-size: 36px;
5+
font-weight: 400;
6+
`;

src/logic/translations/locales/en.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ export const en = {
1717
},
1818
},
1919
},
20-
homePage: {
21-
title: 'Home page',
20+
pages: {
21+
home: {
22+
title: 'Home page',
23+
},
24+
articles: {},
2225
aboutMe: {
2326
title: 'About me',
24-
description: "I'am frontend developer",
27+
description: 'Hi, I’m Wojciech, Front End (React) and Back End (.Net) developer.',
28+
avatar: {
29+
alt: 'Wojciech Cendrzak',
30+
},
2531
},
2632
},
2733
};

0 commit comments

Comments
 (0)