From ba34e314c9e0b8ea65c6ac64d7021a47d5fbb6da Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 29 May 2023 17:10:14 +0200 Subject: [PATCH] fix: update name with full name and nickname --- README.md | 6 +++--- components/Footer.tsx | 2 +- components/Head.tsx | 4 ++-- components/Header/index.tsx | 2 +- components/Profile/ProfileInfo.tsx | 7 ++----- components/Profile/ProfileList/index.tsx | 13 +++++++++---- jsonresume-theme-custom/scripts/main.js | 4 ++-- locales/en/home.json | 4 ++-- locales/fr/home.json | 4 ++-- pages/404.tsx | 2 +- pages/500.tsx | 2 +- pages/blog/[slug].tsx | 2 +- utils/getAge.ts | 16 ++++++++-------- 13 files changed, 35 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 0a11731..d1f2636 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

Divlo

+

Théo LUDWIG (Divlo)

Developer Full Stack • Open-Source enthusiast @@ -21,9 +21,9 @@ ```json { - "name": "Divlo", + "name": "Théo LUDWIG (Divlo)", "pronouns": "He/Him", - "birthDate": "31/03/2003", + "birthdate": "31/03/2003", "nationality": "Alsace, France", "interests": ["Open-Source enthusiast", "Passionate about High-Tech"], "skills": { diff --git a/components/Footer.tsx b/components/Footer.tsx index f70b4f5..c568449 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -21,7 +21,7 @@ export const Footer: React.FC = (props) => { href='/' className='text-yellow hover:underline dark:text-yellow-dark' > - Divlo + Théo LUDWIG (Divlo) {' '} | {t('common:all-rights-reserved')}

diff --git a/components/Head.tsx b/components/Head.tsx index 9a04859..00a756d 100644 --- a/components/Head.tsx +++ b/components/Head.tsx @@ -9,9 +9,9 @@ interface HeadProps { export const Head: React.FC = (props) => { const { - title = 'Divlo', + title = 'Théo LUDWIG (Divlo)', image = 'https://divlo.fr/images/icon-96x96.png', - description = 'Divlo - Developer Full Stack • Passionate about High-Tech', + description = 'Théo LUDWIG (Divlo) - Developer Full Stack • Passionate about High-Tech', url = 'https://divlo.fr/' } = props diff --git a/components/Header/index.tsx b/components/Header/index.tsx index e60be63..6ab54e0 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -24,7 +24,7 @@ export const Header: React.FC = (props) => { priority /> - Divlo + Théo LUDWIG (Divlo) diff --git a/components/Profile/ProfileInfo.tsx b/components/Profile/ProfileInfo.tsx index 7fa3ea6..11a6aa6 100644 --- a/components/Profile/ProfileInfo.tsx +++ b/components/Profile/ProfileInfo.tsx @@ -5,11 +5,8 @@ export const ProfileInformation: React.FC = () => { return (
-

- {t('home:about.i-am')}{' '} - - Divlo - +

+ Théo LUDWIG (Divlo)

{t('home:about.description')}

diff --git a/components/Profile/ProfileList/index.tsx b/components/Profile/ProfileList/index.tsx index f450840..cb55db3 100644 --- a/components/Profile/ProfileList/index.tsx +++ b/components/Profile/ProfileList/index.tsx @@ -1,7 +1,7 @@ import useTranslation from 'next-translate/useTranslation' import { useMemo } from 'react' -import { DIVLO_BIRTHDAY, DIVLO_BIRTHDAY_DATE, getAge } from 'utils/getAge' +import { DIVLO_BIRTH_DATE, DIVLO_BIRTH_DATE_STRING, getAge } from 'utils/getAge' import { ProfileItem } from './ProfileItem' @@ -9,15 +9,20 @@ export const ProfileList: React.FC = () => { const { t } = useTranslation('home') const age = useMemo(() => { - return getAge(DIVLO_BIRTHDAY) + return getAge(DIVLO_BIRTH_DATE) }, []) return (
    - + = (props) => { return ( <> - + = (props) => { return ( <> - + = (props) => { return ( <> diff --git a/utils/getAge.ts b/utils/getAge.ts index ff09051..52414d8 100644 --- a/utils/getAge.ts +++ b/utils/getAge.ts @@ -1,11 +1,11 @@ -export const DIVLO_BIRTHDAY_DAY = '31' as const -export const DIVLO_BIRTHDAY_MONTH = '03' as const -export const DIVLO_BIRTHDAY_YEAR = '2003' as const -export const DIVLO_BIRTHDAY_DATE = - `${DIVLO_BIRTHDAY_DAY}/${DIVLO_BIRTHDAY_MONTH}/${DIVLO_BIRTHDAY_YEAR}` as const -export const DIVLO_BIRTHDAY_DATE_ISO_8061 = - `${DIVLO_BIRTHDAY_YEAR}-${DIVLO_BIRTHDAY_MONTH}-${DIVLO_BIRTHDAY_DAY}` as const -export const DIVLO_BIRTHDAY = new Date(DIVLO_BIRTHDAY_DATE_ISO_8061) +export const DIVLO_BIRTH_DATE_DAY = '31' as const +export const DIVLO_BIRTH_DATE_MONTH = '03' as const +export const DIVLO_BIRTH_DATE_YEAR = '2003' as const +export const DIVLO_BIRTH_DATE_STRING = + `${DIVLO_BIRTH_DATE_DAY}/${DIVLO_BIRTH_DATE_MONTH}/${DIVLO_BIRTH_DATE_YEAR}` as const +export const DIVLO_BIRTH_DATE_ISO_8601 = + `${DIVLO_BIRTH_DATE_YEAR}-${DIVLO_BIRTH_DATE_MONTH}-${DIVLO_BIRTH_DATE_DAY}` as const +export const DIVLO_BIRTH_DATE = new Date(DIVLO_BIRTH_DATE_ISO_8601) /** * Calculates the age of a person based on their birth date