diff --git a/src/public/javascript/app.js b/src/public/javascript/app.js new file mode 100644 index 0000000..aa28857 --- /dev/null +++ b/src/public/javascript/app.js @@ -0,0 +1,10 @@ +const navbuttonHome = document.getElementById('navbutton-home'); +const navbuttonOffers = document.getElementById('navbutton-offers'); + +navbuttonHome.addEventListener('click', () => { + window.location.href = '/home'; +}); + +navbuttonOffers.addEventListener('click', () => { + window.location.href = '/offers'; +}); diff --git a/src/public/javascript/home.js b/src/public/javascript/home.js new file mode 100644 index 0000000..e69de29 diff --git a/src/public/javascript/offers.js b/src/public/javascript/offers.js new file mode 100644 index 0000000..e69de29 diff --git a/src/views/home.ejs b/src/views/home.ejs index 175f08f..f774225 100644 --- a/src/views/home.ejs +++ b/src/views/home.ejs @@ -10,10 +10,13 @@

la seca

- - - - + + + +
+ + <%- include("partials/appCommonScripts") %> + diff --git a/src/views/offers.ejs b/src/views/offers.ejs new file mode 100644 index 0000000..468cc50 --- /dev/null +++ b/src/views/offers.ejs @@ -0,0 +1,29 @@ + + + + Seca home + + + + + + +
+

la seca

+ + + + +
+ +
+ +
+

Let's create your offer

+
+
+ + <%- include("partials/appCommonScripts") %> + + + diff --git a/src/views/partials/appCommonScripts.ejs b/src/views/partials/appCommonScripts.ejs new file mode 100644 index 0000000..1df2d83 --- /dev/null +++ b/src/views/partials/appCommonScripts.ejs @@ -0,0 +1 @@ +