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,12 +12,10 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="logo-section">
|
<main class="logo-section">
|
||||||
<div class="logo-wrapper">
|
|
||||||
<img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
|
<img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
|
||||||
<div class="logo-overlay">
|
<div class="logo-center">
|
||||||
<img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
|
<img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="bottom-nav">
|
<footer class="bottom-nav">
|
||||||
@ -38,17 +36,20 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.crush-page {
|
.crush-page {
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: 100vh;
|
||||||
|
height: 100dvh;
|
||||||
|
margin: 0;
|
||||||
background: var(--crush-white);
|
background: var(--crush-white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-banner {
|
.top-banner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 40px 20px 20px;
|
padding: 16px 20px 10px;
|
||||||
background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
|
background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
|
||||||
border-bottom: 3px solid var(--crush-teal);
|
border-bottom: 3px solid var(--crush-teal);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
@ -74,16 +75,12 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
|
|
||||||
.logo-section {
|
.logo-section {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 80px 20px;
|
overflow: hidden;
|
||||||
}
|
min-height: 0;
|
||||||
|
|
||||||
.logo-wrapper {
|
|
||||||
position: relative;
|
|
||||||
width: 450px;
|
|
||||||
height: 450px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.splatter-img {
|
.splatter-img {
|
||||||
@ -92,9 +89,10 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-overlay {
|
.logo-center {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -104,8 +102,8 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-img {
|
.logo-img {
|
||||||
width: 38%;
|
width: 160px;
|
||||||
height: 38%;
|
height: 160px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
filter: drop-shadow(0 3px 8px rgba(0, 102, 102, 0.3));
|
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;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 40px 20px 60px;
|
padding: 20px 20px 28px;
|
||||||
background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
|
background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
|
||||||
border-top: 3px solid var(--crush-teal);
|
border-top: 3px solid var(--crush-teal);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
@ -146,16 +145,16 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.top-banner { padding: 30px 15px 15px; }
|
.top-banner { padding: 12px 15px 8px; }
|
||||||
.logo-section { padding: 50px 15px; }
|
.logo-img { width: 60px; height: 60px; }
|
||||||
.logo-wrapper { width: 320px; height: 320px; }
|
|
||||||
.nav-item { font-size: 15px; padding: 6px 12px; }
|
.nav-item { font-size: 15px; padding: 6px 12px; }
|
||||||
|
.bottom-nav { padding: 16px 15px 20px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.brand { font-size: 2.5rem; }
|
.brand { font-size: 2.5rem; }
|
||||||
.logo-wrapper { width: 240px; height: 240px; }
|
.logo-img { width: 60px; height: 60px; }
|
||||||
.bottom-nav { flex-direction: column; gap: 4px; }
|
.bottom-nav { padding: 12px 12px 16px; }
|
||||||
.nav-dot { display: none; }
|
.nav-dot { display: none; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user