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 {
background-color: $blue_2;
color: white;
}
.bg-dark {
background-color: $dark_2;
color: $light_2;
}
#seo-title {
visibility: hidden;
}
......
......@@ -3,17 +3,15 @@
const { images_url } = require("../../../constants");
const NAV_MENU_ITEMS = [
["/games/", "Jeux"],
[
"/education/",
"Pédagogie",
[
// submenu
["/education/#game-studio-club", "Game Studio Club"],
["/education/#popularization", "Vulgarisation numérique"],
],
],
["/software-development/", "Software"],
{ url: "/games/", text: "Jeux" },
{
url: "/education/",
text: "Pédagogie",
// submenu: [
// { url: "/gamedev", text: "Création de jeux vidéo" },
// ]
},
{ url: "/software-development/", text: "Software" }
];
class NavBar {
......@@ -63,13 +61,14 @@ class NavBar {
};
}
renderMenu(menuItemsArray, isSubmenu = false) {
renderMenu(menuItemsArray, isSubmenu = false, parentUrl = "") {
return {
tag: "ul",
id: "nav-menu-list",
class: isSubmenu ? "submenu" : "",
contents: menuItemsArray.map(link => {
const [href, text, submenu] = link;
contents: menuItemsArray.map(item => {
const { url, text, submenu } = item;
const href = `${parentUrl}${url}`;
return {
tag: "li",
class: !isSubmenu && window.location.pathname === href ? "active" : "",
......@@ -79,7 +78,7 @@ class NavBar {
href,
contents: text,
},
].concat(submenu ? [this.renderMenu(submenu, true)] : []),
].concat(submenu ? [this.renderMenu(submenu, true, url)] : []),
};
}),
};
......
......@@ -54,13 +54,12 @@ class Template {
},
{
tag: "span",
contents:
"<b><blue>Où sommes-nous ? </blue></b>32 rue Simon Vialet, 07240 Vernoux en Vivarais. Ardèche, France",
contents: "32 rue Simon Vialet, 07240 Vernoux en Vivarais. Ardèche, France",
},
{
tag: "div",
contents: [
{ tag: "strong", contents: "<blue>Nous contacter : </blue>" },
{ tag: "strong", contents: "<blue>Contact : </blue>" },
{
tag: "a",
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