made landing page responsive

This commit is contained in:
Tejas Panchal
2025-07-27 14:13:38 +05:30
parent 503d935fc6
commit af896fed6e
2 changed files with 122 additions and 17 deletions

View File

@@ -1,22 +1,58 @@
/* Base styles */ /* Base styles */
body { body {
margin: 0; margin: 0;
padding: 0;
overflow-x: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: #0a0a0a; background-color: #0a0a0a;
color: white; color: white;
} }
html {
margin: 0;
padding: 0;
overflow-x: hidden;
height: 100%;
width: 100%;
}
/* Container and background */ /* Container and background */
.splash-container { .splash-container {
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100vw;
position: relative; position: fixed;
background: url('/splash.jpg') no-repeat center center fixed; background: url('/splash.jpg');
background-size: cover; background-position: center;
background-repeat: no-repeat;
background-size: 100% auto;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
padding: 0 30px; padding: 0 30px;
overflow: auto;
margin: 0;
left: 0;
top: 0;
}
@media (max-width: 768px) {
.splash-container {
background-size: auto 100vh;
background-position: center center;
}
}
@media (max-width: 480px) {
.splash-container {
background-size: auto 100%;
padding: 0 15px;
}
}
@media (max-width: 360px) {
.splash-container {
background-position: 50% 50%;
}
} }
.splash-overlay { .splash-overlay {
@@ -109,6 +145,21 @@ body {
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
gap: 8px;
}
.enter-button .angle-icon {
font-size: 0.9em;
width: 8px;
transition: transform 0.2s ease;
opacity: 0.8;
}
.enter-button:hover .angle-icon {
transform: translateX(4px);
opacity: 1;
} }
.enter-button:hover { .enter-button:hover {
@@ -138,11 +189,10 @@ body {
} }
.faq-item { .faq-item {
background: rgba(255, 255, 255, 0.03); background: #1a1a1a;
border-radius: 12px; border-radius: 12px;
overflow: hidden; overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid #333;
backdrop-filter: blur(8px);
} }
.faq-question { .faq-question {
@@ -161,12 +211,12 @@ body {
} }
.faq-question:hover { .faq-question:hover {
background: rgba(255, 255, 255, 0.05); background: #252525;
} }
.faq-toggle { .faq-toggle {
font-size: 16px; font-size: 16px;
color: rgba(255, 255, 255, 0.7); color: #999;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
@@ -177,19 +227,30 @@ body {
.faq-answer { .faq-answer {
padding: 0 24px 18px; padding: 0 24px 18px;
color: rgba(255, 255, 255, 0.7); color: #999;
line-height: 1.6; line-height: 1.6;
font-size: 15px; font-size: 15px;
} }
/* Responsive adjustments */ /* Responsive adjustments */
@media (max-width: 1024px) {
.content-wrapper {
padding-top: 120px;
max-width: 700px;
}
}
@media (max-width: 768px) { @media (max-width: 768px) {
.content-wrapper { .content-wrapper {
padding-top: 100px; padding: 100px 20px 0;
}
.logo-container {
margin-top: 40px;
} }
.logo { .logo {
height: 60px; height: 65px;
} }
.search-input { .search-input {
@@ -201,15 +262,23 @@ body {
font-size: 24px; font-size: 24px;
margin-bottom: 24px; margin-bottom: 24px;
} }
.splash-container {
padding: 0 15px;
}
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.content-wrapper { .content-wrapper {
padding-top: 80px; padding: 60px 15px 0;
}
.logo-container {
margin-top: 50px;
} }
.logo { .logo {
height: 50px; height: 55px;
} }
.search-input { .search-input {
@@ -220,15 +289,50 @@ body {
.enter-button { .enter-button {
padding: 10px 20px; padding: 10px 20px;
font-size: 14px; font-size: 14px;
margin: 8px 0 40px;
} }
.faq-question { .faq-question {
padding: 16px; padding: 14px;
font-size: 15px; font-size: 15px;
} }
.faq-answer { .faq-answer {
padding: 0 16px 16px; padding: 0 14px 14px;
font-size: 14px; font-size: 14px;
} }
.splash-container {
padding: 0 10px;
}
}
@media (max-width: 360px) {
.content-wrapper {
padding: 40px 10px 0;
}
.logo-container {
margin-top: 60px;
}
.logo {
height: 50px;
}
.search-input {
padding: 10px 32px 10px 12px;
font-size: 13px;
}
.enter-button {
padding: 8px 16px;
font-size: 13px;
margin: 8px 0 30px;
}
.faq-title {
font-size: 20px;
margin-bottom: 20px;
}
} }

View File

@@ -4,6 +4,7 @@ import "./SplashScreen.css";
import logoTitle from "@/src/config/logoTitle"; import logoTitle from "@/src/config/logoTitle";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMagnifyingGlass, faChevronDown } from "@fortawesome/free-solid-svg-icons"; import { faMagnifyingGlass, faChevronDown } from "@fortawesome/free-solid-svg-icons";
import { faAngleRight } from "@fortawesome/free-solid-svg-icons";
const FAQ_ITEMS = [ const FAQ_ITEMS = [
{ {
@@ -72,7 +73,7 @@ function SplashScreen() {
</div> </div>
<Link to="/home" className="enter-button"> <Link to="/home" className="enter-button">
Enter Homepage Enter Homepage <FontAwesomeIcon icon={faAngleRight} className="angle-icon" />
</Link> </Link>
<div className="faq-section"> <div className="faq-section">