Skip to content

Commit 6c7aa70

Browse files
committed
Merge branch 'origin/main'
2 parents ea52674 + 4cb8ad9 commit 6c7aa70

31 files changed

Lines changed: 1259 additions & 826 deletions

-i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
619be34767d0f5c4c0bb6686d5502c2078b2e0a2<|ENT|><|RY|>Update website with improved design and multi-language support<|COM|><|MIT|>

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"Codeium.codeium"
11+
]
12+
}
13+
}
14+
15+
// Features to add to the dev container. More info: https://containers.dev/features.
16+
// "features": {},
17+
18+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19+
// "forwardPorts": [],
20+
21+
// Use 'postCreateCommand' to run commands after the container is created.
22+
// "postCreateCommand": "yarn install",
23+
24+
// Configure tool-specific properties.
25+
// "customizations": {},
26+
27+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
28+
// "remoteUser": "root"
29+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('vérifie le chargement de la page', async ({ page }) => {
4+
await page.goto('http://localhost:3000');
5+
const title = await page.title();
6+
expect(title).toBe('David KRK - Techno DJ & Producer'); // Mettez à jour le titre attendu
7+
});

.github/test_dependabot.yml

Whitespace-only changes.

.github/workflows/ci-cd.yml

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy
1+
name: CI/CD
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
jobs:
10-
quality:
10+
quality-checks:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -18,41 +18,31 @@ jobs:
1818
node-version: '20'
1919
cache: 'npm'
2020

21-
- name: Install dependencies
22-
run: npm install
23-
24-
- name: Check HTML files
25-
run: npm run validate:html
26-
27-
- name: Check CSS files
28-
run: npm run validate:css
21+
- run: npm install
22+
- run: npm run validate
2923

3024
build:
31-
needs: quality
25+
needs: quality-checks
3226
runs-on: ubuntu-latest
3327
steps:
3428
- uses: actions/checkout@v4
3529

36-
- name: Setup Node.js
37-
uses: actions/setup-node@v4
30+
- uses: actions/setup-node@v4
3831
with:
3932
node-version: '20'
4033
cache: 'npm'
4134

42-
- name: Install dependencies
43-
run: npm install
44-
45-
- name: Build project
46-
run: npm run build
47-
48-
- name: Upload build artifacts
49-
uses: actions/upload-artifact@v3
35+
- run: npm install
36+
- run: npm run build
37+
38+
- name: List contents of dist/images/optimized
39+
run: |
40+
ls -l dist/images/optimized || echo "No optimized images found"
41+
42+
- uses: actions/upload-artifact@v3
5043
with:
5144
name: dist
52-
path: |
53-
dist/
54-
!dist/node_modules/
55-
!dist/package*.json
45+
path: dist
5646

5747
deploy:
5848
needs: build
@@ -61,23 +51,42 @@ jobs:
6151
steps:
6252
- uses: actions/checkout@v4
6353

64-
- name: Download build artifacts
65-
uses: actions/download-artifact@v3
54+
- uses: actions/download-artifact@v3
6655
with:
6756
name: dist
6857
path: dist
69-
70-
- name: Deploy to GitHub Pages
71-
uses: peaceiris/actions-gh-pages@v3
58+
59+
- name: List contents of dist/images/optimized before deploy
60+
run: |
61+
ls -l dist/images/optimized || echo "No optimized images found"
62+
63+
- uses: peaceiris/actions-gh-pages@v3
7264
with:
7365
github_token: ${{ secrets.GITHUB_TOKEN }}
7466
publish_dir: ./dist
7567
publish_branch: gh-pages
7668
commit_message: "Deploy: ${{ github.event.head_commit.message }}"
7769

78-
- name: Notifier Discord
79-
uses: Ilshidur/action-discord@v1.0.1 # Mettez à jour avec une version qui existe
80-
with:
81-
message: '🚀 Site déployé avec succès : ${{ github.repository }}'
70+
- name: Discord Notification
71+
if: success()
72+
uses: Ilshidur/action-discord@master
73+
with:
74+
args: "🚀 Déploiement réussi: ${{ github.repository }}"
75+
env:
76+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
77+
78+
sync:
79+
needs: deploy
80+
runs-on: ubuntu-latest
81+
steps:
82+
- uses: actions/checkout@v4
83+
84+
- name: Sync files
85+
uses: repo-sync/github-sync@v2
86+
with:
87+
source_repo: 'DavidKRK/DavidKRK.github.io'
88+
source_branch: 'main'
89+
destination_branch: 'gh-pages'
90+
file_patterns: 'images/optimized/*'
8291
env:
83-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: |
18+
echo 'Building the site...'
19+
npm install
20+
npm run build
21+
22+
- name: Deploy
23+
run: |
24+
echo 'Deploying the site...'
25+
npm run deploy
26+
echo 'Déploiement en cours...'
27+
# Exemple de déploiement à GitHub Pages
28+
npm run deploy

.hintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"development"
4+
]
5+
}

.stylelintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore CSS build output (generated by Tailwind, PostCSS, etc.)
2+
dist/output.css

assets/css/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* Ensure :root variables are defined, e.g., in index.html's inline style or move them here */
2+
23
/*
34
:root {
45
--neon-red: #FF0000;
@@ -21,19 +22,20 @@
2122
}
2223

2324
/* Media Queries for Footer Social Links */
24-
@media (max-width: 768px) {
25+
@media (width <= 768px) {
2526
.footer-social-links a {
2627
font-size: 1.3rem;
2728
margin: 0 8px;
2829
}
2930
}
3031

31-
@media (max-width: 480px) {
32+
@media (width <= 480px) {
3233
.footer-social-links { /* Ensure flex display is maintained if needed */
3334
display: flex;
3435
justify-content: center;
3536
margin-bottom: 8px; /* Keep margin from original inline style */
3637
}
38+
3739
.footer-social-links a {
3840
font-size: 1.2rem;
3941
margin: 0 8px;

0 commit comments

Comments
 (0)