├── TP1 ├── correction │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next.config.mjs │ ├── package-lock.json │ ├── package.json │ ├── postcss.config.mjs │ ├── public │ │ ├── next.svg │ │ └── vercel.svg │ ├── src │ │ └── app │ │ │ ├── blog │ │ │ ├── [id] │ │ │ │ └── page.tsx │ │ │ └── page.tsx │ │ │ ├── datas.ts │ │ │ ├── favicon.ico │ │ │ ├── globals.css │ │ │ ├── layout.tsx │ │ │ ├── page.tsx │ │ │ └── types.ts │ ├── tailwind.config.ts │ └── tsconfig.json └── enonce │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── next.config.mjs │ ├── package-lock.json │ ├── package.json │ ├── postcss.config.mjs │ ├── public │ ├── next.svg │ └── vercel.svg │ ├── src │ └── app │ │ ├── data.ts │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.tsx │ │ ├── page.tsx │ │ └── types.ts │ ├── tailwind.config.ts │ └── tsconfig.json └── tp2 ├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.mjs ├── package-lock.json ├── package.json ├── postcss.config.mjs ├── public ├── minerals.png └── vitamins.png ├── src ├── app │ ├── api │ │ └── foods │ │ │ ├── [name] │ │ │ └── route.ts │ │ │ └── all │ │ │ └── route.ts │ ├── favicon.ico │ ├── food │ │ └── [name] │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ └── ui │ │ ├── button.tsx │ │ ├── command.tsx │ │ ├── dialog.tsx │ │ └── popover.tsx ├── data.ts ├── lib │ └── utils.ts └── types │ └── index.ts ├── tailwind.config.ts └── tsconfig.json /TP1/correction/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /TP1/correction/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/.gitignore -------------------------------------------------------------------------------- /TP1/correction/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/README.md -------------------------------------------------------------------------------- /TP1/correction/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/next.config.mjs -------------------------------------------------------------------------------- /TP1/correction/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/package-lock.json -------------------------------------------------------------------------------- /TP1/correction/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/package.json -------------------------------------------------------------------------------- /TP1/correction/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/postcss.config.mjs -------------------------------------------------------------------------------- /TP1/correction/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/public/next.svg -------------------------------------------------------------------------------- /TP1/correction/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/public/vercel.svg -------------------------------------------------------------------------------- /TP1/correction/src/app/blog/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/blog/[id]/page.tsx -------------------------------------------------------------------------------- /TP1/correction/src/app/blog/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/blog/page.tsx -------------------------------------------------------------------------------- /TP1/correction/src/app/datas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/datas.ts -------------------------------------------------------------------------------- /TP1/correction/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/favicon.ico -------------------------------------------------------------------------------- /TP1/correction/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/globals.css -------------------------------------------------------------------------------- /TP1/correction/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/layout.tsx -------------------------------------------------------------------------------- /TP1/correction/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/page.tsx -------------------------------------------------------------------------------- /TP1/correction/src/app/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/src/app/types.ts -------------------------------------------------------------------------------- /TP1/correction/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/tailwind.config.ts -------------------------------------------------------------------------------- /TP1/correction/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/correction/tsconfig.json -------------------------------------------------------------------------------- /TP1/enonce/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /TP1/enonce/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/.gitignore -------------------------------------------------------------------------------- /TP1/enonce/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/README.md -------------------------------------------------------------------------------- /TP1/enonce/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/next.config.mjs -------------------------------------------------------------------------------- /TP1/enonce/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/package-lock.json -------------------------------------------------------------------------------- /TP1/enonce/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/package.json -------------------------------------------------------------------------------- /TP1/enonce/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/postcss.config.mjs -------------------------------------------------------------------------------- /TP1/enonce/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/public/next.svg -------------------------------------------------------------------------------- /TP1/enonce/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/public/vercel.svg -------------------------------------------------------------------------------- /TP1/enonce/src/app/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/data.ts -------------------------------------------------------------------------------- /TP1/enonce/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/favicon.ico -------------------------------------------------------------------------------- /TP1/enonce/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/globals.css -------------------------------------------------------------------------------- /TP1/enonce/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/layout.tsx -------------------------------------------------------------------------------- /TP1/enonce/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/page.tsx -------------------------------------------------------------------------------- /TP1/enonce/src/app/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/src/app/types.ts -------------------------------------------------------------------------------- /TP1/enonce/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/tailwind.config.ts -------------------------------------------------------------------------------- /TP1/enonce/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/TP1/enonce/tsconfig.json -------------------------------------------------------------------------------- /tp2/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /tp2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/.gitignore -------------------------------------------------------------------------------- /tp2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/README.md -------------------------------------------------------------------------------- /tp2/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/components.json -------------------------------------------------------------------------------- /tp2/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/next.config.mjs -------------------------------------------------------------------------------- /tp2/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/package-lock.json -------------------------------------------------------------------------------- /tp2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/package.json -------------------------------------------------------------------------------- /tp2/postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/postcss.config.mjs -------------------------------------------------------------------------------- /tp2/public/minerals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/public/minerals.png -------------------------------------------------------------------------------- /tp2/public/vitamins.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/public/vitamins.png -------------------------------------------------------------------------------- /tp2/src/app/api/foods/[name]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/api/foods/[name]/route.ts -------------------------------------------------------------------------------- /tp2/src/app/api/foods/all/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/api/foods/all/route.ts -------------------------------------------------------------------------------- /tp2/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/favicon.ico -------------------------------------------------------------------------------- /tp2/src/app/food/[name]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/food/[name]/layout.tsx -------------------------------------------------------------------------------- /tp2/src/app/food/[name]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/food/[name]/page.tsx -------------------------------------------------------------------------------- /tp2/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/globals.css -------------------------------------------------------------------------------- /tp2/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/layout.tsx -------------------------------------------------------------------------------- /tp2/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/app/page.tsx -------------------------------------------------------------------------------- /tp2/src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/components/ui/button.tsx -------------------------------------------------------------------------------- /tp2/src/components/ui/command.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/components/ui/command.tsx -------------------------------------------------------------------------------- /tp2/src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /tp2/src/components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/components/ui/popover.tsx -------------------------------------------------------------------------------- /tp2/src/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/data.ts -------------------------------------------------------------------------------- /tp2/src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/lib/utils.ts -------------------------------------------------------------------------------- /tp2/src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/src/types/index.ts -------------------------------------------------------------------------------- /tp2/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/tailwind.config.ts -------------------------------------------------------------------------------- /tp2/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenBktech/Formation-NextJS/HEAD/tp2/tsconfig.json --------------------------------------------------------------------------------