From ab355897a12b7bda1089a44de326d41455a0f7a3 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Dec 2021 18:14:27 +0100 Subject: chore(homepage): replace absolute links with custom components --- src/content | 2 +- src/pages/index.tsx | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 76 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/content b/src/content index d6f4c2f..1b44310 160000 --- a/src/content +++ b/src/content @@ -1 +1 @@ -Subproject commit d6f4c2ff1510272a42da208dde9340dbb1857538 +Subproject commit 1b44310958dd736fa236f40b3c411a95a47e2ba3 diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3d4f6ff..886552c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,15 +6,89 @@ import { seo } from '@config/seo'; import { NextPageWithLayout } from '@ts/types/app'; import { loadTranslation } from '@utils/helpers/i18n'; import HomePageContent from '@content/pages/homepage.mdx'; +import { ButtonLink } from '@components/Buttons'; +import styles from '@styles/pages/Home.module.scss'; +import { t } from '@lingui/macro'; const Home: NextPageWithLayout = () => { + const CodingLinks = () => { + return ( + + ); + }; + + const ColdarkRepos = () => { + return ( + + ); + }; + + const LibreLinks = () => { + return ( + + ); + }; + + const MoreLinks = () => { + return ( + + ); + }; + + const components = { + CodingLinks: CodingLinks, + ColdarkRepos: ColdarkRepos, + LibreLinks: LibreLinks, + MoreLinks: MoreLinks, + }; + return ( <> {seo.homepage.title} - + ); }; -- cgit v1.2.3