Skip to content
Snippets Groups Projects
Commit 36c52ecb authored by Quentin Gillot's avatar Quentin Gillot
Browse files

D.2 fini

parent 279d37a1
Branches
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
.pizzaThumbnail { .pizzaThumbnail {
background-color: #fff; background-color: #fff;
} }
.pizzaThumbnail a { .pizzaThumbnail a {
/* background-color: #12161899; */ /* background-color: #12161899; */
background-image: linear-gradient(15deg, #121618ff 40%, #12161855 80%); background-image: linear-gradient(15deg, #121618ff 40%, #12161855 80%);
......
This diff is collapsed.
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"watch": "webpack --mode=development --watch" "watch": "webpack --mode=development --watch"
}, },
"author": "Thomas Fritsch <thomas.fritsch@univ-lille.fr> (https://gitlab.univ-lille.fr/thomas.fritsch)", "author": "Thomas Fritsch <thomas.fritsch@univ-lille.fr> (https://gitlab.univ-lille.fr/thomas.fritsch)",
"homepage": "https://gitlab.univ-lille.fr/js", "homepage": "https://gitlab.univ-lille.fr/js",
...@@ -18,6 +17,7 @@ ...@@ -18,6 +17,7 @@
"@babel/plugin-proposal-class-properties": "^7.12.13", "@babel/plugin-proposal-class-properties": "^7.12.13",
"@babel/preset-env": "^7.12.11", "@babel/preset-env": "^7.12.11",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"prettier": "^2.2.1",
"webpack": "^5.20.1", "webpack": "^5.20.1",
"webpack-cli": "^4.5.0" "webpack-cli": "^4.5.0"
} }
......
class Router {
static titleElement;
static contentElement;
static routes;
constructor (titleElement,contentElement,routes){
this.titleElement=titleElement;
this.contentElement=contentElement;
this.routes=routes;
}
static navigate (path){
titleElement.innerHTML = routes.title.render();
contentElement.innerHTML = routes.pizzaList.render();
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment