Changes to be committed:

modified:   app.py
	modified:   init_db.py
	modified:   static/styles.css
	modified:   templates/index.html
	new file:   templates/login.html
	new file:   templates/register.html
This commit is contained in:
2025-07-02 15:04:21 +03:00
parent 5a43fbbfc7
commit 7d00cf062e
7 changed files with 354 additions and 74 deletions

View File

@@ -335,4 +335,128 @@ input[type="radio"]:checked + .radio-custom.expense {
.category-list {
grid-template-columns: 1fr;
}
}
/* Стили для аутентификации */
.auth-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
}
.auth-card {
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
padding: 30px;
width: 100%;
max-width: 500px;
}
.auth-card h1 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.auth-links {
margin-top: 20px;
text-align: center;
}
.auth-links a {
color: #3498db;
text-decoration: none;
}
.auth-links a:hover {
text-decoration: underline;
}
.login-btn {
background: #3498db;
color: white;
width: 100%;
padding: 12px;
font-size: 1.1rem;
}
.register-btn {
background: #2ecc71;
color: white;
width: 100%;
padding: 12px;
font-size: 1.1rem;
}
.remember {
display: flex;
align-items: center;
gap: 10px;
}
/* Меню пользователя */
.user-menu {
position: absolute;
top: 20px;
right: 20px;
display: flex;
align-items: center;
gap: 15px;
color: white;
font-weight: 500;
}
.dropbtn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
border-radius: 50px;
padding: 8px 15px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
font-size: 1rem;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
right: 0;
background: white;
min-width: 160px;
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 5px;
overflow: hidden;
}
.dropdown-content a {
color: #2c3e50;
padding: 12px 16px;
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
}
.dropdown-content a:hover {
background: #f5f5f5;
}
.dropdown:hover .dropdown-content {
display: block;
}