Skip to content
Snippets Groups Projects
Commit 6825d0c8 authored by Burhan Akbar's avatar Burhan Akbar
Browse files

update styling a lil bit & Add hospital feature (demo)

parent 85bd2c9d
No related branches found
No related tags found
1 merge request!40Update beds with sql db
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.sidebar {
position: fixed;
top: 0;
left: 0;
width: 250px;
height: 100vh;
background-color: #1f2937;
color: white;
padding: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sidebar .text-lg {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 1rem;
}
.sidebar a {
padding: 0.75rem 1rem;
margin-bottom: 0.5rem;
color: white;
text-decoration: none;
border-radius: 0.5rem;
transition: background-color 0.3s ease;
}
.sidebar a:hover {
background-color: #4b5563;
}
.content {
margin-left: 250px;
padding: 2rem;
}
.table-container {
margin-top: 2rem;
padding: 1rem;
background: white;
border-radius: 8px;
box-shadow: 0 4px 6px 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: #f9fafb;
color: #333;
}
td {
background-color: #ffffff;
}
button {
padding: 0.5rem 1rem;
margin: 0.5rem;
border-radius: 0.375rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
}
button:hover {
background-color: #4b5563;
color: white;
}
#modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
width: 80%;
max-width: 600px;
}
.modal-content input,
.modal-content textarea {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border-radius: 0.375rem;
border: 1px solid #ccc;
}
.modal-footer {
display: flex;
justify-content: flex-end;
}
.modal-footer button {
padding: 0.75rem 1.5rem;
margin-left: 1rem;
border-radius: 0.375rem;
}
/* Base Styles */
body {
font-family: 'Arial', sans-serif;
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f9;
color: #333;
background: linear-gradient(135deg, #f6f8fd 0%, #f1f4f9 100%);
color: #2c3e50;
}
/* Header */
/* Header Styling */
header {
background-color: #003366;
background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
color: white;
text-align: center;
padding: 20px 0;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
padding: 2rem 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
header h1 {
margin: 0;
font-size: 2.5rem;
margin: 0;
font-weight: 600;
letter-spacing: 0.5px;
}
header p {
margin: 10px 0 0;
font-size: 1.1rem;
margin-top: 0.5rem;
opacity: 0.9;
}
/* Main Container */
.main-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
}
/* Toolbar */
/* Toolbar Section */
#toolbar {
background: white;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
margin-bottom: 2rem;
display: flex;
gap: 15px;
padding: 20px;
background-color: #ffffff;
margin: 20px auto;
border-radius: 8px;
max-width: 1200px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
/* Input Fields */
.searchBox {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
flex: 1;
}
/* Buttons */
.btn {
padding: 10px 20px;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.1s ease;
}
.search-btn {
background-color: #007bff;
color: white;
}
.search-btn:hover {
background-color: #0056b3;
}
.add-btn {
background-color: #28a745;
color: white;
padding: 0.75rem 1rem;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 0.95rem;
transition: all 0.3s ease;
min-width: 200px;
}
.add-btn:hover {
background-color: #218838;
.searchBox:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
outline: none;
}
/* Table Styles */
/* Table Styling */
.table-container {
padding: 20px;
background-color: white;
border-radius: 8px;
max-width: 1200px;
margin: 0 auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
overflow: hidden;
margin-bottom: 2rem;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
border-collapse: collapse;
th {
background: #f8fafc;
color: #1f2937;
font-weight: 600;
padding: 1.25rem 1rem;
text-align: left;
border-bottom: 2px solid #e5e7eb;
}
table th, table td {
padding: 10px 15px;
border: 1px solid #ddd;
td {
padding: 1.25rem 1rem;
border-bottom: 1px solid #e5e7eb;
color: #4b5563;
}
tr:hover td {
background-color: #f8fafc;
}
/* Button Styling */
.btn {
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 0.95rem;
}
table th {
background-color: #003366;
.primary-btn {
background: #3b82f6;
color: white;
}
table tbody tr:nth-child(even) {
background-color: #f9f9f9;
.primary-btn:hover {
background: #2563eb;
transform: translateY(-1px);
}
table tbody tr:hover {
background-color: #f1f1f1;
.secondary-btn {
background: #e5e7eb;
color: #4b5563;
}
.secondary-btn:hover {
background: #d1d5db;
}
/* Modal Styles */
#overlay {
display: none;
/* Modal Styling */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(4px);
}
#formContainer {
background-color: white;
padding: 20px;
border-radius: 10px;
max-width: 500px;
margin: 100px auto;
position: relative;
text-align: left;
.modal {
background: white;
border-radius: 12px;
padding: 2rem;
width: 90%;
max-width: 600px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
#formContainer h2 {
margin-top: 0;
color: #333;
.modal-header {
margin-bottom: 1.5rem;
}
.modal-header h2 {
font-size: 1.5rem;
color: #1f2937;
margin: 0;
}
.form-group {
margin-bottom: 1.5rem;
}
#formContainer form input,
#formContainer form button {
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #4b5563;
font-weight: 500;
}
.form-group input {
width: 100%;
margin-bottom: 15px;
padding: 0.75rem;
border: 2px solid #e5e7eb;
border-radius: 8px;
transition: all 0.3s ease;
}
.form-group input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
outline: none;
}
/* Status Indicators */
.status-badge {
padding: 0.5rem 1rem;
border-radius: 9999px;
font-size: 0.875rem;
font-weight: 500;
display: inline-block;
}
.cancel-btn {
.status-available {
background: #dcfce7;
color: #166534;
}
background-color: #dc3545;
.status-limited {
background: #fff7ed;
color: #9a3412;
}
color: white;
.status-full {
background: #fef2f2;
color: #991b1b;
}
/* Footer */
footer {
text-align: center;
padding: 2rem 0;
color: #6b7280;
font-size: 0.875rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.main-container {
padding: 0 1rem;
}
#toolbar {
flex-direction: column;
align-items: stretch;
}
.cancel-btn:hover {
.searchBox {
width: 100%;
}
background-color: #c82333;
th, td {
padding: 1rem 0.75rem;
}
.btn {
width: 100%;
margin-bottom: 0.5rem;
}
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "poppins",sans-serif;
}
body{
/*height: 100vh;*/
width: 100%;
background: #000;
}
.background{
background: url(../img/backgroud3.jpg) no-repeat;
background-position: center;
background-size:cover ;
height: 100vh;
width: 100%;
filter: blur(10px);
}
.header{
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 25px 13%;
background: transparent;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.navbar a{
position: relative;
font-size: 16px;
color: black;
margin-right: 30px;
text-decoration: none;
}
.navbar a::after{
content: "";
position: absolute;
left: 0;
width: 100%;
height: 2px;
background: black;
bottom: -5px;
border-radius: 5px;
transform: translateY(10px);
opacity: 0;
transition: .5s ease;
}
.navbar a:hover:after{
transform: translateY(0);
opacity: 1;
}
.search-bar{
width: 250px;
height: 45px;
background-color: transparent;
border: 2px solid #000000;
border-radius: 6px;
display: flex;
align-items: center;
}
.search-bar input{
width: 100%;
background-color: transparent;
border: none;
outline: none;
color: black;
font-size: 16px;
padding-left: 10px;
}
.search-bar button{
width: 40px;
height: 100%;
background: transparent;
outline: none;
border: none;
color:black;
cursor: pointer;
}
.search-bar input::placeholder{
color: black;
}
.search-bar button i{
font-size: 22px;
}
.container{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
width: 75%;
height: 550px;
margin-top: 20px;
background: url(../img/backgroud3.jpg) no-repeat;
background-position: center;
background-size:cover ;
border-radius: 20px;
overflow: hidden;
}
.item{
position: absolute;
top: 0;
left: 0;
width: 58%;
height: 100%;
color: black;
background: transparent;
padding: 80px;
display: flex;
justify-content: space-between;
flex-direction: column;
}
.item .logo{
color: black;
font-size: 30px;
}
.text-item h2{
font-size: 40px;
line-height: 1;
}
.text-item p{
font-size: 16px;
margin: 20px 0;
}
.social-icon a i{
color: black;
font-size: 24px;
margin-left: 10px;
cursor: pointer;
transition: .5s ease;
}
.social-icon a:hover i{
transform: scale(1.2);
}
.container .login-section{
position: absolute;
top: 0;
right: 0;
width: calc(100% - 58%);
height: 100%;
color: black;
backdrop-filter: blur(10px);
}
.form-box .input-box{
width: 340px;
height: 50px;
border-bottom: 2px solid #000000;
margin: 30px 0;
position: relative;
}
.input-box input{
width: 100%;
height: 100%;
background: transparent;
border: none;
outline: none;
font-size: 16px;
padding-right: 28px;
}
.input-box label{
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
font-size: 16px;
font-weight: 600px;
pointer-events: none;
transition: .5s ease;
}
.input-box .icon{
position: absolute;
top: 13px;
right: 0;
font-size: 19px;
}
.input-box input:focus~ label,
.input-box input:valid~ label{
top: -5px;
}
.remember-password{
font-size: 14px;
font-weight: 500;
margin: -15px 0 15px ;
display: flex;
justify-content: space-between;
}
.remember-password label input{
accent-color: black;
margin-right: 3px;
}
.remember-password a{
color: black;
text-decoration: none;
}
.remember-password a:hover{
text-decoration: underline;
}
.btn{
background: black;
width: 100%;
height: 45px;
outline: none;
border: none;
border-radius: 4px;
cursor: pointer;
background: #84b9db;
font-size: 16px;
color: black;
box-shadow: rgba(0,0,0,0.4);
}
.create-account{
font-size: 14.5px;
text-align: center;
margin: 25px;
}
.create-account p a{
color: black;
font-weight: 600px;
text-decoration: none;
}
.create-account p a:hover{
text-decoration: underline;
}
/* Input Box */
.input-box {
width: 340px;
height: 50px;
border-bottom: 2px solid #000000;
margin: 30px 0;
position: relative;
}
.input-box input,
.input-box select {
width: 100%;
height: 100%;
background: transparent;
border: none;
outline: none;
font-size: 16px;
color: black;
padding-right: 28px;
appearance: none;
}
.input-box label {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
font-size: 16px;
pointer-events: none;
transition: .5s ease;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box select:focus ~ label {
top: -5px;
}
.input-box select {
cursor: pointer;
color: black;
font-size: 16px;
border-radius: 4px;
}
.input-box .icon {
position: absolute;
top: 13px;
right: 0;
font-size: 19px;
color: black;
}
.error-message {
color: red;
font-size: 12px;
margin-top: 5px;
display: none;
}
......@@ -7,6 +7,7 @@
<link rel="stylesheet" href="../css/beds.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="main-container">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment