Files
examjam-frontend/css/Home.module.css
2025-07-04 02:49:17 +06:00

268 lines
4.5 KiB
CSS

.container {
flex: 1;
min-height: 100vh;
}
.scrollContainer {
overflow-y: auto;
padding-top: 40px;
height: calc(100vh - 80px); /* Adjust based on header height */
}
.contentWrapper {
margin: 0 35px;
padding-bottom: 80px; /* Extra space at bottom for mobile */
}
.mainContent {
padding-top: 25px;
display: flex;
flex-direction: column;
gap: 35px;
}
.section {
display: flex;
flex-direction: column;
gap: 24px;
}
.lastSection {
margin-bottom: 80px;
}
.sectionHeader {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.sectionTitle {
font-size: 32px;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
color: #113768;
margin: 0;
}
.arrowButton {
background: none;
border: none;
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s;
}
.arrowButton:hover {
opacity: 0.7;
}
.arrowButton:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Categories Styles */
.categoriesContainer {
display: flex;
flex-direction: column;
justify-content: space-evenly;
gap: 16px;
padding-top: 25px;
}
.categoryRow {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 16px;
}
.categoryButton {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px solid #c5dbf8;
width: 48%;
height: 150px; /* Approximate scaled height */
border-radius: 25px;
background: white;
cursor: pointer;
transition: all 0.2s;
gap: 8px;
}
.categoryButton:hover:not(:disabled) {
background-color: #f8fbff;
transform: translateY(-2px);
}
.categoryButton.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.categoryButtonText {
font-size: 14px;
font-family: 'Montserrat', sans-serif;
font-weight: 500;
color: #113768;
}
/* Leaderboard Styles */
.leaderboardWrapper {
display: flex;
flex-direction: column;
gap: 20px;
}
.leaderboardContainer {
border: 1px solid #c5dbf8;
padding: 22px 15px;
border-radius: 20px;
display: flex;
flex-direction: column;
gap: 15px;
background: white;
}
.topThreeHeader {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.topThreeTitle {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 17px;
}
.divider {
border-top: 0.5px solid #c5dbf8;
}
.topThreeList {
display: flex;
flex-direction: column;
gap: 12px;
}
.topThreeItem {
display: flex;
flex-direction: row;
border: 1px solid #c5dbf8;
border-radius: 10px;
padding: 6px 12px;
justify-content: space-between;
align-items: center;
}
.studentInfo {
display: flex;
flex-direction: row;
gap: 12px;
align-items: center;
}
.rank {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 20px;
}
.avatar {
border-radius: 50%;
}
.studentName {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 14px;
}
.points {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
color: rgba(0, 0, 0, 0.4);
}
/* Coming Soon Card */
.comingSoonCard {
border: 2px solid #c5dbf8;
width: 100%;
padding: 24px;
border-radius: 20px;
background: white;
display: flex;
align-items: center;
justify-content: center;
}
.comingSoonText {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 20px;
text-align: center;
margin: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.contentWrapper {
margin: 0 20px;
}
.sectionTitle {
font-size: 20px;
}
.categoryButton {
height: 120px;
}
.categoryButtonText {
font-size: 14px;
}
.categoryRow {
gap: 12px;
}
.comingSoonText {
font-size: 18px;
}
}
@media (max-width: 480px) {
.contentWrapper {
margin: 0 15px;
}
.sectionTitle {
font-size: 22px;
}
.categoryButton {
height: 200px;
}
.mainContent {
gap: 25px;
}
.categoryRow {
flex-direction: row;
}
.categoryButton {
width: 100%;
}
}