feat: add new features including SEO, sitemap, and subjects management

- Create robots.txt to allow search engine indexing and specify sitemap location.
- Implement ajouterSujet.js for adding new subjects to sujets.json.
- Develop dynamic subject pages in page.tsx using static generation with metadata.
- Add contact, error, not found, and privacy policy pages for improved user experience.
- Generate sitemap.xml for better search engine visibility.
- Create SEO component for managing page metadata.
- Populate sujets.json with detailed subject information for dynamic content rendering.
This commit is contained in:
Puechberty Arthur
2026-03-30 22:42:27 +02:00
parent 235182593e
commit 5bf8a8d60f
32 changed files with 1962 additions and 112 deletions
+55 -20
View File
@@ -1,36 +1,71 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
# Learn - Site de sujets populaires
## Getting Started
Application Next.js orientee SEO qui publie des pages de contenu autour de sujets populaires.
First, run the development server:
Site en ligne: https://learn.arthurp.fr
## Objectif
- Publier des pages categories optimisees SEO
- Gerer une base de sujets via un fichier JSON
- Proposer une structure simple a maintenir et deployee facilement
## Stack technique
- Next.js 16 (App Router)
- React 19
- TypeScript
- Tailwind CSS 4
## Structure principale
- src/app: pages et routes
- src/components: composants reutilisables (SEO, etc.)
- src/data/sujets.json: donnees de contenu
- public/images: images statiques
- scripts/ajouterSujet.js: script utilitaire pour ajouter un sujet
## Lancer en local
Prerequis:
- Node.js 20+
- npm
Installation et lancement:
```bash
npm install
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Application disponible sur http://localhost:3000
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
## Scripts utiles
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
- npm run dev: demarrage en mode developpement
- npm run build: build de production
- npm run start: lancement de la build
- npm run lint: verification ESLint
## Learn More
## Deploiement
To learn more about Next.js, take a look at the following resources:
Build de verification avant publication:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
```bash
npm run lint
npm run build
```
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
Ensuite, pousser sur GitHub puis deployer sur la plateforme cible.
## Deploy on Vercel
## SEO et backlinks
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
- URL principale: https://learn.arthurp.fr
- Ce depot documente le projet public pour renforcer le maillage vers le site principal.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
## Securite avant push
- Les fichiers d'environnement (.env*) sont ignores
- Les fichiers locaux VS Code (.vscode/) sont ignores
- Verifier qu'aucune cle API ou secret n'est commite avant publication