mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
Compare commits
72 Commits
Author | SHA1 | Date | |
---|---|---|---|
63017953d7 | |||
20600eb976 | |||
7f920b77aa | |||
4f5dfc63ea | |||
712805df93 | |||
cd68f597c9 | |||
7ec3fe8ced | |||
90d22b2c7f | |||
4b06fd0522 | |||
b4427f36c2 | |||
b758c64e02 | |||
04469b83ea | |||
36d54666a0 | |||
a34cefec6e | |||
5c343395df | |||
028815a7b6 | |||
a2ad591d6d | |||
7087911756 | |||
35b1c4169f | |||
4c351b8179 | |||
701dccc018 | |||
5133765f94 | |||
3b208c6614 | |||
52870fd6a4 | |||
3a278fec10 | |||
669f592a9f | |||
9c0a3ea1af | |||
fa8d70bf82 | |||
3293fd488e | |||
426bee09da | |||
dbc6c84895 | |||
fab539c9d7 | |||
176ab64a37 | |||
1b56bbc694 | |||
0f9a968081 | |||
6b9ff4100d | |||
870bc3d26b | |||
41e4b93427 | |||
72ae4ef01d | |||
748259b57c | |||
fafd606c18 | |||
b8c3022532 | |||
46adaee53f | |||
508114152c | |||
b2852d172c | |||
16e3b1e465 | |||
ae610ff816 | |||
7c001f3c30 | |||
7eada755e1 | |||
6909304f15 | |||
25b2f05170 | |||
0cc83a811c | |||
78b14c2620 | |||
eebdf0edd2 | |||
62e8005081 | |||
6473e9da7d | |||
1805997f59 | |||
fb25c12883 | |||
849b758fab | |||
ccf5d42c19 | |||
2d68ce59ca | |||
4e6531e341 | |||
8f2d0817ce | |||
7674401e7c | |||
61983dfc4a | |||
ed47407b7d | |||
0a79754978 | |||
725afecbf3 | |||
1bf79e55e1 | |||
3a369c49fa | |||
e78ccf3db4 | |||
acafe71f31 |
@ -1,3 +1,14 @@
|
|||||||
{
|
{
|
||||||
"presets": ["next/babel"]
|
"presets": [
|
||||||
|
[
|
||||||
|
"next/babel",
|
||||||
|
{
|
||||||
|
"preset-env": {
|
||||||
|
"targets": {
|
||||||
|
"browsers": ">1%, not ie 11, not dead"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -9,3 +9,4 @@ tmp
|
|||||||
temp
|
temp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.lighthouseci
|
.lighthouseci
|
||||||
|
.vercel
|
||||||
|
@ -4,3 +4,4 @@ node_modules
|
|||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
**/workbox-*.js
|
**/workbox-*.js
|
||||||
**/sw.js
|
**/sw.js
|
||||||
|
.vercel
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"next/core-web-vitals",
|
"next/core-web-vitals",
|
||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
"plugins": ["prettier"],
|
"plugins": ["unicorn", "prettier"],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": "./tsconfig.json"
|
"project": "./tsconfig.json"
|
||||||
},
|
},
|
||||||
@ -15,6 +15,17 @@
|
|||||||
"jest": true
|
"jest": true
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"prettier/prettier": "error"
|
"prettier/prettier": "error",
|
||||||
|
"unicorn/prefer-node-protocol": "error",
|
||||||
|
"unicorn/prevent-abbreviations": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"replacements": {
|
||||||
|
"props": {
|
||||||
|
"properties": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
65
.github/workflows/Divlo.yml
vendored
65
.github/workflows/Divlo.yml
vendored
@ -32,18 +32,13 @@ jobs:
|
|||||||
- uses: 'actions/checkout@v2.3.4'
|
- uses: 'actions/checkout@v2.3.4'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v2.1.5'
|
uses: 'actions/setup-node@v2.4.0'
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
cache: 'npm'
|
||||||
- name: 'Cache dependencies'
|
|
||||||
uses: 'actions/cache@v2.1.6'
|
|
||||||
with:
|
|
||||||
path: '.npm'
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
|
|
||||||
- name: 'Install'
|
- name: 'Install'
|
||||||
run: 'npm ci --cache .npm --prefer-offline'
|
run: 'npm install'
|
||||||
|
|
||||||
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
|
||||||
- run: 'npm run lint:docker'
|
- run: 'npm run lint:docker'
|
||||||
@ -57,18 +52,13 @@ jobs:
|
|||||||
- uses: 'actions/checkout@v2.3.4'
|
- uses: 'actions/checkout@v2.3.4'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v2.1.5'
|
uses: 'actions/setup-node@v2.4.0'
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
cache: 'npm'
|
||||||
- name: 'Cache dependencies'
|
|
||||||
uses: 'actions/cache@v2.1.6'
|
|
||||||
with:
|
|
||||||
path: '.npm'
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
|
|
||||||
- name: 'Install'
|
- name: 'Install'
|
||||||
run: 'npm ci --cache .npm --prefer-offline'
|
run: 'npm install'
|
||||||
|
|
||||||
- name: 'Build'
|
- name: 'Build'
|
||||||
run: 'npm run build'
|
run: 'npm run build'
|
||||||
@ -84,18 +74,13 @@ jobs:
|
|||||||
- uses: 'actions/checkout@v2.3.4'
|
- uses: 'actions/checkout@v2.3.4'
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v2.1.5'
|
uses: 'actions/setup-node@v2.4.0'
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
cache: 'npm'
|
||||||
- name: 'Cache dependencies'
|
|
||||||
uses: 'actions/cache@v2.1.6'
|
|
||||||
with:
|
|
||||||
path: '.npm'
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
|
|
||||||
- name: 'Install'
|
- name: 'Install'
|
||||||
run: 'npm ci --cache .npm --prefer-offline'
|
run: 'npm install'
|
||||||
|
|
||||||
- name: 'Test'
|
- name: 'Test'
|
||||||
run: 'npm run test'
|
run: 'npm run test'
|
||||||
@ -106,22 +91,36 @@ jobs:
|
|||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v2.3.4'
|
- uses: 'actions/checkout@v2.3.4'
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: 'Import GPG key'
|
||||||
|
uses: 'crazy-max/ghaction-import-gpg@v3.2.0'
|
||||||
|
with:
|
||||||
|
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
git-user-signingkey: true
|
||||||
|
git-commit-gpgsign: true
|
||||||
|
|
||||||
- name: 'Use Node.js'
|
- name: 'Use Node.js'
|
||||||
uses: 'actions/setup-node@v2.1.5'
|
uses: 'actions/setup-node@v2.4.0'
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
cache: 'npm'
|
||||||
- name: 'Cache dependencies'
|
|
||||||
uses: 'actions/cache@v2.1.6'
|
|
||||||
with:
|
|
||||||
path: '.npm'
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
|
|
||||||
- name: 'Install'
|
- name: 'Install'
|
||||||
run: 'npm ci --cache .npm --prefer-offline'
|
run: 'npm install'
|
||||||
|
|
||||||
- name: 'Release'
|
- name: 'Release'
|
||||||
run: 'npm run release'
|
run: 'npm run release'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
GIT_COMMITTER_NAME: ${{ secrets.GIT_NAME }}
|
||||||
|
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_EMAIL }}
|
||||||
|
|
||||||
|
- name: 'Deploy to Vercel'
|
||||||
|
run: 'npm run deploy -- --token="${VERCEL_TOKEN}" --prod'
|
||||||
|
env:
|
||||||
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||||
|
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||||
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,3 +45,4 @@ npm-debug.log*
|
|||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.lighthouseci
|
.lighthouseci
|
||||||
|
.vercel
|
||||||
|
1
.husky/.gitignore
vendored
1
.husky/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
_
|
|
@ -11,7 +11,6 @@
|
|||||||
"preset": "lighthouse:recommended",
|
"preset": "lighthouse:recommended",
|
||||||
"assertions": {
|
"assertions": {
|
||||||
"csp-xss": "warning",
|
"csp-xss": "warning",
|
||||||
"non-composited-animations": "warning",
|
|
||||||
"uses-responsive-images": "warning"
|
"uses-responsive-images": "warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -6,3 +6,4 @@ package.json
|
|||||||
package-lock.json
|
package-lock.json
|
||||||
**/workbox-*.js
|
**/workbox-*.js
|
||||||
**/sw.js
|
**/sw.js
|
||||||
|
.vercel
|
||||||
|
@ -13,6 +13,25 @@
|
|||||||
"preset": "conventionalcommits"
|
"preset": "conventionalcommits"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@semantic-release/github"
|
[
|
||||||
|
"@semantic-release/npm",
|
||||||
|
{
|
||||||
|
"npmPublish": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": ["package.json", "package-lock.json"],
|
||||||
|
"message": "chore(release): ${nextRelease.version} [skip ci]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@semantic-release/github",
|
||||||
|
[
|
||||||
|
"@saithodev/semantic-release-backmerge",
|
||||||
|
{
|
||||||
|
"backmergeStrategy": "merge"
|
||||||
|
}
|
||||||
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
41
.vscode/settings.json
vendored
41
.vscode/settings.json
vendored
@ -1,9 +1,48 @@
|
|||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
||||||
"prettier.configPath": ".prettierrc.json",
|
"prettier.configPath": ".prettierrc.json",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll": true
|
"source.fixAll": true
|
||||||
|
},
|
||||||
|
"[css]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[sass]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[scss]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[markdown]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[typescriptreact]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[javascriptreact]": {
|
||||||
|
"editor.autoClosingBrackets": "always",
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,8 +51,8 @@ Scopes define what part of the code changed.
|
|||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/) >= 14
|
- [Node.js](https://nodejs.org/) >= 14.0.0
|
||||||
- [npm](https://www.npmjs.com/) >= 7
|
- [npm](https://www.npmjs.com/) >= 7.0.0
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
FROM node:16.3.0 AS dependencies
|
FROM node:16.6.1 AS dependencies
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ./package*.json ./
|
COPY ./package*.json ./
|
||||||
RUN npm clean-install
|
RUN npm clean-install
|
||||||
|
|
||||||
FROM node:16.3.0 AS builder
|
FROM node:16.6.1 AS builder
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
|
COPY --from=dependencies /usr/src/app/node_modules ./node_modules
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:16.3.0 AS runner
|
FROM node:16.6.1 AS runner
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
COPY --from=builder /usr/src/app/next.config.js ./next.config.js
|
COPY --from=builder /usr/src/app/next.config.js ./next.config.js
|
||||||
|
35
README.md
35
README.md
@ -5,7 +5,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/Divlo/Divlo/actions?query=workflow%3A%22Divlo%22"><img src="https://github.com/Divlo/Divlo/actions/workflows/Divlo.yml/badge.svg?branch=master" alt="Divlo's CI" /></a>
|
<a href="https://github.com/Divlo/Divlo/actions/workflows/Divlo.yml"><img src="https://github.com/Divlo/Divlo/actions/workflows/Divlo.yml/badge.svg?branch=master" alt="Divlo's CI" /></a>
|
||||||
<a href="https://github.com/Divlo"><img alt="GitHub" src="https://img.shields.io/badge/-GitHub-5A5A5A?style=flat&labelColor=5A5A5A&logo=github&logoColor=white"/></a>
|
<a href="https://github.com/Divlo"><img alt="GitHub" src="https://img.shields.io/badge/-GitHub-5A5A5A?style=flat&labelColor=5A5A5A&logo=github&logoColor=white"/></a>
|
||||||
<a href="https://gitlab.com/Divlo"><img alt="GitLab" src="https://img.shields.io/badge/-GitLab-303030?style=flat&labelColor=303030&logo=gitlab&logoColor=white"/></a>
|
<a href="https://gitlab.com/Divlo"><img alt="GitLab" src="https://img.shields.io/badge/-GitLab-303030?style=flat&labelColor=303030&logo=gitlab&logoColor=white"/></a>
|
||||||
<a href="https://www.npmjs.com/~divlo"><img alt="npm" src="https://img.shields.io/badge/-npm-c4302b?style=flat&labelColor=c4302b&logo=npm&logoColor=white"/></a>
|
<a href="https://www.npmjs.com/~divlo"><img alt="npm" src="https://img.shields.io/badge/-npm-c4302b?style=flat&labelColor=c4302b&logo=npm&logoColor=white"/></a>
|
||||||
@ -20,21 +20,22 @@
|
|||||||
|
|
||||||
## 📜 About
|
## 📜 About
|
||||||
|
|
||||||
```typescript
|
```json
|
||||||
export interface Divlo {
|
{
|
||||||
pronouns: 'He' | 'Him'
|
"name": "Divlo",
|
||||||
birthDate: '31/03/2003'
|
"pronouns": "He' | 'Him",
|
||||||
nationality: 'Alsace, France'
|
"birthDate": "31/03/2003",
|
||||||
interests: [
|
"nationality": "Alsace, France",
|
||||||
'Developer Full Stack Junior',
|
"interests": [
|
||||||
'Passionate about High-Tech',
|
"Developer Full Stack Junior",
|
||||||
'Open-Source enthusiast'
|
"Passionate about High-Tech",
|
||||||
]
|
"Open-Source enthusiast"
|
||||||
skills: {
|
],
|
||||||
languages: ['JavaScript', 'TypeScript', 'Python', 'C/C++']
|
"skills": {
|
||||||
frontEnd: ['HTML', 'CSS', 'Tailwind CSS', 'React.js (+ Next.js)']
|
"programmingLanguages": ["JavaScript", "TypeScript", "Python"],
|
||||||
backEnd: ['Node.js', 'Fastify', 'Prisma', 'PostgreSQL', 'MySQL']
|
"frontEnd": ["HTML", "CSS", "Tailwind CSS", "React.js (+ Next.js)"],
|
||||||
tools: ['Ubuntu', 'Hyper Terminal', 'VSCode', 'Git', 'Docker']
|
"backEnd": ["Node.js", "Fastify", "Prisma", "PostgreSQL", "MySQL"],
|
||||||
|
"tools": ["Ubuntu", "Hyper Terminal", "VSCode", "Git", "Docker"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -45,5 +46,5 @@ export interface Divlo {
|
|||||||
|
|
||||||
<p align=center>
|
<p align=center>
|
||||||
<img height=175 align="center" src="https://github-readme-stats.vercel.app/api?username=Divlo&show_icons=true&theme=dark" />
|
<img height=175 align="center" src="https://github-readme-stats.vercel.app/api?username=Divlo&show_icons=true&theme=dark" />
|
||||||
<img height=175 align="center" src="https://github-readme-stats.vercel.app/api/top-langs/?username=Divlo&hide=html,css&langs_count=8&layout=compact&theme=dark" />
|
<img height=175 align="center" src="https://github-readme-stats.vercel.app/api/top-langs/?username=Divlo&hide=html,css,javascript&langs_count=8&layout=compact&theme=dark" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -1,13 +1,39 @@
|
|||||||
|
import { useMemo } from 'react'
|
||||||
|
import Link from 'next/link'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
|
||||||
export const Footer: React.FC = () => {
|
export interface FooterProps {
|
||||||
|
version: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Footer: React.FC<FooterProps> = (props) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const { version } = props
|
||||||
|
|
||||||
|
const versionLink = useMemo(() => {
|
||||||
|
return `https://github.com/Divlo/Divlo/releases/tag/v${version}`
|
||||||
|
}, [version])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className='bg-white flex justify-center py-6 text-lg border-t-2 border-gray-600 dark:border-gray-400 dark:bg-black'>
|
<footer className='bg-white flex flex-col items-center justify-center py-6 text-lg border-t-2 border-gray-600 dark:border-gray-400 dark:bg-black'>
|
||||||
<p>
|
<p>
|
||||||
<span className='text-yellow dark:text-yellow-dark'>Divlo</span> |{' '}
|
<Link href='/'>
|
||||||
{t('common:allRightsReserved')}
|
<a className='hover:underline text-yellow dark:text-yellow-dark'>
|
||||||
|
Divlo
|
||||||
|
</a>
|
||||||
|
</Link>{' '}
|
||||||
|
| {t('common:allRightsReserved')}
|
||||||
|
</p>
|
||||||
|
<p className='mt-1'>
|
||||||
|
Version{' '}
|
||||||
|
<a
|
||||||
|
className='hover:underline text-yellow dark:text-yellow-dark'
|
||||||
|
href={versionLink}
|
||||||
|
target='_blank'
|
||||||
|
rel='noopener noreferrer'
|
||||||
|
>
|
||||||
|
{version}
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
)
|
)
|
||||||
|
24
components/OpenSource/Repository.tsx
Normal file
24
components/OpenSource/Repository.tsx
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import { ShadowContainer } from 'components/design/ShadowContainer'
|
||||||
|
import { GitHubIcon } from 'components/Profile/SocialMediaList/SocialMediaIcons/GitHubIcon'
|
||||||
|
|
||||||
|
export interface RepositoryProps {
|
||||||
|
name: string
|
||||||
|
description: string
|
||||||
|
href: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Repository: React.FC<RepositoryProps> = (props) => {
|
||||||
|
const { name, description, href } = props
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ShadowContainer className='cursor-pointer relative p-6 !mb-4 max-h-32 transition-transform duration-200 ease-in-out hover:-translate-y-2'>
|
||||||
|
<a href={href} target='_blank' rel='noopener noreferrer'>
|
||||||
|
<div className='flex'>
|
||||||
|
<GitHubIcon className='h-6 mr-2' />
|
||||||
|
<span className='text-yellow dark:text-yellow-dark'>{name}</span>
|
||||||
|
</div>
|
||||||
|
<p className='my-4'>{description}</p>
|
||||||
|
</a>
|
||||||
|
</ShadowContainer>
|
||||||
|
)
|
||||||
|
}
|
47
components/OpenSource/index.tsx
Normal file
47
components/OpenSource/index.tsx
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
|
||||||
|
import { Repository } from './Repository'
|
||||||
|
|
||||||
|
export const OpenSource: React.FC = () => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className='max-w-full mt-0 flex flex-col items-center'>
|
||||||
|
<p className='text-center'>{t('home:open-source.description')}</p>
|
||||||
|
<div className='grid grid-cols-1 md:w-10/12 md:grid-cols-2 gap-6 my-6'>
|
||||||
|
<Repository
|
||||||
|
name='nodejs/node'
|
||||||
|
description='Node.js JavaScript runtime ✨️🐢🚀✨️'
|
||||||
|
href='https://github.com/nodejs/node/commits?author=Divlo'
|
||||||
|
/>
|
||||||
|
<Repository
|
||||||
|
name='standard/standard'
|
||||||
|
description='🌟 JavaScript Style Guide, with linter & automatic code fixer'
|
||||||
|
href='https://github.com/standard/standard/commits?author=Divlo'
|
||||||
|
/>
|
||||||
|
<Repository
|
||||||
|
name='nrwl/nx'
|
||||||
|
description='Smart, Extensible Build Framework'
|
||||||
|
href='https://github.com/nrwl/nx/commits?author=Divlo'
|
||||||
|
/>
|
||||||
|
<Repository
|
||||||
|
name='vercel/styled-jsx'
|
||||||
|
description='Full CSS support for JSX without compromises'
|
||||||
|
href='https://github.com/vercel/styled-jsx/commits?author=Divlo'
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style jsx global>{`
|
||||||
|
.animation-custom {
|
||||||
|
position: relative;
|
||||||
|
transition: all 0.3s ease 0s;
|
||||||
|
}
|
||||||
|
.animation-custom:hover {
|
||||||
|
transform: translateY(-7px);
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
@ -1,44 +1,17 @@
|
|||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
|
||||||
export const ProfileInfo: React.FC = () => {
|
export const ProfileInformation: React.FC = () => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className='pb-2 mb-6 border-b-2 font-headline border-gray-600 dark:border-gray-400'>
|
||||||
<div className='pb-2 mb-6 border-b-2 font-headline border-gray-600 dark:border-gray-400'>
|
<h1 className='text-4xl mb-2'>
|
||||||
<h1 className='text-4xl mb-2'>
|
{t('home:about.IAm')}{' '}
|
||||||
{t('home:about.IAm')}{' '}
|
<strong className='font-semibold text-yellow dark:text-yellow-dark'>
|
||||||
<strong className='font-semibold text-yellow dark:text-yellow-dark'>
|
Divlo
|
||||||
Divlo
|
</strong>
|
||||||
</strong>
|
</h1>
|
||||||
</h1>
|
<h2 className='text-base mb-3'>{t('home:about.description')}</h2>
|
||||||
<h2 className='text-base mb-3'>{t('home:about.description')}</h2>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<style jsx>
|
|
||||||
{`
|
|
||||||
.profile-info {
|
|
||||||
padding-bottom: 25px;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
border-bottom: 1px solid #dedede;
|
|
||||||
}
|
|
||||||
.profile-title {
|
|
||||||
font-size: 36px;
|
|
||||||
line-height: 1.1;
|
|
||||||
font-weight: 300;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.profile-title > strong {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.profile-description {
|
|
||||||
font-size: 17.4px;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 1.1;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
`}
|
|
||||||
</style>
|
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
|
|
||||||
|
import DivloLogo from 'public/images/divlo_logo.png'
|
||||||
|
|
||||||
export const ProfileLogo: React.FC = () => {
|
export const ProfileLogo: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<div className='px-2 py-6'>
|
<div className='px-2 py-6 max-w-[370px] max-h-[370px]'>
|
||||||
<Image
|
<Image src={DivloLogo} alt='Divlo' />
|
||||||
width={370}
|
|
||||||
height={370}
|
|
||||||
src='/images/divlo_logo.png'
|
|
||||||
alt='Divlo'
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
|
import classNames from 'classnames'
|
||||||
|
|
||||||
export const Icon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const Icon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
const { children, ...rest } = props
|
const { children, className, ...rest } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
xmlns='http://www.w3.org/2000/svg'
|
xmlns='http://www.w3.org/2000/svg'
|
||||||
viewBox='0 0 24 24'
|
viewBox='0 0 24 24'
|
||||||
className='dark:text-white text-black w-8 h-8 fill-current'
|
className={classNames(
|
||||||
|
'dark:text-white text-black w-8 h-8 fill-current',
|
||||||
|
className
|
||||||
|
)}
|
||||||
{...rest}
|
{...rest}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { ProfileDescriptionBottom } from './ProfileDescriptionBottom'
|
import { ProfileDescriptionBottom } from './ProfileDescriptionBottom'
|
||||||
import { ProfileInfo } from './ProfileInfo'
|
import { ProfileInformation } from './ProfileInfo'
|
||||||
import { ProfileList } from './ProfileList'
|
import { ProfileList } from './ProfileList'
|
||||||
import { ProfileLogo } from './ProfileLogo'
|
import { ProfileLogo } from './ProfileLogo'
|
||||||
|
|
||||||
export const Profile: React.FC = () => {
|
export const Profile: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col justify-center items-center px-10 pt-2 md:pt-10 xl:pt-0 md:flex-row'>
|
<div className='flex flex-col justify-center items-center px-10 pt-2 md:pt-10 md:flex-row'>
|
||||||
<ProfileLogo />
|
<ProfileLogo />
|
||||||
<div>
|
<div>
|
||||||
<ProfileInfo />
|
<ProfileInformation />
|
||||||
<ProfileList />
|
<ProfileList />
|
||||||
<ProfileDescriptionBottom />
|
<ProfileDescriptionBottom />
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@ export const Skills: React.FC = () => {
|
|||||||
<SkillComponent skill='JavaScript' />
|
<SkillComponent skill='JavaScript' />
|
||||||
<SkillComponent skill='TypeScript' />
|
<SkillComponent skill='TypeScript' />
|
||||||
<SkillComponent skill='Python' />
|
<SkillComponent skill='Python' />
|
||||||
<SkillComponent skill='C/C++' />
|
|
||||||
</SkillsSection>
|
</SkillsSection>
|
||||||
|
|
||||||
<SkillsSection title='Front-end'>
|
<SkillsSection title='Front-end'>
|
||||||
|
@ -4,7 +4,9 @@ import { Footer } from '../Footer'
|
|||||||
|
|
||||||
describe('<Footer />', () => {
|
describe('<Footer />', () => {
|
||||||
it('should render', async () => {
|
it('should render', async () => {
|
||||||
const { getByText } = render(<Footer />)
|
const version = '1.0.0'
|
||||||
|
const { getByText } = render(<Footer version={version} />)
|
||||||
expect(getByText('Divlo')).toBeInTheDocument()
|
expect(getByText('Divlo')).toBeInTheDocument()
|
||||||
|
expect(getByText(version)).toBeInTheDocument()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -4,7 +4,7 @@ export const SectionHeading: React.FC<SectionHeadingProps> = (props) => {
|
|||||||
const { children, ...rest } = props
|
const { children, ...rest } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<h2 {...rest} className='text-4xl font-semibold text-center mt-1 mb-7'>
|
<h2 {...rest} className='text-4xl font-semibold text-center mt-1 mb-3'>
|
||||||
{children}
|
{children}
|
||||||
</h2>
|
</h2>
|
||||||
)
|
)
|
||||||
|
@ -50,5 +50,8 @@
|
|||||||
"image": "/images/portfolio/leon.png"
|
"image": "/images/portfolio/leon.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"open-source": {
|
||||||
|
"description": "List of most famous open source projects I contributed to."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,5 +50,8 @@
|
|||||||
"image": "/images/portfolio/leon.png"
|
"image": "/images/portfolio/leon.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"open-source": {
|
||||||
|
"description": "Liste des projets open source les plus célèbres auxquels j'ai contribué."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
next-env.d.ts
vendored
3
next-env.d.ts
vendored
@ -1,3 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
/// <reference types="next/types/global" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||||
|
@ -1,11 +1,35 @@
|
|||||||
const nextPWA = require('next-pwa')
|
const nextPWA = require('next-pwa')
|
||||||
const nextTranslate = require('next-translate')
|
const nextTranslate = require('next-translate')
|
||||||
|
const { createSecureHeaders } = require('next-secure-headers')
|
||||||
|
|
||||||
|
/** @type {import("next").NextConfig} */
|
||||||
module.exports = nextTranslate(
|
module.exports = nextTranslate(
|
||||||
nextPWA({
|
nextPWA({
|
||||||
pwa: {
|
pwa: {
|
||||||
disable: process.env.NODE_ENV !== 'production',
|
disable: process.env.NODE_ENV !== 'production',
|
||||||
dest: 'public'
|
dest: 'public'
|
||||||
|
},
|
||||||
|
async headers() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: '/:path*',
|
||||||
|
headers: createSecureHeaders({
|
||||||
|
contentSecurityPolicy: {
|
||||||
|
directives: {
|
||||||
|
defaultSrc: ["'self'"],
|
||||||
|
scriptSrc: ["'self'", "'unsafe-eval'", "'unsafe-inline'"],
|
||||||
|
styleSrc: ["'self'", "'unsafe-inline'"],
|
||||||
|
imgSrc: ['*', 'data:', 'blob:'],
|
||||||
|
mediaSrc: "'none'",
|
||||||
|
connectSrc: '*',
|
||||||
|
objectSrc: "'none'",
|
||||||
|
fontSrc: "'self'",
|
||||||
|
baseURI: "'none'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
10519
package-lock.json
generated
10519
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
65
package.json
65
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "divlo",
|
"name": "divlo",
|
||||||
"version": "0.0.0-development",
|
"version": "1.3.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -24,55 +24,62 @@
|
|||||||
"lighthouse": "lhci autorun",
|
"lighthouse": "lhci autorun",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"release": "semantic-release",
|
"release": "semantic-release",
|
||||||
|
"deploy": "vercel",
|
||||||
"postinstall": "husky install"
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/montserrat": "4.4.5",
|
"@fontsource/montserrat": "4.5.1",
|
||||||
"@fortawesome/fontawesome-svg-core": "1.2.35",
|
"@fortawesome/fontawesome-svg-core": "1.2.36",
|
||||||
"@fortawesome/free-brands-svg-icons": "5.15.3",
|
"@fortawesome/free-brands-svg-icons": "5.15.4",
|
||||||
"@fortawesome/free-solid-svg-icons": "5.15.3",
|
"@fortawesome/free-solid-svg-icons": "5.15.4",
|
||||||
"@fortawesome/react-fontawesome": "0.1.14",
|
"@fortawesome/react-fontawesome": "0.1.15",
|
||||||
"classnames": "2.3.1",
|
"classnames": "2.3.1",
|
||||||
"html-react-parser": "1.2.7",
|
"html-react-parser": "1.2.7",
|
||||||
"next": "11.0.1",
|
"next": "11.1.0",
|
||||||
"next-pwa": "5.2.21",
|
"next-pwa": "5.2.24",
|
||||||
"next-themes": "0.0.14",
|
"next-themes": "0.0.15",
|
||||||
"next-translate": "1.0.7",
|
"next-translate": "1.0.7",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
|
"read-pkg": "5.2.0",
|
||||||
"universal-cookie": "4.0.4"
|
"universal-cookie": "4.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "12.1.4",
|
"@commitlint/cli": "13.1.0",
|
||||||
"@commitlint/config-conventional": "12.1.4",
|
"@commitlint/config-conventional": "13.1.0",
|
||||||
"@lhci/cli": "0.8.0",
|
"@lhci/cli": "0.8.0",
|
||||||
|
"@saithodev/semantic-release-backmerge": "1.5.3",
|
||||||
|
"@semantic-release/git": "9.0.0",
|
||||||
"@testing-library/jest-dom": "5.14.1",
|
"@testing-library/jest-dom": "5.14.1",
|
||||||
"@testing-library/react": "12.0.0",
|
"@testing-library/react": "12.0.0",
|
||||||
"@types/jest": "26.0.23",
|
"@types/jest": "27.0.0",
|
||||||
"@types/node": "15.12.4",
|
"@types/node": "16.6.0",
|
||||||
"@types/react": "17.0.11",
|
"@types/react": "17.0.17",
|
||||||
"@types/styled-jsx": "2.2.8",
|
"@types/styled-jsx": "2.2.9",
|
||||||
"@typescript-eslint/eslint-plugin": "4.28.0",
|
"@typescript-eslint/eslint-plugin": "4.29.1",
|
||||||
"autoprefixer": "10.2.6",
|
"autoprefixer": "10.3.1",
|
||||||
"babel-jest": "27.0.5",
|
"babel-jest": "27.0.6",
|
||||||
"dockerfilelint": "1.8.0",
|
"dockerfilelint": "1.8.0",
|
||||||
"editorconfig-checker": "4.0.2",
|
"editorconfig-checker": "4.0.2",
|
||||||
"eslint": "7.29.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-next": "11.0.1",
|
"eslint-config-next": "11.1.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.3.0",
|
||||||
"eslint-config-standard-with-typescript": "20.0.0",
|
"eslint-config-standard-with-typescript": "20.0.0",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.24.0",
|
||||||
"eslint-plugin-node": "11.1.0",
|
"eslint-plugin-node": "11.1.0",
|
||||||
"eslint-plugin-prettier": "3.4.0",
|
"eslint-plugin-prettier": "3.4.0",
|
||||||
"eslint-plugin-promise": "5.1.0",
|
"eslint-plugin-promise": "5.1.0",
|
||||||
"husky": "6.0.0",
|
"eslint-plugin-unicorn": "35.0.0",
|
||||||
"jest": "27.0.5",
|
"husky": "7.0.1",
|
||||||
"lint-staged": "11.0.0",
|
"jest": "27.0.6",
|
||||||
"markdownlint-cli": "0.27.1",
|
"lint-staged": "11.1.2",
|
||||||
"postcss": "8.3.5",
|
"markdownlint-cli": "0.28.1",
|
||||||
"prettier": "2.3.1",
|
"next-secure-headers": "2.2.0",
|
||||||
|
"postcss": "8.3.6",
|
||||||
|
"prettier": "2.3.2",
|
||||||
"semantic-release": "17.4.4",
|
"semantic-release": "17.4.4",
|
||||||
"tailwindcss": "2.2.4",
|
"tailwindcss": "2.2.7",
|
||||||
"typescript": "4.3.4"
|
"typescript": "4.3.5",
|
||||||
|
"vercel": "23.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,32 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
import readPackageJSON from 'read-pkg'
|
||||||
|
|
||||||
import { ErrorPage } from 'components/ErrorPage'
|
import { ErrorPage } from 'components/ErrorPage'
|
||||||
import { Head } from 'components/Head'
|
import { Head } from 'components/Head'
|
||||||
|
import { Header } from 'components/Header'
|
||||||
|
import { Footer, FooterProps } from 'components/Footer'
|
||||||
|
|
||||||
const Error404: React.FC = () => {
|
const Error404: React.FC<FooterProps> = (props) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const { version } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head title='Divlo - 404' />
|
<Head title='Divlo - 404' />
|
||||||
<ErrorPage statusCode={404} message={t('errors:notFound')} />
|
|
||||||
|
<Header />
|
||||||
|
<main className='flex flex-col md:mx-auto md:max-w-4xl lg:max-w-7xl'>
|
||||||
|
<ErrorPage statusCode={404} message={t('errors:notFound')} />
|
||||||
|
</main>
|
||||||
|
<Footer version={version} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
return { props: {} }
|
const { version } = await readPackageJSON()
|
||||||
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Error404
|
export default Error404
|
||||||
|
@ -1,22 +1,32 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
import readPackageJSON from 'read-pkg'
|
||||||
|
|
||||||
import { ErrorPage } from 'components/ErrorPage'
|
import { ErrorPage } from 'components/ErrorPage'
|
||||||
import { Head } from 'components/Head'
|
import { Head } from 'components/Head'
|
||||||
|
import { Header } from 'components/Header'
|
||||||
|
import { Footer, FooterProps } from 'components/Footer'
|
||||||
|
|
||||||
const Error500: React.FC = () => {
|
const Error500: React.FC<FooterProps> = (props) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const { version } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head title='Divlo - 500' />
|
<Head title='Divlo - 500' />
|
||||||
<ErrorPage statusCode={500} message={t('errors:serverError')} />
|
|
||||||
|
<Header />
|
||||||
|
<main className='flex flex-col md:mx-auto md:max-w-4xl lg:max-w-7xl'>
|
||||||
|
<ErrorPage statusCode={500} message={t('errors:serverError')} />
|
||||||
|
</main>
|
||||||
|
<Footer version={version} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
return { props: {} }
|
const { version } = await readPackageJSON()
|
||||||
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Error500
|
export default Error500
|
||||||
|
@ -8,10 +8,6 @@ import 'tailwindcss/tailwind.css'
|
|||||||
import '@fontsource/montserrat/400.css'
|
import '@fontsource/montserrat/400.css'
|
||||||
import '@fontsource/montserrat/500.css'
|
import '@fontsource/montserrat/500.css'
|
||||||
import '@fontsource/montserrat/600.css'
|
import '@fontsource/montserrat/600.css'
|
||||||
import '@fontsource/montserrat/700.css'
|
|
||||||
|
|
||||||
import { Header } from 'components/Header'
|
|
||||||
import { Footer } from 'components/Footer'
|
|
||||||
|
|
||||||
const universalCookie = new UniversalCookie()
|
const universalCookie = new UniversalCookie()
|
||||||
|
|
||||||
@ -30,11 +26,7 @@ const MyApp = ({ Component, pageProps }: AppProps): JSX.Element => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider attribute='class' defaultTheme='dark'>
|
<ThemeProvider attribute='class' defaultTheme='dark'>
|
||||||
<Header />
|
<Component {...pageProps} />
|
||||||
<main className='flex flex-col md:mx-auto md:max-w-4xl lg:max-w-7xl'>
|
|
||||||
<Component {...pageProps} />
|
|
||||||
</main>
|
|
||||||
<Footer />
|
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,9 @@ import Document, {
|
|||||||
|
|
||||||
class MyDocument extends Document {
|
class MyDocument extends Document {
|
||||||
static async getInitialProps(
|
static async getInitialProps(
|
||||||
ctx: DocumentContext
|
context: DocumentContext
|
||||||
): Promise<DocumentInitialProps> {
|
): Promise<DocumentInitialProps> {
|
||||||
const initialProps = await Document.getInitialProps(ctx)
|
const initialProps = await Document.getInitialProps(context)
|
||||||
return initialProps
|
return initialProps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { GetStaticProps } from 'next'
|
import { GetStaticProps } from 'next'
|
||||||
import useTranslation from 'next-translate/useTranslation'
|
import useTranslation from 'next-translate/useTranslation'
|
||||||
|
import readPackageJSON from 'read-pkg'
|
||||||
|
|
||||||
import { RevealFade } from 'components/design/RevealFade'
|
import { RevealFade } from 'components/design/RevealFade'
|
||||||
import { Section } from 'components/design/Section'
|
import { Section } from 'components/design/Section'
|
||||||
@ -9,50 +10,69 @@ import { Portfolio } from 'components/Portfolio'
|
|||||||
import { Profile } from 'components/Profile'
|
import { Profile } from 'components/Profile'
|
||||||
import { SocialMediaList } from 'components/Profile/SocialMediaList'
|
import { SocialMediaList } from 'components/Profile/SocialMediaList'
|
||||||
import { Skills } from 'components/Skills'
|
import { Skills } from 'components/Skills'
|
||||||
|
import { OpenSource } from 'components/OpenSource'
|
||||||
|
import { Header } from 'components/Header'
|
||||||
|
import { Footer, FooterProps } from 'components/Footer'
|
||||||
|
|
||||||
const Home: React.FC = () => {
|
const Home: React.FC<FooterProps> = (props) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const { version } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head />
|
<Head />
|
||||||
|
|
||||||
<Section isMain id='about'>
|
<Header />
|
||||||
<Profile />
|
<main className='flex flex-col md:mx-auto md:max-w-4xl lg:max-w-7xl'>
|
||||||
<SocialMediaList />
|
<Section isMain id='about'>
|
||||||
</Section>
|
<Profile />
|
||||||
|
<SocialMediaList />
|
||||||
<RevealFade>
|
|
||||||
<Section id='interests' heading={t('home:interests.title')}>
|
|
||||||
<Interests />
|
|
||||||
</Section>
|
</Section>
|
||||||
</RevealFade>
|
|
||||||
|
|
||||||
<RevealFade>
|
<RevealFade>
|
||||||
<Section
|
<Section id='interests' heading={t('home:interests.title')}>
|
||||||
id='skills'
|
<Interests />
|
||||||
heading={t('home:skills.title')}
|
</Section>
|
||||||
withoutShadowContainer
|
</RevealFade>
|
||||||
>
|
|
||||||
<Skills />
|
|
||||||
</Section>
|
|
||||||
</RevealFade>
|
|
||||||
|
|
||||||
<RevealFade>
|
<RevealFade>
|
||||||
<Section
|
<Section
|
||||||
id='portfolio'
|
id='skills'
|
||||||
heading={t('home:portfolio.title')}
|
heading={t('home:skills.title')}
|
||||||
withoutShadowContainer
|
withoutShadowContainer
|
||||||
>
|
>
|
||||||
<Portfolio />
|
<Skills />
|
||||||
</Section>
|
</Section>
|
||||||
</RevealFade>
|
</RevealFade>
|
||||||
|
|
||||||
|
<RevealFade>
|
||||||
|
<Section
|
||||||
|
id='portfolio'
|
||||||
|
heading={t('home:portfolio.title')}
|
||||||
|
withoutShadowContainer
|
||||||
|
>
|
||||||
|
<Portfolio />
|
||||||
|
</Section>
|
||||||
|
</RevealFade>
|
||||||
|
|
||||||
|
<RevealFade>
|
||||||
|
<Section
|
||||||
|
id='open-source'
|
||||||
|
heading='Open source'
|
||||||
|
withoutShadowContainer
|
||||||
|
>
|
||||||
|
<OpenSource />
|
||||||
|
</Section>
|
||||||
|
</RevealFade>
|
||||||
|
</main>
|
||||||
|
<Footer version={version} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps = async () => {
|
export const getStaticProps: GetStaticProps<FooterProps> = async () => {
|
||||||
return { props: {} }
|
const { version } = await readPackageJSON()
|
||||||
|
return { props: { version } }
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Home
|
export default Home
|
||||||
|
5
vercel.json
Normal file
5
vercel.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"github": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user