checkpoint: splatter layout with centered logo, one-viewport fit, mobile nav rows
This commit is contained in:
BIN
public/src/img/pack-splatter-padded.png
Normal file
BIN
public/src/img/pack-splatter-padded.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 311 KiB After Width: | Height: | Size: 636 KiB |
@ -12,11 +12,9 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
</header>
|
||||
|
||||
<main class="logo-section">
|
||||
<div class="logo-wrapper">
|
||||
<img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
|
||||
<div class="logo-overlay">
|
||||
<img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
|
||||
</div>
|
||||
<img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
|
||||
<div class="logo-center">
|
||||
<img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@ -38,17 +36,20 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
|
||||
<style>
|
||||
.crush-page {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
margin: 0;
|
||||
background: var(--crush-white);
|
||||
}
|
||||
|
||||
.top-banner {
|
||||
text-align: center;
|
||||
padding: 40px 20px 20px;
|
||||
padding: 16px 20px 10px;
|
||||
background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
|
||||
border-bottom: 3px solid var(--crush-teal);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
@ -74,16 +75,12 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
|
||||
.logo-section {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 20px;
|
||||
}
|
||||
|
||||
.logo-wrapper {
|
||||
position: relative;
|
||||
width: 450px;
|
||||
height: 450px;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.splatter-img {
|
||||
@ -92,9 +89,10 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.logo-overlay {
|
||||
.logo-center {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
@ -104,8 +102,8 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
width: 38%;
|
||||
height: 38%;
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 3px 8px rgba(0, 102, 102, 0.3));
|
||||
}
|
||||
@ -116,9 +114,10 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 40px 20px 60px;
|
||||
padding: 20px 20px 28px;
|
||||
background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
|
||||
border-top: 3px solid var(--crush-teal);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
@ -146,16 +145,16 @@ import CrushBase from '../layouts/CrushBase.astro';
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.top-banner { padding: 30px 15px 15px; }
|
||||
.logo-section { padding: 50px 15px; }
|
||||
.logo-wrapper { width: 320px; height: 320px; }
|
||||
.top-banner { padding: 12px 15px 8px; }
|
||||
.logo-img { width: 60px; height: 60px; }
|
||||
.nav-item { font-size: 15px; padding: 6px 12px; }
|
||||
.bottom-nav { padding: 16px 15px 20px; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.brand { font-size: 2.5rem; }
|
||||
.logo-wrapper { width: 240px; height: 240px; }
|
||||
.bottom-nav { flex-direction: column; gap: 4px; }
|
||||
.logo-img { width: 60px; height: 60px; }
|
||||
.bottom-nav { padding: 12px 12px 16px; }
|
||||
.nav-dot { display: none; }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user