initial commit

This commit is contained in:
shafin-r
2025-07-03 01:50:10 +06:00
commit 913ec11bc7
49 changed files with 6784 additions and 0 deletions

179
css/Header.module.css Normal file
View File

@ -0,0 +1,179 @@
.header {
background-color: #113768;
height: 130px;
width: 100%;
padding-top: 30px;
padding-left: 30px;
padding-right: 30px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 100;
}
.profile {
display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
}
.profileImg {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.text {
font-size: 24px;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
color: #fff;
}
.iconButton {
background: none;
border: none;
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s;
}
.iconButton:hover {
opacity: 0.8;
}
.iconButton.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.examHeader {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
align-items: center;
}
.timer {
width: 167px;
height: 55px;
background-color: #fff;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
border-radius: 10px;
padding: 0 10px;
}
.timeUnit {
display: flex;
flex-direction: column;
align-items: center;
}
.timeValue {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 20px;
color: #082E5E;
}
.timeLabel {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
font-size: 14px;
color: #082E5E;
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
height: 100px;
padding-top: 20px;
padding-left: 20px;
padding-right: 20px;
}
.text {
font-size: 15px;
}
.profile {
gap: 15px;
}
.profileImg {
width: 35px;
height: 35px;
}
.timer {
width: 140px;
height: 45px;
}
.timeValue {
font-size: 16px;
}
.timeLabel {
font-size: 12px;
}
}
@media (max-width: 480px) {
.header {
height: 80px;
padding-top: 15px;
padding-left: 15px;
padding-right: 15px;
}
.text {
font-size: 14px;
}
.profile {
gap: 10px;
}
.profileImg {
width: 30px;
height: 30px;
}
.timer {
width: 120px;
height: 40px;
padding: 0 5px;
}
.timeValue {
font-size: 14px;
}
.timeLabel {
font-size: 10px;
}
.examHeader {
gap: 10px;
}
}
/* Safe area considerations for mobile */
@media (max-width: 480px) {
.header {
padding-top: max(15px, env(safe-area-inset-top));
}
}

267
css/Home.module.css Normal file
View File

@ -0,0 +1,267 @@
.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;
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: 12px;
}
.categoryRow {
gap: 12px;
}
.comingSoonText {
font-size: 18px;
}
}
@media (max-width: 480px) {
.contentWrapper {
margin: 0 15px;
}
.sectionTitle {
font-size: 18px;
}
.categoryButton {
height: 100px;
}
.mainContent {
gap: 25px;
}
.categoryRow {
flex-direction: column;
}
.categoryButton {
width: 100%;
}
}

View File

@ -0,0 +1,119 @@
.gallery {
height: 200px;
width: 100%;
border: 1px solid #113768;
border-radius: 25px;
position: relative;
overflow: hidden;
}
.scrollContainer {
display: flex;
height: 100%;
overflow-x: auto;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
.scrollContainer::-webkit-scrollbar {
display: none; /* WebKit */
}
.slide {
min-width: calc(100% - 72px);
display: flex;
justify-content: center;
align-items: center;
scroll-snap-align: start;
padding: 0 36px;
}
.link {
text-decoration: none;
color: inherit;
width: 100%;
}
.facebook {
flex: 1;
display: flex;
justify-content: space-between;
flex-direction: row;
height: 100%;
background-color: #fff;
border-radius: 25px;
padding: 20px;
box-sizing: border-box;
}
.facebookOne {
font-family: 'Montserrat', sans-serif;
font-weight: 900;
color: #113768;
font-size: 20px;
margin: 0;
}
.facebookTwo {
font-family: 'Montserrat', sans-serif;
font-weight: 600;
color: #113768;
font-size: 13px;
margin: 0;
}
.pagination {
display: flex;
flex-direction: row;
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
}
.dot {
width: 10px;
height: 10px;
border-radius: 5px;
margin: 0 5px;
}
.activeDot {
background-color: #113768;
}
.inactiveDot {
background-color: #ccc;
}
.textView {
width: 60%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.logoView {
width: 40%;
display: flex;
justify-content: flex-end;
align-items: flex-end;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.slide {
min-width: calc(100% - 40px);
padding: 0 20px;
}
.facebookOne {
font-size: 18px;
}
.facebookTwo {
font-size: 12px;
}
}