-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cesalberca
committed
May 3, 2024
1 parent
a2465a0
commit 3be75ce
Showing
17 changed files
with
246 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ | |
```bash | ||
npm start | ||
``` | ||
|
||
https://simpleicons.org/ | ||
https://techicons.dev/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.link { | ||
display: flex; | ||
gap: var(--s); | ||
align-items: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import type { FC } from 'react' | ||
import { useTranslations } from 'next-intl' | ||
import { Page } from '../../../core/components/page/page' | ||
import { Link } from '../../../core/components/link/link' | ||
import Image from 'next/image' | ||
import instagram from '../../../../public/assets/icons/instagram.svg' | ||
import x from '../../../../public/assets/icons/x.svg' | ||
import youtube from '../../../../public/assets/icons/youtube.svg' | ||
import github from '../../../../public/assets/icons/github.svg' | ||
import tiktok from '../../../../public/assets/icons/tiktok.svg' | ||
import linkedin from '../../../../public/assets/icons/linkedin.svg' | ||
import email from '../../../../public/assets/icons/email.svg' | ||
import styles from './links.module.scss' | ||
import { bind } from '../../../core/utils/bind' | ||
|
||
const cx = bind(styles) | ||
|
||
const links = [{ | ||
title: 'Instagram', | ||
url: 'https://instagram.com/cesalberca', | ||
icon: instagram | ||
},{ | ||
title: 'X', | ||
url: 'https://x.com/cesalberca', | ||
icon: x | ||
},{ | ||
title: 'TikTok', | ||
url: 'https://www.tiktok.com/@cesalberca', | ||
icon: tiktok | ||
},{ | ||
title: 'Youtube', | ||
url: 'https://www.youtube.com/@cesalberca', | ||
icon: youtube | ||
},{ | ||
title: 'LinkedIn', | ||
url: 'https://www.linkedin.com/in/cesalberca', | ||
icon: linkedin | ||
},{ | ||
title: 'Github', | ||
url: 'https://github.com/cesalberca', | ||
icon: github | ||
}, | ||
] | ||
|
||
export const LinksPage: FC = () => { | ||
const t = useTranslations() | ||
return ( | ||
<Page> | ||
<h1>{t('links.title')}</h1> | ||
<section className={cx('links')}>{links.map(x => ( | ||
<div className={cx('link')}><Image src={x.icon} alt={x.title} height={20} /> | ||
<Link type={'navigation'} to={x.url}>{x.title}</Link></div> | ||
))} | ||
<div className={cx('link')}><Image src={email} alt={'Email'} height={20} /> | ||
<Link type={'navigation'} to={'mailto:cesar@cesalberca.com'}>Email</Link></div> | ||
</section> | ||
|
||
</Page> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { GetStaticProps, NextPage } from 'next' | ||
import { LinksPage } from '../features/links/delivery/links.page' | ||
|
||
const Index: NextPage = () => { | ||
return <LinksPage /> | ||
} | ||
|
||
export const getStaticProps: GetStaticProps = async ({ locale }) => { | ||
return { | ||
props: { | ||
messages: (await import(`../core/i18n/${locale}.json`)).default, | ||
}, | ||
} | ||
} | ||
|
||
export default Index |