mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
progress on setup
This commit is contained in:
17
src/server/admin/ui/css/setupstyle.css
Normal file
17
src/server/admin/ui/css/setupstyle.css
Normal 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;
|
||||
}
|
||||
@@ -4,8 +4,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<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/setupstyle.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
@@ -20,17 +21,17 @@
|
||||
<option value="dark">Dark</option>
|
||||
</select>
|
||||
</div>
|
||||
<a href="https://myevent.janishutz.com"><img src="/assets/logo.png" alt="myevent-logo" style="height: 35vh;"></a>
|
||||
<div class="login-app">
|
||||
<h1>Setup</h1>
|
||||
<footer>myevent - admin panel</footer>
|
||||
<form action="/admin/auth" method="post" class="form">
|
||||
<label for="mail">Email address</label><br>
|
||||
<input type="email" id="mail" name="mail" required class="input"><br>
|
||||
<label for="pwd">Password</label><br>
|
||||
<input type="password" id="pwd" name="pwd" required class="input"><br>
|
||||
<input type="submit" value="Log in" class="button">
|
||||
</form>
|
||||
<div class="setup-app">
|
||||
<div class="setup-page">
|
||||
<h1>Setup</h1>
|
||||
<form action="/admin/auth" method="post" class="form">
|
||||
<label for="mail">Email address</label><br>
|
||||
<input type="email" id="mail" name="mail" required class="input"><br>
|
||||
<label for="pwd">Password</label><br>
|
||||
<input type="password" id="pwd" name="pwd" required class="input"><br>
|
||||
<input type="submit" value="Log in" class="button">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
|
||||
|
||||
@@ -23,6 +23,7 @@ const root = process.env.ROOT || '/order';
|
||||
|
||||
const settings = fs.readFileSync( path.join( __dirname + '/config.json' ) );
|
||||
|
||||
|
||||
// initialise express with middlewares
|
||||
app.use( expressSession( {
|
||||
secret: 'gaoevgoawefgo083tq2rfvöfaf0p8',
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<div class="lang presented" id="en">
|
||||
<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> -->
|
||||
<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 class="lang" id="de">
|
||||
<h1>Willkommen zu myevent!</h1>
|
||||
|
||||
Reference in New Issue
Block a user