Skip to content

Commit

Permalink
Logbooks code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
naheyansheikh committed Dec 1, 2024
1 parent d5c9925 commit aaa0a50
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 158 deletions.
246 changes: 126 additions & 120 deletions frontend/src/pages/logbooks/Logbooks.css
Original file line number Diff line number Diff line change
@@ -1,177 +1,183 @@
/* Container Styles */
.logbooks-container {
padding: 16px;
margin-left: 65px;
width: 90%;
margin-left: 65px;
width: 90%;
}

.logbooks-grid {
margin-top: 10%;
height: auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 100px 100px;
margin-top: 10%;
height: auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 100px;
}

/* Base Card Styles */
.logbook-card,
.add-logbook-card {
border-radius: 30px;
max-width: 300px;
padding: 20px;
position: relative;
cursor: pointer;
transition: transform 0.2s;
}

.logbook-card {
background: #EBF2FD; /* CDD8F0 with full opacity */
backdrop-filter: blur(20px);
box-shadow: 0px 16px 60px 0px #CDD8F040, /* Outer shadow */
0px 0px 60px 0px #FFFFFF80 inset;
transition: transform 0.2s;
cursor: pointer;
border-radius: 30px;
max-width: 300px;
padding: 20px;
height: 300px; /* Increased overall height */
position: relative;
}

.logbook-card.congenital {
background: #FBF4FF;
background: #ebf2fd;
backdrop-filter: blur(20px);
box-shadow:
0px 16px 60px 0px #cdd8f040,
0px 0px 60px 0px #ffffff80 inset;
height: 300px;
}

.logbook-card:hover .book-cover,
.add-logbook-card:hover {
transform: translateY(-10px);
}

.add-logbook-card {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
}

.add-logbook-card:hover {
transform: translateY(-4px);
}

/* Logbook Card Variants */
.logbook-card.congenital {
background: #fbf4ff;
}

.logbook-card.ophthalmology {
background: #EBFBFE;
background: #ebfbfe;
}

.logbook-card.obstetrics {
background: #F0EDF3;
background: #f0edf3;
}

.logbook-card.general-surgery {
background: #E8FDFF;
}

.logbook-card:hover .book-cover{
transform: translateY(-12px);
background: #e8fdff;
}

/* Book Cover Styles */
.book-cover {
position: relative;
height: 100%;
overflow: hidden;
transition: transform 0.2s;
position: relative;
height: 100%;
overflow: hidden;
transition: transform 0.2s;
}

.log-rectangle {
width: 170%;
height: 240%;
padding: 13px;
object-fit: cover;
position: absolute;
bottom: 0;
right: -57%;
.book-cover-image {
width: 60%;
margin-top: 10%;
margin-left: 20%;
object-fit: cover;
clip-path: inset(0 0 30% 0);
}

.book-cover-image {
width: 60%;
margin-top: 10%;
margin-left: 20%;
object-fit: cover;
clip-path: inset(0 0 30% 0);
.book-cover-image.obstetrics {
width: 30%;
margin-top: 90%;
}

.book-cover-image.obstetrics {
width: 30%;
margin-top: 90%;
object-fit: cover;
clip-path: inset(0 0 30% 0);
.log-rectangle {
width: 170%;
height: 240%;
padding: 13px;
object-fit: cover;
position: absolute;
bottom: 0;
right: -57%;
}

/* Details Container */
.details-container {
position: relative;
height: 140px;
position: relative;
height: 140px;
}

.book-details {
position: relative;
align-items: start;
padding: 10px;
bottom: 100%;
z-index: 2;
position: relative;
padding: 10px;
bottom: 100%;
z-index: 2;
align-items: flex-start;
}

/* Text Styles */
.book-title {
font-size: 22px;
font-weight: bold;
color: #1E1E1E;
margin-bottom: 12px;
text-align: left;
font-size: 22px;
font-weight: bold;
color: #1e1e1e;
margin-bottom: 12px;
text-align: left;
}

.type-label {
font-size: 14px;
color: #333333;
font-weight: 500;
text-align: left;
display: flex;
align-items: center;
gap: 4px;
.type-label,
.storage-info {
font-size: 14px;
font-weight: 500;
text-align: left;
display: flex;
align-items: center;
gap: 4px;
}

.type-value {
color: #244B94;
font-weight: 500;
font-size: 14px;
.type-label {
color: #333333;
}

.storage-info {
margin: 8px 0;
font-size: 14px;
font-weight: 500;
text-align: left;
display: flex;
align-items: center;
gap: 4px;
margin: 8px 0;
}

.type-value,
.storage-count {
color: #5D9EFF;
font-weight: 500;
font-size: 14px;
font-size: 14px;
font-weight: 500;
}

.created-date {
font-size: 10px;
color: #656B6F;
margin-top: 8px;
text-align: left;
.type-value {
color: #244b94;
}

.created-date strong {
font-weight: 600;
.storage-count {
color: #5d9eff;
}

.add-logbook-card {
border-radius: 30px;
max-width: 300px;
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
transition: transform 0.2s;
.created-date {
font-size: 10px;
color: #656b6f;
margin-top: 8px;
text-align: left;
}

.add-logbook-card:hover {
transform: translateY(-4px);
.created-date strong {
font-weight: 600;
}

.plus-circle-icon {
width: 40px;
height: 40px;
color: #244B94;
padding: 8px;
border: 4px solid #244B94;
border-radius: 50%;
stroke-width: 3px;
.add-logbook-card span {
color: #1f2937;
font-size: 14px;
font-weight: 400;
}

.add-logbook-card span {
color: #1F2937;
font-size: 14px;
font-weight: 400;
}
/* Icon Styles */
.plus-circle-icon {
width: 40px;
height: 40px;
color: #244b94;
padding: 8px;
border: 4px solid #244b94;
border-radius: 50%;
stroke-width: 3px;
}
Loading

0 comments on commit aaa0a50

Please sign in to comment.