From 61172d59e3493549864fb26fc53a65812bb14813 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?=
Date: Tue, 30 May 2023 21:51:27 +0200
Subject: [PATCH] feat: migrate progressively to full name instead of nickname
---
.devcontainer/devcontainer.json | 2 +-
.env.example | 2 +-
CODE_OF_CONDUCT.md | 2 +-
CONTRIBUTING.md | 8 ++++----
LICENSE | 2 +-
README.md | 8 ++++----
components/Footer.tsx | 2 +-
components/Head.tsx | 8 ++++----
components/Header/index.tsx | 4 ++--
components/Profile/ProfileInfo.tsx | 2 +-
components/Profile/ProfileList/index.tsx | 12 +++++-------
components/Profile/ProfileLogo.tsx | 4 ++--
components/Profile/SocialMediaList/index.tsx | 2 +-
components/Skills/skills.ts | 6 +-----
cypress/component/Footer.cy.tsx | 2 +-
cypress/e2e/common/Header.cy.ts | 4 ++--
docker-compose.yml | 4 ++--
jsonresume-theme-custom/scripts/main.js | 4 ++--
package-lock.json | 4 ++--
package.json | 2 +-
pages/404.tsx | 2 +-
pages/500.tsx | 2 +-
pages/blog/[slug].tsx | 2 +-
pages/blog/index.tsx | 2 +-
posts/thream-v1-0-0.md | 12 ++++++------
public/images/skills/Hyper.svg | 1 -
...ual_Studio_Code.png => VisualStudioCode.png} | Bin
resume.jsonc | 8 ++++----
utils/getAge.ts | 16 ++++++++--------
29 files changed, 61 insertions(+), 68 deletions(-)
delete mode 100644 public/images/skills/Hyper.svg
rename public/images/skills/{Visual_Studio_Code.png => VisualStudioCode.png} (100%)
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index a33f86d..4ec72ba 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,5 +1,5 @@
{
- "name": "Divlo",
+ "name": "theoludwig",
"dockerComposeFile": "./docker-compose.yml",
"service": "workspace",
"workspaceFolder": "/workspace",
diff --git a/.env.example b/.env.example
index bc60517..9faeffc 100644
--- a/.env.example
+++ b/.env.example
@@ -1,2 +1,2 @@
-COMPOSE_PROJECT_NAME=divlo
+COMPOSE_PROJECT_NAME=theoludwig
PORT=3000
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index c2c3589..8a0c550 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -60,7 +60,7 @@ representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
-.
+.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2a217e9..235ea61 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,10 +1,10 @@
# 💡 Contributing
-Thanks a lot for your interest in contributing to **divlo.fr**! 🎉
+Thanks a lot for your interest in contributing to **theoludwig.fr**! 🎉
## Code of Conduct
-**divlo.fr** adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project participants to adhere to it. Please read [the full text](./CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
+**theoludwig.fr** adopted the [Contributor Covenant](https://www.contributor-covenant.org/) as its Code of Conduct, and we expect project participants to adhere to it. Please read [the full text](./CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
## Types of contributions
@@ -21,7 +21,7 @@ Thanks a lot for your interest in contributing to **divlo.fr**! 🎉
- Make sure your **code passes the tests**.
-If you're adding new features to **divlo.fr**, please include tests.
+If you're adding new features to **theoludwig.fr**, please include tests.
## Commits
@@ -68,4 +68,4 @@ docker compose up --build
### Services started
-- website: `http://127.0.0.1:3000`
+- `website`:
diff --git a/LICENSE b/LICENSE
index 04e85c3..25dddde 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) Divlo
+Copyright (c) Théo LUDWIG
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 213a82a..3675538 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
Developer Full Stack • Open-Source enthusiast
@@ -11,8 +11,8 @@
-
-
+
+
@@ -21,7 +21,7 @@
```json
{
- "name": "Théo LUDWIG (Divlo)",
+ "name": "Théo LUDWIG",
"pronouns": "He/Him",
"birthDate": "31/03/2003",
"nationality": "Alsace, France",
diff --git a/components/Footer.tsx b/components/Footer.tsx
index c568449..aa42945 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'
>
- Théo LUDWIG (Divlo)
+ Théo LUDWIG
{' '}
| {t('common:all-rights-reserved')}
diff --git a/components/Head.tsx b/components/Head.tsx
index 00a756d..4186dce 100644
--- a/components/Head.tsx
+++ b/components/Head.tsx
@@ -9,10 +9,10 @@ interface HeadProps {
export const Head: React.FC = (props) => {
const {
- title = 'Théo LUDWIG (Divlo)',
- image = 'https://divlo.fr/images/icon-96x96.png',
- description = 'Théo LUDWIG (Divlo) - Developer Full Stack • Passionate about High-Tech',
- url = 'https://divlo.fr/'
+ title = 'Théo LUDWIG',
+ image = 'https://theoludwig.fr/images/icon-96x96.png',
+ description = 'Théo LUDWIG - Developer Full Stack • Passionate about High-Tech',
+ url = 'https://theoludwig.fr/'
} = props
return (
diff --git a/components/Header/index.tsx b/components/Header/index.tsx
index 6ab54e0..356feb0 100644
--- a/components/Header/index.tsx
+++ b/components/Header/index.tsx
@@ -20,11 +20,11 @@ export const Header: React.FC = (props) => {
width={60}
height={60}
src='/images/divlo_icon_small.png'
- alt='Divlo'
+ alt='Théo LUDWIG'
priority
/>
- Théo LUDWIG (Divlo)
+ Théo LUDWIG
diff --git a/components/Profile/ProfileInfo.tsx b/components/Profile/ProfileInfo.tsx
index 11a6aa6..566d76e 100644
--- a/components/Profile/ProfileInfo.tsx
+++ b/components/Profile/ProfileInfo.tsx
@@ -6,7 +6,7 @@ export const ProfileInformation: React.FC = () => {
return (
- Théo LUDWIG (Divlo)
+ Théo LUDWIG
{t('home:about.description')}
diff --git a/components/Profile/ProfileList/index.tsx b/components/Profile/ProfileList/index.tsx
index cb55db3..b1562b3 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_BIRTH_DATE, DIVLO_BIRTH_DATE_STRING, getAge } from 'utils/getAge'
+import { BIRTH_DATE, BIRTH_DATE_STRING, getAge } from 'utils/getAge'
import { ProfileItem } from './ProfileItem'
@@ -9,7 +9,7 @@ export const ProfileList: React.FC = () => {
const { t } = useTranslation('home')
const age = useMemo(() => {
- return getAge(DIVLO_BIRTH_DATE)
+ return getAge(BIRTH_DATE)
}, [])
return (
@@ -20,15 +20,13 @@ export const ProfileList: React.FC = () => {
/>
)
diff --git a/components/Profile/ProfileLogo.tsx b/components/Profile/ProfileLogo.tsx
index 45fed50..331e64a 100644
--- a/components/Profile/ProfileLogo.tsx
+++ b/components/Profile/ProfileLogo.tsx
@@ -1,11 +1,11 @@
import Image from 'next/image'
-import DivloLogo from 'public/images/divlo_logo.png'
+import Logo from 'public/images/divlo_logo.png'
export const ProfileLogo: React.FC = () => {
return (
-
+
)
}
diff --git a/components/Profile/SocialMediaList/index.tsx b/components/Profile/SocialMediaList/index.tsx
index ba37dbb..8a95d39 100644
--- a/components/Profile/SocialMediaList/index.tsx
+++ b/components/Profile/SocialMediaList/index.tsx
@@ -31,7 +31,7 @@ export const SocialMediaList: React.FC = () => {
-
+
diff --git a/components/Skills/skills.ts b/components/Skills/skills.ts
index 03ff457..de7c4b5 100644
--- a/components/Skills/skills.ts
+++ b/components/Skills/skills.ts
@@ -88,16 +88,12 @@ export const skills = {
},
'Visual Studio Code': {
link: 'https://code.visualstudio.com/',
- image: '/images/skills/Visual_Studio_Code.png'
+ image: '/images/skills/VisualStudioCode.png'
},
Git: {
link: 'https://git-scm.com/',
image: '/images/skills/Git.png'
},
- Hyper: {
- link: 'https://hyper.is/',
- image: '/images/skills/Hyper.svg'
- },
Ubuntu: {
link: 'https://ubuntu.com/',
image: '/images/skills/Ubuntu.png'
diff --git a/cypress/component/Footer.cy.tsx b/cypress/component/Footer.cy.tsx
index f36bd35..03b8de4 100644
--- a/cypress/component/Footer.cy.tsx
+++ b/cypress/component/Footer.cy.tsx
@@ -4,7 +4,7 @@ describe('', () => {
it('should render with appropriate link tag version', () => {
const version = '1.0.0'
cy.mount()
- cy.contains('Divlo')
+ cy.contains('Théo LUDWIG')
.get('[data-cy=version-link]')
.should('have.text', version)
.should(
diff --git a/cypress/e2e/common/Header.cy.ts b/cypress/e2e/common/Header.cy.ts
index 700d7b3..46cd299 100644
--- a/cypress/e2e/common/Header.cy.ts
+++ b/cypress/e2e/common/Header.cy.ts
@@ -38,7 +38,7 @@ describe('Common > Header', () => {
describe('Switch Language', () => {
it('should switch language from EN (default) to FR', () => {
- cy.get('h1').contains('Divlo')
+ cy.get('h1').contains('Théo LUDWIG')
cy.get('[data-cy=language-flag-text]').contains('EN')
cy.get('[data-cy=languages-list]').should('not.be.visible')
cy.get('[data-cy=language-click]').click()
@@ -46,7 +46,7 @@ describe('Common > Header', () => {
cy.get('[data-cy=languages-list] > li:first-child').contains('FR').click()
cy.get('[data-cy=languages-list]').should('not.be.visible')
cy.get('[data-cy=language-flag-text]').contains('FR')
- cy.get('h1').contains('Divlo')
+ cy.get('h1').contains('Théo LUDWIG')
})
it('should close the language list menu when clicking outside', () => {
diff --git a/docker-compose.yml b/docker-compose.yml
index 9ae7149..aff5160 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,7 @@
services:
- divlo:
+ theoludwig:
container_name: ${COMPOSE_PROJECT_NAME}
- image: 'divlo'
+ image: 'theoludwig'
build:
context: './'
ports:
diff --git a/jsonresume-theme-custom/scripts/main.js b/jsonresume-theme-custom/scripts/main.js
index 69ebdb9..3f045c2 100644
--- a/jsonresume-theme-custom/scripts/main.js
+++ b/jsonresume-theme-custom/scripts/main.js
@@ -1,5 +1,5 @@
-import { DIVLO_BIRTH_DATE, getAge } from '../../utils/getAge.ts'
+import { BIRTH_DATE, getAge } from '../../utils/getAge.ts'
const yearOld = document.getElementById('year-old')
-yearOld.textContent = getAge(DIVLO_BIRTH_DATE).toString()
+yearOld.textContent = getAge(BIRTH_DATE).toString()
diff --git a/package-lock.json b/package-lock.json
index ebf3426..79fec53 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "divlo",
+ "name": "theoludwig",
"version": "2.7.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "divlo",
+ "name": "theoludwig",
"version": "2.7.3",
"hasInstallScript": true,
"dependencies": {
diff --git a/package.json b/package.json
index 2441c14..1100f57 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "divlo",
+ "name": "theoludwig",
"version": "2.7.3",
"private": true,
"repository": {
diff --git a/pages/404.tsx b/pages/404.tsx
index 3533f7c..0255c8c 100644
--- a/pages/404.tsx
+++ b/pages/404.tsx
@@ -13,7 +13,7 @@ const Error404: NextPage = (props) => {
return (
<>
-
+
= (props) => {
return (
<>
-
+
= (props) => {
return (
<>
diff --git a/pages/blog/index.tsx b/pages/blog/index.tsx
index 78cbf73..9a4c3f9 100644
--- a/pages/blog/index.tsx
+++ b/pages/blog/index.tsx
@@ -21,7 +21,7 @@ const BlogPage: NextPage = (props) => {
return (
<>
-
+
diff --git a/posts/thream-v1-0-0.md b/posts/thream-v1-0-0.md
index 5a73868..ef60f21 100644
--- a/posts/thream-v1-0-0.md
+++ b/posts/thream-v1-0-0.md
@@ -7,13 +7,13 @@ publishedOn: '2022-04-11T10:24:55.206Z'
Hello! 👋
-After months of hard work, [Thream v1.0.0](https://www.thream.divlo.fr/) has been released! 🎉
+After months of hard work, [Thream v1.0.0](https://thream.divlo.fr/) has been released! 🎉
-[**Thream**](https://www.thream.divlo.fr/) is your open-source platform to stay close with your friends and communities, talk, chat, collaborate, share and have fun.
+[**Thream**](https://thream.divlo.fr/) is your open-source platform to stay close with your friends and communities, talk, chat, collaborate, share and have fun.
## Presentation
-[**Thream**](https://www.thream.divlo.fr/) is a social network to stay close with your friends and communities to talk, chat, collaborate and share.
+[**Thream**](https://thream.divlo.fr/) is a social network to stay close with your friends and communities to talk, chat, collaborate and share.
The project is largely inspired by [Discord](https://discord.com), a proprietary instant messaging service, but differentiates itself by its **non-profit open source philosophy** and will integrate special features.
@@ -23,11 +23,11 @@ The idea is that a user can create an account to authenticate with an email addr
![The Thream app on a community page](../public/images/posts/thream-v1-0-0/thream-ui.png)
-[**Thream**](https://www.thream.divlo.fr/) is a website that works on any recent browser, accessible on [thream.divlo.fr](https://www.thream.divlo.fr/).
+[**Thream**](https://thream.divlo.fr/) is a website that works on any recent browser, accessible on [thream.divlo.fr](https://thream.divlo.fr/).
## History
-The idea for the project has existed since May 13, 2020, symbolized by a [publication on Twitter](https://twitter.com/Divlo_FR/status/1260638175246135296) by the creator: Divlo.
+The idea for the project has existed since May 13, 2020, symbolized by a [publication on Twitter](https://twitter.com/Divlo_FR/status/1260638175246135296) by the creator: Théo LUDWIG.
The main goal is to put into **practice knowledge in web development** and computer science in general on a concrete project that can **easily evolve over time** where you can add many features.
@@ -116,4 +116,4 @@ The other interest of the project is that it is completely **open-source**, and
Feel free to give feebacks and suggestions to improve the project, and to report any bug you find.
-**Thream** is available: [**thream.divlo.fr**](https://www.thream.divlo.fr/).
+**Thream** is available: [**thream.divlo.fr**](https://thream.divlo.fr/).
diff --git a/public/images/skills/Hyper.svg b/public/images/skills/Hyper.svg
deleted file mode 100644
index 35aeb7d..0000000
--- a/public/images/skills/Hyper.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/images/skills/Visual_Studio_Code.png b/public/images/skills/VisualStudioCode.png
similarity index 100%
rename from public/images/skills/Visual_Studio_Code.png
rename to public/images/skills/VisualStudioCode.png
diff --git a/resume.jsonc b/resume.jsonc
index f454510..999c21b 100644
--- a/resume.jsonc
+++ b/resume.jsonc
@@ -6,14 +6,14 @@
"basics": {
"name": "Théo LUDWIG",
"label": "Développeur Full Stack • Étudiant",
- "image": "https://divlo.fr/images/logo_orange.png",
- "email": "contact@divlo.fr",
+ "image": "https://theoludwig.fr/images/logo_orange.png",
+ "email": "contact@theoludwig.fr",
"age": "31/03/2003",
"location": {
"address": "Alsace, France"
},
- "url": "https://divlo.fr",
- "summary": "Je suis étudiant à l'université suivant la formation \"BUT Informatique\" et me forme en autodidacte dans l'informatique en suivant des formations en ligne.
Je mets en pratique tout ce que j'apprends et réalise de nombreux projets (disponible sur divlo.fr)."
+ "url": "https://theoludwig.fr",
+ "summary": "Je suis étudiant à l'université suivant la formation \"BUT Informatique\" et me forme en autodidacte dans l'informatique en suivant des formations en ligne.
Je mets en pratique tout ce que j'apprends et réalise de nombreux projets (disponible sur theoludwig.fr)."
},
"education": [
{
diff --git a/utils/getAge.ts b/utils/getAge.ts
index 52414d8..2c49784 100644
--- a/utils/getAge.ts
+++ b/utils/getAge.ts
@@ -1,11 +1,11 @@
-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)
+export const BIRTH_DATE_DAY = '31' as const
+export const BIRTH_DATE_MONTH = '03' as const
+export const BIRTH_DATE_YEAR = '2003' as const
+export const BIRTH_DATE_STRING =
+ `${BIRTH_DATE_DAY}/${BIRTH_DATE_MONTH}/${BIRTH_DATE_YEAR}` as const
+export const BIRTH_DATE_ISO_8601 =
+ `${BIRTH_DATE_YEAR}-${BIRTH_DATE_MONTH}-${BIRTH_DATE_DAY}` as const
+export const BIRTH_DATE = new Date(BIRTH_DATE_ISO_8601)
/**
* Calculates the age of a person based on their birth date