danmia
This commit is contained in:
29
templates/dashboard.html
Normal file
29
templates/dashboard.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Panel użytkownika</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Witaj, {{ user.user }}!</h1>
|
||||
<div class="info">
|
||||
<p><strong>Zalogowany jako:</strong> {{ user.user }}</p>
|
||||
<p><strong>Twoje hasło:</strong> {{ user.password }}</p>
|
||||
</div>
|
||||
|
||||
<a href="/logout" class="logout">Wyloguj się</a>
|
||||
|
||||
<div class="api-info">
|
||||
<h3>Informacje API:</h3>
|
||||
<p>GET /api/users - lista wszystkich użytkowników</p>
|
||||
<p>GET /api/passwd/<nazwa> - pobierz hasło użytkownika</p>
|
||||
<p>GET /api/check/<nazwa> - sprawdź czy użytkownik istnieje</p>
|
||||
<p>Zobacz stronę z CSS:</p>
|
||||
<a href="/css/">Kliknij tutaj, aby przejść</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
19
templates/index.html
Normal file
19
templates/index.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Strona Główna</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Witaj na naszej stronie!</h1>
|
||||
<p>System rejestracji i logowania użytkowników</p>
|
||||
<div class="buttons">
|
||||
<a href="/register" class="btn btn-primary">Rejestracja</a>
|
||||
<a href="/login" class="btn btn-secondary">Logowanie</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
45
templates/index_css.html
Normal file
45
templates/index_css.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Prosta strona z CSS</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f8ff;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
margin-top: 20px;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
background-color: #3498db;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Witaj na mojej prostej stronie!</h1>
|
||||
<p>To jest przykładowa strona HTML z prostym CSS.</p>
|
||||
<a href="/" class="button">Powrót do strony głównej</a>
|
||||
</body>
|
||||
</html>
|
||||
22
templates/login.html
Normal file
22
templates/login.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Logowanie</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Logowanie</h1>
|
||||
<form method="POST">
|
||||
<input type="text" name="username" placeholder="Nazwa użytkownika" required>
|
||||
<input type="password" name="password" placeholder="Hasło" required>
|
||||
<button type="submit">Zaloguj</button>
|
||||
</form>
|
||||
<div class="link">
|
||||
<a href="/register">Nie masz konta? Zarejestruj się</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
23
templates/register.html
Normal file
23
templates/register.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Rejestracja</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Rejestracja</h1>
|
||||
<form method="POST">
|
||||
<input type="text" name="username" placeholder="Nazwa użytkownika" required>
|
||||
<input type="password" name="password" placeholder="Hasło" required>
|
||||
<input type="password" name="confirm_password" placeholder="Potwierdź hasło" required>
|
||||
<button type="submit">Zarejestruj</button>
|
||||
</form>
|
||||
<div class="link">
|
||||
<a href="/login">Masz już konto? Zaloguj się</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user