Initial commit

This commit is contained in:
Artem Mamonov
2025-02-06 02:36:10 +01:00
commit acf9b43671
24 changed files with 1946 additions and 0 deletions

353
static/style.css Normal file
View File

@@ -0,0 +1,353 @@
/* Existing CSS */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
header {
background-color: #2c3e50;
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.progress-bar {
background-color: #bdc3c7;
border-radius: 10px;
overflow: hidden;
width: 300px;
}
#progress {
background-color: #27ae60;
color: white;
padding: 5px;
text-align: center;
border-radius: 10px 0 0 10px;
}
.main-content {
display: flex;
flex: 1;
overflow: hidden;
}
aside {
background-color: #34495e;
color: white;
padding: 1rem;
width: 200px;
}
aside .btn {
background-color: #27ae60;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
margin-bottom: 1rem;
}
aside nav ul {
list-style: none;
padding: 0;
}
aside nav ul li {
padding: 10px 0;
cursor: pointer;
}
aside nav ul li:hover {
background-color: #2c3e50;
}
.content {
flex: 1;
overflow: auto;
padding: 1rem;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #ecf0f1;
}
tr:hover {
background-color: #f1f1f1;
}
/* New CSS for Login Form */
#login-form {
display: flex;
flex-direction: column;
width: 300px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
background-color: #fff;
}
#login-form h2 {
margin-bottom: 20px;
}
#login-form div {
margin-bottom: 10px;
}
#login-form label {
display: block;
margin-bottom: 5px;
}
#login-form input {
width: 100%;
padding: 8px;
box-sizing: border-box;
}
#login-form button {
padding: 10px;
background-color: #27ae60;
color: white;
border: none;
cursor: pointer;
}
#login-form button:hover {
background-color: #219150;
}
/* New CSS for Album View */
#album-view {
display: flex;
flex-direction: column;
}
#album-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
#image-gallery {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
#image-gallery img, #image-gallery video {
width: 150px;
height: 150px;
object-fit: cover;
cursor: pointer;
}
#progress-bar {
display: none;
background-color: #bdc3c7;
border-radius: 10px;
overflow: hidden;
margin-top: 20px;
}
#upload-progress {
background-color: #27ae60;
color: white;
padding: 5px;
text-align: center;
border-radius: 10px 0 0 10px;
width: 0;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
.modal-nav {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 20px;
transition: 0.6s ease;
user-select: none;
}
#modal-prev {
left: 0;
}
#modal-next {
right: 0;
}
#close-modal {
position: absolute;
top: 15px;
right: 35px;
color: white;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
}
#close-modal:hover,
#close-modal:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* Modal content scaled to viewport */
.modal-content {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.modal-content img, .modal-content video {
max-width: 100%;
max-height: 90vh;
}
/* Add Project Modal */
#add-project-modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
}
#add-project-modal .modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
border-radius: 10px;
width: 40%;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
animation: modalopen 0.5s;
}
@keyframes modalopen {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#add-project-modal .modal-content h2 {
margin-top: 0;
color: #333;
}
#add-project-modal .modal-content form {
display: flex;
flex-direction: column;
}
#add-project-modal .modal-content label {
margin: 10px 0 5px;
}
#add-project-modal .modal-content input[type="text"],
#add-project-modal .modal-content input[type="password"] {
padding: 10px;
margin: 5px 0 15px;
border: 1px solid #ddd;
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
#add-project-modal .modal-content input[type="checkbox"] {
width: auto;
margin-right: 10px;
}
#add-project-modal .modal-content button[type="submit"] {
background-color: #27ae60;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border: none;
border-radius: 4px;
}
#add-project-modal .modal-content button[type="submit"]:hover {
background-color: #219150;
}
#add-project-modal .close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
#add-project-modal .close:hover,
#add-project-modal .close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}