Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated alissa landing page to be responsive to different screen sizes #777

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 47 additions & 1 deletion client/src/pages/Initial/AlissaLanding/AlissaLanding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $button-text-color: #7b1fa2; // Deep purple
background-color: $background-color;
min-height: 100vh;
display: flex;
flex-direction: column; // Added to align footer at the bottom
flex-direction: column; // Align footer at the bottom
justify-content: center;
align-items: center;
text-align: center;
Expand Down Expand Up @@ -79,18 +79,43 @@ $button-text-color: #7b1fa2; // Deep purple
width: 90%; // Increased width
max-width: 900px; // Increased max width
@include enchanted-shadow; // Shadow effect

@media (max-width: 768px) {
padding: 60px; // Reduce padding for smaller screens
width: 95%;
}

@media (max-width: 480px) {
padding: 40px; // Further reduce padding for very small screens
}
}

.ax-title {
.title-text {
font-size: 4.5rem;
margin-bottom: 20px;

@media (max-width: 768px) {
font-size: 3rem; // Adjust font size for smaller screens
}

@media (max-width: 480px) {
font-size: 2.5rem; // Further adjust font size for very small screens
}
}

.subtitle {
font-size: 1.2rem;
color: $subtitle-color;
margin-bottom: 30px;

@media (max-width: 768px) {
font-size: 1rem; // Adjust font size for smaller screens
}

@media (max-width: 480px) {
font-size: 0.9rem; // Further adjust font size for very small screens
}
}
}

Expand All @@ -100,6 +125,11 @@ $button-text-color: #7b1fa2; // Deep purple
justify-content: center;
gap: 20px;

@media (max-width: 480px) {
flex-direction: column; // Stack buttons vertically on very small screens
gap: 10px;
}

.button {
background-color: $button-color;
color: $button-text-color;
Expand All @@ -118,6 +148,14 @@ $button-text-color: #7b1fa2; // Deep purple

.button-text {
font-size: 1rem;

@media (max-width: 768px) {
font-size: 0.9rem; // Adjust font size for smaller screens
}

@media (max-width: 480px) {
font-size: 0.8rem; // Further adjust font size for very small screens
}
}

&:hover {
Expand All @@ -142,5 +180,13 @@ $button-text-color: #7b1fa2; // Deep purple

.footer-text {
margin: 0;

@media (max-width: 768px) {
font-size: 0.9rem; // Adjust font size for smaller screens
}

@media (max-width: 480px) {
font-size: 0.8rem; // Further adjust font size for very small screens
}
}
}
Loading