progress on setup

This commit is contained in:
2023-04-04 13:21:31 +02:00
parent cd3f551374
commit 74d5b173cf
4 changed files with 32 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
.setup-app {
border-radius: 50px;
margin-top: 2%;
background-color: var(--secondary-background);
color: var(--primary-color);
height: 85vh;
width: 90%;
}
.setup-page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

View File

@@ -4,8 +4,9 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login :: myevent - admin panel</title> <title>Setup :: myevent - admin panel</title>
<link rel="stylesheet" href="/admin/css/loginstyle.css"> <link rel="stylesheet" href="/admin/css/loginstyle.css">
<link rel="stylesheet" href="/admin/css/setupstyle.css">
</head> </head>
<body> <body>
<div class="content"> <div class="content">
@@ -20,17 +21,17 @@
<option value="dark">Dark</option> <option value="dark">Dark</option>
</select> </select>
</div> </div>
<a href="https://myevent.janishutz.com"><img src="/assets/logo.png" alt="myevent-logo" style="height: 35vh;"></a> <div class="setup-app">
<div class="login-app"> <div class="setup-page">
<h1>Setup</h1> <h1>Setup</h1>
<footer>myevent - admin panel</footer> <form action="/admin/auth" method="post" class="form">
<form action="/admin/auth" method="post" class="form"> <label for="mail">Email address</label><br>
<label for="mail">Email address</label><br> <input type="email" id="mail" name="mail" required class="input"><br>
<input type="email" id="mail" name="mail" required class="input"><br> <label for="pwd">Password</label><br>
<label for="pwd">Password</label><br> <input type="password" id="pwd" name="pwd" required class="input"><br>
<input type="password" id="pwd" name="pwd" required class="input"><br> <input type="submit" value="Log in" class="button">
<input type="submit" value="Log in" class="button"> </form>
</form> </div>
</div> </div>
</div> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>

View File

@@ -23,6 +23,7 @@ const root = process.env.ROOT || '/order';
const settings = fs.readFileSync( path.join( __dirname + '/config.json' ) ); const settings = fs.readFileSync( path.join( __dirname + '/config.json' ) );
// initialise express with middlewares // initialise express with middlewares
app.use( expressSession( { app.use( expressSession( {
secret: 'gaoevgoawefgo083tq2rfvöfaf0p8', secret: 'gaoevgoawefgo083tq2rfvöfaf0p8',

View File

@@ -63,7 +63,7 @@
<div class="lang presented" id="en"> <div class="lang presented" id="en">
<h1>Welcome to myevent!</h1> <h1>Welcome to myevent!</h1>
<!-- <p>Thank you for installing and using myevent! Let's get started by setting it up! First plan of action is to log in to the admin panel where you can replace this page here with your own landing page!</p> --> <!-- <p>Thank you for installing and using myevent! Let's get started by setting it up! First plan of action is to log in to the admin panel where you can replace this page here with your own landing page!</p> -->
<a href="/admin/login" class="button" onclick="sessionStorage.setItem( 'lang', 'de' )">To the admin panel</a> <a href="/admin/login" class="button" onclick="sessionStorage.setItem( 'lang', 'en' )">To the admin panel</a>
</div> </div>
<div class="lang" id="de"> <div class="lang" id="de">
<h1>Willkommen zu myevent!</h1> <h1>Willkommen zu myevent!</h1>