Dodano obsługę Directus CMS, układ Bento Grid 2x2+1x2+1x1 z danymi z Laboratorium_AI
This commit is contained in:
+71
-19
@@ -722,35 +722,22 @@ h1, h2, h3, h4, h5, h6 {
|
||||
/* ===== RESPONSYWNOŚĆ ===== */
|
||||
@media (max-width: 1400px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 250px 1fr;
|
||||
}
|
||||
.sidebar-right {
|
||||
display: none;
|
||||
grid-template-columns: 1fr 280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
@media (max-width: 1100px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 1rem;
|
||||
}
|
||||
.sidebar-left {
|
||||
.sidebar-right {
|
||||
display: none;
|
||||
}
|
||||
.bento-area {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: 300px auto;
|
||||
grid-auto-rows: 220px;
|
||||
}
|
||||
.bento-area > * {
|
||||
grid-column: auto !important;
|
||||
grid-row: auto !important;
|
||||
}
|
||||
.slideshow-card {
|
||||
grid-column: 1 / -1 !important;
|
||||
}
|
||||
.hero-article {
|
||||
grid-column: 1 / -1 !important;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-template-rows: 360px repeat(3, 240px);
|
||||
grid-auto-rows: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -788,9 +775,34 @@ h1, h2, h3, h4, h5, h6 {
|
||||
.main-nav {
|
||||
position: relative;
|
||||
}
|
||||
.bento-area {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: 300px auto;
|
||||
grid-auto-rows: 220px;
|
||||
}
|
||||
.bento-area > * {
|
||||
grid-column: auto !important;
|
||||
grid-row: auto !important;
|
||||
}
|
||||
.slideshow-card {
|
||||
grid-column: 1 / -1 !important;
|
||||
}
|
||||
.hero-article {
|
||||
grid-column: 1 / -1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero {
|
||||
padding: 4rem 1.25rem 3rem;
|
||||
}
|
||||
.hero__cta-group {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.hero__btn-primary {
|
||||
justify-content: center;
|
||||
}
|
||||
.bento-area {
|
||||
grid-template-columns: 1fr;
|
||||
grid-auto-rows: 200px;
|
||||
@@ -806,6 +818,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
padding: 0.75rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
}
|
||||
.cookie-banner {
|
||||
bottom: 1rem;
|
||||
right: 1rem;
|
||||
@@ -1149,3 +1162,42 @@ h1, h2, h3, h4, h5, h6 {
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== LOADING & ERROR STATES ===== */
|
||||
.loading-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
background: var(--bg-color);
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid var(--border-color);
|
||||
border-top-color: var(--accent-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.loading-screen p {
|
||||
color: var(--text-muted);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.error-banner {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
color: #fca5a5;
|
||||
padding: 1rem 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user