checkpoint: music link, mobile nav 2-row layout, logo scaling fixes
This commit is contained in:
@ -23,6 +23,8 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
<span class="nav-dot">•</span>
|
<span class="nav-dot">•</span>
|
||||||
<a href="/blog" class="nav-item">BLOG</a>
|
<a href="/blog" class="nav-item">BLOG</a>
|
||||||
<span class="nav-dot">•</span>
|
<span class="nav-dot">•</span>
|
||||||
|
<a href="/music" class="nav-item">MUSIC</a>
|
||||||
|
<span class="nav-dot">•</span>
|
||||||
<a href="https://pi.dangrubb.net/jellyfin" class="nav-item">MEDIA</a>
|
<a href="https://pi.dangrubb.net/jellyfin" class="nav-item">MEDIA</a>
|
||||||
<span class="nav-dot">•</span>
|
<span class="nav-dot">•</span>
|
||||||
<a href="https://pi.dangrubb.net/nextcloud" class="nav-item">STORAGE</a>
|
<a href="https://pi.dangrubb.net/nextcloud" class="nav-item">STORAGE</a>
|
||||||
@ -102,8 +104,9 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-img {
|
.logo-img {
|
||||||
width: 160px;
|
width: 12%;
|
||||||
height: 160px;
|
max-width: 160px;
|
||||||
|
aspect-ratio: 1;
|
||||||
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));
|
||||||
}
|
}
|
||||||
@ -144,17 +147,36 @@ import CrushBase from '../layouts/CrushBase.astro';
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.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) {
|
@media (max-width: 480px) {
|
||||||
.brand { font-size: 2.5rem; }
|
.brand { font-size: 2.5rem; }
|
||||||
.logo-img { width: 60px; height: 60px; }
|
.top-banner {
|
||||||
.bottom-nav { padding: 12px 12px 16px; }
|
flex: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 12px 15px;
|
||||||
|
}
|
||||||
|
.logo-section {
|
||||||
|
aspect-ratio: 3 / 4;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
.splatter-img {
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.logo-img { width: 36%; }
|
||||||
|
.nav-item { font-size: 16px; padding: 8px 14px; }
|
||||||
|
.bottom-nav {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 3px;
|
||||||
|
padding: 4px 12px;
|
||||||
|
}
|
||||||
.nav-dot { display: none; }
|
.nav-dot { display: none; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user