From 24f60f3334e42f7229975944c6d79d0e86fe40b2 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Wed, 10 Jul 2019 17:21:54 +0200
Subject: [PATCH] Review the router and archi

---
 src/includes/mentor/create.pug |  7 +++++++
 src/includes/mentor/login.pug  |  3 +++
 src/index.pug                  | 15 ++++++++++++++-
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/src/includes/mentor/create.pug b/src/includes/mentor/create.pug
index e69de29b..71ce5c03 100644
--- a/src/includes/mentor/create.pug
+++ b/src/includes/mentor/create.pug
@@ -0,0 +1,7 @@
+h2 Create a mentor account
+
+details
+    summary All available fields:
+        sib-form(
+            data-src=`${endpoints.users}`
+        )
diff --git a/src/includes/mentor/login.pug b/src/includes/mentor/login.pug
index 005ae884..5bef16a4 100644
--- a/src/includes/mentor/login.pug
+++ b/src/includes/mentor/login.pug
@@ -8,3 +8,6 @@ form(method='POST' action='/login')
         label(for='password') Password
         input.form-control(type='password' id='password' placeholder='password' name='password')
     button.btn.btn-primary(type='submit') Log in 
+
+sib-link(next='mentor-new-account')
+    div Create an account
\ No newline at end of file
diff --git a/src/index.pug b/src/index.pug
index c8374c44..3ebd83f0 100644
--- a/src/index.pug
+++ b/src/index.pug
@@ -1,6 +1,19 @@
 doctype html
 html
     include includes/head.pug
+
+    sib-router(default-route='splash')
+        sib-route(name='splash')
+        sib-route(name='mentor-new-account')
+        sib-route(name='entrepreneur-new-account')
     body
-        include includes/splash.pug
+        #splash(hidden).no-sidebar
+            include includes/splash.pug
+
+        #mentor-new-account(hidden).no-sidebar
+            include includes/mentor/create.pug
+
+        #entrepreneur-new-account(hidden).no-sidebar
+            include includes/entrepreneur/create.pug
+        
 
-- 
GitLab