diff --git a/src/server/admin/routes.js b/src/server/admin/routes.js
index 9f09355..408956f 100644
--- a/src/server/admin/routes.js
+++ b/src/server/admin/routes.js
@@ -49,6 +49,11 @@ module.exports = ( app, settings ) => {
} );
} );
+ app.get( '/admin/logout', ( request, response ) => {
+ request.session.loggedIn = false;
+ response.send( 'logged out' );
+ } );
+
/*
main admin panel access route. Will serve an html file
that uses vue.js in its SPA form to make the admin panel
@@ -60,10 +65,18 @@ module.exports = ( app, settings ) => {
if ( settings[ 'init' ] ) {
response.sendFile( path.join( __dirname + '/ui/panel.html' ) );
} else {
- response.sendFile( path.join( __dirname + '/ui/setup.html' ) );
+ response.sendFile( path.join( __dirname + '/ui/welcome.html' ) );
}
} else {
response.redirect( '/admin/login' );
}
} );
+
+ app.get( '/admin/setup', ( request, response ) => {
+ if ( request.session.loggedIn ) {
+ response.sendFile( path.join( __dirname + '/ui/setup.html' ) );
+ } else {
+ response.redirect( '/admin/login' );
+ }
+ } );
};
\ No newline at end of file
diff --git a/src/server/admin/ui/welcome.html b/src/server/admin/ui/welcome.html
new file mode 100644
index 0000000..babd890
--- /dev/null
+++ b/src/server/admin/ui/welcome.html
@@ -0,0 +1,35 @@
+
+
+
+
+
Welcome to myevent!
+

+
myevent, the new way to sell your tickets online!
+
Let's get started setting up your event!
+
Note: As a project licensed under the GNU General Public License Version 3.0-or-later (GPL 3.0+), this software comes with ABSOLUTELY NO WARRANTY TO THE EXTENT PERMITTED BY APPLICABLE LAW
+
Getting Started!
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/website/dist/css/style.css b/website/dist/css/style.css
index 8574efc..3b12a8f 100644
--- a/website/dist/css/style.css
+++ b/website/dist/css/style.css
@@ -21,8 +21,10 @@ body {
}
.dev {
- background-color: red;
+ background-color: rgb(182, 69, 69, 0.9);
+ padding: 10px;
text-align: center;
+ border-radius: 50px;
}
/*
diff --git a/website/dist/nav.html b/website/dist/nav.html
index b4d4cf0..ba50d39 100644
--- a/website/dist/nav.html
+++ b/website/dist/nav.html
@@ -16,7 +16,7 @@