This commit is contained in:
neon
2026-04-02 10:33:23 -04:00
parent b9a752df87
commit 0433641ebb
15 changed files with 736 additions and 0 deletions

29
templates/dashboard.html Normal file
View 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/&lt;nazwa&gt; - pobierz hasło użytkownika</p>
<p>GET /api/check/&lt;nazwa&gt; - 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
View 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
View 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
View 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
View 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>