PangandaranAI_FE / src /app /page.module.css
rsam-66's picture
fix: fix performance issues on home and saved pages
a6b84c8
Raw History Blame Contribute Delete
3.11 kB
/* Wrapper */
.wrapper {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}
/* ---- Splash Screen ---- */
.splashScreen {
position: absolute;
inset: 0;
background: #1B8A8E;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
transition: opacity 0.6s ease, transform 0.6s ease;
}
.splashHidden {
opacity: 0;
transform: scale(1.05);
pointer-events: none;
}
.splashContent {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
animation: splashFadeIn 0.8s ease-out;
}
.splashLogoImage {
max-width: 260px;
height: auto;
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}
.splashTagline {
font-size: 14px;
color: rgba(255, 255, 255, 0.8);
margin: 0;
letter-spacing: 0.3px;
}
@keyframes splashFadeIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
/* ---- Get Started Screen ---- */
.splash {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
transition: opacity 0.6s ease;
}
.getStartedHidden {
opacity: 0;
}
.bgImage {
position: absolute;
inset: 0;
z-index: 0;
}
.overlay {
position: absolute;
inset: 0;
background: linear-gradient(to bottom,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.02) 40%,
rgba(0, 0, 0, 0.3) 80%,
rgba(0, 0, 0, 0.5) 100%);
z-index: 1;
}
.content {
position: relative;
z-index: 2;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding-top: 120px;
padding-bottom: 0;
}
.logoArea {
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.8s ease-out 0.3s both;
}
.logoImage {
max-width: 240px;
height: auto;
filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}
/* White bottom card */
.bottomCard {
width: 100%;
background: white;
border-radius: 24px 24px 0 0;
padding: 32px 28px 40px;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
animation: slideUp 0.6s ease-out 0.6s both;
}
.tagline {
font-size: 22px;
color: var(--text-primary);
line-height: 1.3;
text-align: center;
margin: 0;
}
.tagline em {
font-style: italic;
font-weight: 400;
}
.tagline strong {
font-weight: 700;
font-style: normal;
}
.cta {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: 14px 28px;
background: var(--primary);
color: var(--text-on-primary);
font-size: 16px;
font-weight: 600;
border-radius: var(--radius-pill);
transition: background 0.2s, transform 0.2s;
width: fit-content;
box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}
.cta:hover {
background: var(--primary-dark);
}
.cta:active {
transform: scale(0.97);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}