-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0db2b0c
commit 21f271e
Showing
4 changed files
with
328 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,258 @@ | ||
body { | ||
background-color: #940d0d; | ||
font-family: Arial, sans-serif; | ||
background-color: #f5f5f5; | ||
margin: 0; | ||
padding: 0; | ||
line-height: 1.6; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
justify-content: space-between; | ||
background-color: #eb1b23; | ||
color: #fff; | ||
text-align: center; | ||
padding: 2px; /* Reduced header padding */ | ||
} | ||
|
||
.header-logo { | ||
width: 100px; /* Set the width of your college logo */ | ||
height: auto; /* Maintain aspect ratio */ | ||
} | ||
|
||
.logout-button { | ||
background-color: #fff; | ||
color: #eb1b23; | ||
border: none; | ||
padding: 5px 10px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
margin-right: 20px; | ||
} | ||
|
||
.logout-button:hover { | ||
background-color: #ccc; | ||
} | ||
|
||
.container { | ||
background-color: white; | ||
max-width: 300px; | ||
padding: 20px; | ||
width: 45%; | ||
border-radius: 8px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); | ||
display: flex; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.logo { | ||
|
||
.profile-card, .resource-card { | ||
background-color: #fff; | ||
border-radius: 10px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
margin: 20px; | ||
width: 300px; | ||
text-align: center; | ||
padding: 20px; | ||
transition: transform 0.2s; | ||
} | ||
|
||
.logo img { | ||
height: 100px; | ||
.profile-card:hover, .resource-card:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
.login-box { | ||
text-align: center; | ||
.profile-img { | ||
width: 100px; | ||
border-radius: 50%; | ||
object-fit: cover; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.login-box h2 { | ||
.qr-code { | ||
width: 100px; | ||
height: 100px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.container form { | ||
display: flex; | ||
flex-direction: column; | ||
.profile-details { | ||
font-size: 18px; | ||
margin-bottom: 20px; | ||
text-align: left; | ||
} | ||
|
||
.container input { | ||
padding: 10px; | ||
.profile-details p { | ||
margin-bottom: 10px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
} | ||
|
||
.container button { | ||
padding: 10px; | ||
background-color: #940d0d; | ||
color: white; | ||
.safe { | ||
color: green; | ||
} | ||
|
||
.unsafe { | ||
color: red; | ||
} | ||
|
||
.book-button { | ||
background-color: #eb1b23; | ||
color: #fff; | ||
border: none; | ||
border-radius: 4px; | ||
padding: 10px 20px; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
} | ||
|
||
.booked { | ||
background-color: grey; | ||
} | ||
|
||
.container button:hover { | ||
background-color: #ed0505; | ||
.book-button:hover { | ||
background-color: #ff3336; | ||
} | ||
|
||
/* "activate-account" link */ | ||
.activate-account { | ||
.modal { | ||
display: none; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.modal-content { | ||
background-color: #fff; | ||
width: 80%; | ||
max-width: 400px; | ||
margin: 20% auto; | ||
padding: 20px; | ||
border-radius: 5px; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | ||
text-align: center; | ||
margin-top: 15px; | ||
position: relative; | ||
display: flex; | ||
} | ||
|
||
.activate-account a { | ||
color: #7240ce; | ||
text-decoration: none; | ||
.modal-image { | ||
flex: 1; | ||
} | ||
|
||
.activate-account a:hover { | ||
text-decoration: underline; | ||
.modal-image img { | ||
width: 100%; | ||
height: auto; | ||
object-fit: cover; | ||
} | ||
|
||
/* Animation */ | ||
.container { | ||
animation: fadeIn 1s ease; | ||
.modal-details { | ||
flex: 2; | ||
padding: 10px; | ||
text-align: left; | ||
} | ||
|
||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
transform: translateY(-20px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
/* Close button for the modal */ | ||
.close { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
cursor: pointer; | ||
} | ||
|
||
/* Responsive styles */ | ||
@media screen and (max-width: 500px) { | ||
.modal-button { | ||
background-color: #eb1b23; | ||
color: #fff; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
} | ||
|
||
.modal-button:hover { | ||
background-color: #ff3336; | ||
} | ||
|
||
select { | ||
width: 100%; | ||
padding: 10px; | ||
margin: 10px 0; | ||
} | ||
.resource-card { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.resource-card img { | ||
width: 100px; | ||
height: 100px; | ||
object-fit: cover; | ||
border-radius: 5px; | ||
margin-right: 5px; | ||
} | ||
.resource-details { | ||
flex: 1; | ||
padding: 10px; | ||
text-align: left; | ||
} | ||
.resource-details h2 { | ||
margin: 0; | ||
} | ||
.resource-details p { | ||
margin: 0; | ||
} | ||
.location-cards | ||
{ | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.table-section { | ||
margin-top: 10px; | ||
overflow-x: auto; | ||
/* Add horizontal scroll for small screens */ | ||
} | ||
|
||
.activity-table { | ||
width: 100%; | ||
max-width: 100%; /* Set a maximum width for the table */ | ||
border-collapse: collapse; | ||
margin-top: 20px; | ||
white-space: nowrap; /* Prevent text wrapping */ | ||
overflow: hidden; | ||
} | ||
|
||
.activity-table th, .activity-table td { | ||
border: 1px solid #ddd; | ||
padding: 8px; | ||
text-align: left; | ||
overflow: hidden; | ||
text-overflow: ellipsis; /* Display ellipsis for overflowed text */ | ||
white-space: wrap; | ||
} | ||
|
||
.activity-table th { | ||
background-color: #eb1b23; | ||
color: #fff; | ||
} | ||
|
||
|
||
|
||
@media (max-width: 768px) { | ||
.profile-card, .resource-card { | ||
width: 90%; | ||
} | ||
.container { | ||
max-width: 90%; | ||
width: 70%; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.activity-table { | ||
font-size: 14px; | ||
} | ||
|
||
.activity-table th, .activity-table td { | ||
padding: 5px; | ||
} | ||
} |
Oops, something went wrong.