Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 8d6f5cf4 authored by Pierre Jarriges's avatar Pierre Jarriges
Browse files

feat: new education page

parent 7f6f054b
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,12 @@ body { ...@@ -33,6 +33,12 @@ body {
background-color: $blue_2; background-color: $blue_2;
color: white; color: white;
} }
.bg-dark {
background-color: $dark_2;
color: $light_2;
}
#seo-title { #seo-title {
visibility: hidden; visibility: hidden;
} }
......
...@@ -3,17 +3,15 @@ ...@@ -3,17 +3,15 @@
const { images_url } = require("../../../constants"); const { images_url } = require("../../../constants");
const NAV_MENU_ITEMS = [ const NAV_MENU_ITEMS = [
["/games/", "Jeux"], { url: "/games/", text: "Jeux" },
[ {
"/education/", url: "/education/",
"Pédagogie", text: "Pédagogie",
[ // submenu: [
// submenu // { url: "/gamedev", text: "Création de jeux vidéo" },
["/education/#game-studio-club", "Game Studio Club"], // ]
["/education/#popularization", "Vulgarisation numérique"], },
], { url: "/software-development/", text: "Software" }
],
["/software-development/", "Software"],
]; ];
class NavBar { class NavBar {
...@@ -63,13 +61,14 @@ class NavBar { ...@@ -63,13 +61,14 @@ class NavBar {
}; };
} }
renderMenu(menuItemsArray, isSubmenu = false) { renderMenu(menuItemsArray, isSubmenu = false, parentUrl = "") {
return { return {
tag: "ul", tag: "ul",
id: "nav-menu-list", id: "nav-menu-list",
class: isSubmenu ? "submenu" : "", class: isSubmenu ? "submenu" : "",
contents: menuItemsArray.map(link => { contents: menuItemsArray.map(item => {
const [href, text, submenu] = link; const { url, text, submenu } = item;
const href = `${parentUrl}${url}`;
return { return {
tag: "li", tag: "li",
class: !isSubmenu && window.location.pathname === href ? "active" : "", class: !isSubmenu && window.location.pathname === href ? "active" : "",
...@@ -79,7 +78,7 @@ class NavBar { ...@@ -79,7 +78,7 @@ class NavBar {
href, href,
contents: text, contents: text,
}, },
].concat(submenu ? [this.renderMenu(submenu, true)] : []), ].concat(submenu ? [this.renderMenu(submenu, true, url)] : []),
}; };
}), }),
}; };
......
...@@ -54,13 +54,12 @@ class Template { ...@@ -54,13 +54,12 @@ class Template {
}, },
{ {
tag: "span", tag: "span",
contents: contents: "32 rue Simon Vialet, 07240 Vernoux en Vivarais. Ardèche, France",
"<b><blue>Où sommes-nous ? </blue></b>32 rue Simon Vialet, 07240 Vernoux en Vivarais. Ardèche, France",
}, },
{ {
tag: "div", tag: "div",
contents: [ contents: [
{ tag: "strong", contents: "<blue>Nous contacter : </blue>" }, { tag: "strong", contents: "<blue>Contact : </blue>" },
{ {
tag: "a", tag: "a",
href: "mailto:contact@kuadrado-software.fr", href: "mailto:contact@kuadrado-software.fr",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment