+
{name}
+
{description.slice(0, 14)} ...
+
+
+ videos:{videos.length}
+ {' '}
+
+
+ links:{links.length}
+
+
+
{' '}
+ >
+ )
+}
diff --git a/data/fakeExercise.json b/data/fakeExercise.json
deleted file mode 100644
index 0a9f7c6e..00000000
--- a/data/fakeExercise.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name":"01 - Hello There",
- "description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sit amet dolor sit amet lectus consequat condimentum. Morbi ultrices vitae nulla a mollis. Suspendisse arcu leo, finibus in accumsan ut, ultrices dictum metus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut accumsan vitae nisi vel porttitor. Nullam hendrerit nibh a sapien sagittis dignissim. Fusce suscipit nisl vel eros volutpat venenatis. Duis nec vehicula magna. Sed varius dictum quam, ac tempus augue rhoncus ac.",
- "instructions":["create a variable", "create a constante", "create a condition"],
- "notions": ["Basics Programming","Loop","Iteraction"]
-}
diff --git a/data/fakeRessources.json b/data/fakeRessources.json
new file mode 100644
index 00000000..8489a3c5
--- /dev/null
+++ b/data/fakeRessources.json
@@ -0,0 +1,32 @@
+{
+ "js-loop":{
+ "description":"lorem ipsum mkjdsqflk mlkjdflksdf mjdqslmkf mkjdsflk djmjdflk",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ },
+ "js-variables":{
+ "description":"lorem ipsum",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ },
+ "js-boucles":{
+ "description":"lorem ipsum",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ },
+ "js-conditions":{
+ "description":"lorem ipsum",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ },
+ "js-jest":{
+ "description":"lorem ipsum",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ },
+ "js-object":{
+ "description":"lorem ipsum",
+ "videos":[{"name":"learn variabe","link":"https://google.com"},{"name":"learn variabe","link":"https://google.com"}],
+ "links":[{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"},{"name":"variabe pdf","link":"https://pdf.com"}]
+ }
+}
diff --git a/page/exercise.jsx b/page/exercise.jsx
deleted file mode 100644
index 4e548efb..00000000
--- a/page/exercise.jsx
+++ /dev/null
@@ -1,134 +0,0 @@
-import { css } from '../lib/dom.js'
-import { Main, Div, P } from '../component/elements.jsx'
-import { name, description } from '../data/fakeExercise.json'
-
-css(`
- .exercise{
- width:100%;
- height: auto;
- }
-
- .exercise>h1 {
- font-size: 2rem;
- font-weight:bolder;
- }
-
-
-
- .exercise>hr {
- width: 100%;
- height:2px;
- background: grey;
- margin-top: 5px;
- }
-
- .exercise p.description {
- white-space:normal !important;
- background: #090c12a8;
- color: grey;
- margin: 10px auto;
- padding:1rem;
- border-radius:0.3rem;
- }
-
- .exercise .instructions h3{
- font-size:2rem;
- }
-
- .exercise .instructions ul {
- margin-left:50px;
- }
-
- .exercise .instructions ul li {
- display:block;
- margin:7px auto;
- font-weight:bolder;
- font-size:1.2rem;
- }
-
- .exercise .instructions ul li:before {
- content:'👉';
- font-size: 1.5rem;
- margin-right:10px;
-
- }
-
- .exercise .notions {
- width:100%;
- height: auto;
- padding: 0.5rem;
- border-radius: 0.7rem;
- background:#110909;
- margin-top: 18px;
- }
-
- .exercise .notions h1 {
- font-size:1.7rem;
- margin-top: -18px;
- }
-
- .exercise .notions h1 span {
- color: yellow;
- font-weight:bolder;
- font-size: 3rem;
- margin-right: 10px;
- }
-
- .exercise .notions p{
- white-space:normal !important;
- font-size:1.2rem;
- }
-
- .exercise .notions ul {
- margin-top: 10px;
- }
-
- .exercise .notions ul li {
- display:block;
- width:0px;
- background: grey;
- font-size:1rem;
- margin: 7px 0;
- cursor:pointer;
- font-style:oblique;
- }
-
- .exercise .notions ul li:hover{
- color: skyblue;
- font-weight:bolder;
- }
-
- .exercise .notions ul li:before{
- content:'🔗';
- font-size: 1rem;
- }
-
-`)
-export const Exercise = () => (
-