Integracja Directus LabAI, naprawa Schema.org, poprawki UI

- Zmiana kolekcji Directus z Laboratorium_AI na LabAI
- Usunięcie fallbacku na fake dane — brak wpisów = komunikat
- revalidate=0 na stronie głównej (zawsze świeże dane)
- BlogPosting przeniesiony do @graph (poprawna spec Schema.org)
- Inbox Libredesk zaktualizowany
- Hero image-wrap powiększony (scale 1.56)
- Dokumentacja projektu w CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Paweł Domański
2026-07-05 13:14:43 +02:00
parent f39551d0d0
commit eb09da9e4d
9 changed files with 943 additions and 1909 deletions
+387 -8
View File
@@ -13,6 +13,7 @@
--card-radius: 1.25rem;
--grid-gap: 1.5rem;
--content-width: 1200px;
/* Badges */
--badge-hot: #e11d48;
@@ -181,7 +182,7 @@ h1, h2, h3, h4, h5, h6 {
/* ===== PAGE WRAPPER ===== */
.page-wrapper {
max-width: 1600px;
max-width: var(--content-width);
margin: 0 auto;
padding: 2rem;
display: grid;
@@ -663,7 +664,7 @@ h1, h2, h3, h4, h5, h6 {
}
.footer-container {
max-width: 1200px;
max-width: var(--content-width);
margin: 0 auto;
display: flex;
justify-content: space-between;
@@ -681,6 +682,31 @@ h1, h2, h3, h4, h5, h6 {
line-height: 1.5;
}
.footer-social {
display: flex;
gap: 0.75rem;
margin-top: 1.25rem;
}
.footer-social__link {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
color: var(--text-muted);
transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.footer-social__link:hover {
color: var(--text-main);
background: rgba(79, 70, 229, 0.15);
border-color: rgba(79, 70, 229, 0.4);
}
.footer-links {
display: flex;
flex-wrap: wrap;
@@ -711,7 +737,7 @@ h1, h2, h3, h4, h5, h6 {
}
.footer-bottom {
max-width: 1200px;
max-width: var(--content-width);
margin: 0 auto;
padding-top: 2rem;
text-align: center;
@@ -818,7 +844,6 @@ h1, h2, h3, h4, h5, h6 {
padding: 0.75rem;
gap: 0.75rem;
}
}
.cookie-banner {
bottom: 1rem;
right: 1rem;
@@ -827,14 +852,257 @@ h1, h2, h3, h4, h5, h6 {
}
}
/* ===== PRODUCTS PAGE ===== */
.products-page {
max-width: var(--content-width);
margin: 0 auto;
padding: 4rem 2rem;
}
.products-header {
text-align: center;
margin-bottom: 3rem;
}
.products-title {
font-size: 2rem;
font-weight: 700;
color: var(--text-main);
margin: 1rem 0 0.5rem;
}
.products-subtitle {
color: var(--text-muted);
font-size: 1rem;
}
.products-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.product-card {
background: var(--bg-accent);
border: 1px solid var(--border-color);
border-radius: var(--card-radius);
overflow: hidden;
display: flex;
flex-direction: column;
transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(79, 70, 229, 0.4); }
.product-img {
height: 220px;
background-size: cover;
background-position: center;
}
.product-body {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex: 1;
gap: 0.5rem;
}
.product-card--featured { border-color: rgba(79, 70, 229, 0.5); }
.product-featured-badge {
position: absolute;
top: 0.75rem;
right: 0.75rem;
background: var(--accent-color);
color: #fff;
font-size: 0.7rem;
font-weight: 600;
padding: 0.2rem 0.6rem;
border-radius: 999px;
}
.product-card { position: relative; }
.product-tags {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-bottom: 0.25rem;
}
.product-tag {
font-size: 0.7rem;
background: rgba(79, 70, 229, 0.12);
color: #818cf8;
padding: 0.15rem 0.5rem;
border-radius: 999px;
}
.product-type {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent-color);
}
.product-name {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-main);
}
.product-desc {
font-size: 0.875rem;
color: var(--text-muted);
line-height: 1.6;
flex: 1;
}
.product-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 1rem;
gap: 1rem;
}
.product-price { display: flex; align-items: baseline; gap: 0.5rem; }
.product-price--promo {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-main);
}
.product-price--old {
font-size: 0.875rem;
color: var(--text-muted);
text-decoration: line-through;
}
.product-price--regular {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-main);
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }
.products-preview {
max-width: var(--content-width);
margin: 0 auto;
padding: 4rem 2rem;
}
/* ===== BENEFITS SECTION ===== */
.benefits {
padding: 5rem 2rem;
border-bottom: 1px solid var(--border-color);
}
.benefits__header {
max-width: 720px;
margin: 0 auto 3rem;
text-align: center;
}
.benefits__title {
font-size: 2rem;
font-weight: 700;
color: var(--text-main);
margin-bottom: 1rem;
}
.benefits__subtitle {
color: var(--text-muted);
font-size: 1rem;
line-height: 1.7;
}
.benefits__grid {
max-width: var(--content-width);
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
}
.benefits__card {
background: var(--bg-accent);
border: 1px solid var(--border-color);
border-radius: var(--card-radius);
padding: 1.75rem;
transition: border-color 0.2s;
}
.benefits__card:hover {
border-color: rgba(79, 70, 229, 0.4);
}
.benefits__icon {
width: 40px;
height: 40px;
color: var(--accent-color);
margin-bottom: 1rem;
}
.benefits__icon svg {
width: 100%;
height: 100%;
}
.benefits__card-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-main);
margin-bottom: 0.5rem;
}
.benefits__card-desc {
font-size: 0.875rem;
color: var(--text-muted);
line-height: 1.6;
}
.benefits__cta {
text-align: center;
margin-top: 3rem;
}
@media (max-width: 1100px) {
.benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
.benefits__grid { grid-template-columns: 1fr; }
.benefits__title { font-size: 1.5rem; }
}
/* ===== HERO SECTION ===== */
.hero {
position: relative;
overflow: hidden;
padding: 5rem 2rem 4rem;
padding: 4rem 2rem 4rem;
border-bottom: 1px solid var(--border-color);
}
.hero__eyebrow-list {
list-style: none;
padding: 0;
margin: 0;
margin-top: 0;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.hero__eyebrow-list li {
list-style: none;
}
.hero__bg {
position: absolute;
inset: 0;
@@ -847,10 +1115,10 @@ h1, h2, h3, h4, h5, h6 {
.hero__inner {
position: relative;
z-index: 1;
max-width: 1200px;
max-width: var(--content-width);
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: 2fr 1fr;
gap: 4rem;
align-items: center;
}
@@ -925,6 +1193,7 @@ h1, h2, h3, h4, h5, h6 {
background: var(--accent-color);
color: #fff;
border: none;
text-decoration: none;
padding: 0.9rem 2rem;
border-radius: 10px;
font-size: 1rem;
@@ -1011,6 +1280,8 @@ h1, h2, h3, h4, h5, h6 {
/* ── Prawa strona (zdjęcie) ── */
.hero__image-wrap {
position: relative;
transform: scale(1.56);
transform-origin: center center;
}
/* warstwa 2: float — wszystko lata razem */
@@ -1030,7 +1301,7 @@ h1, h2, h3, h4, h5, h6 {
/* warstwa 4: obraz z blaskiem żarówki (żółty drop-shadow kierunkowy) */
.hero__robot-layers {
width: 100%;
max-width: 600px;
max-width: 1350px;
aspect-ratio: 1 / 1;
position: relative;
z-index: 1;
@@ -1193,6 +1464,114 @@ h1, h2, h3, h4, h5, h6 {
font-size: 1rem;
}
.coming-soon-page {
min-height: 80vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.coming-soon-content {
text-align: center;
max-width: 480px;
}
.coming-soon-badge {
display: inline-block;
background: rgba(79, 70, 229, 0.15);
border: 1px solid rgba(79, 70, 229, 0.4);
color: #818cf8;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 0.35rem 0.9rem;
border-radius: 999px;
margin-bottom: 1.5rem;
}
.coming-soon-title {
font-size: 2.5rem;
font-weight: 700;
color: var(--text-main);
margin-bottom: 1rem;
}
.coming-soon-desc {
color: var(--text-muted);
font-size: 1rem;
line-height: 1.7;
margin-bottom: 2rem;
}
.contact-content {
text-align: center;
max-width: 480px;
width: 100%;
}
.contact-form {
display: flex;
flex-direction: column;
gap: 0.75rem;
text-align: left;
}
.contact-form input,
.contact-form textarea {
background: var(--bg-accent);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
color: var(--text-main);
font-family: inherit;
font-size: 0.9rem;
padding: 0.75rem 1rem;
transition: border-color 0.2s;
width: 100%;
box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: var(--text-muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--accent-color);
outline: none;
}
.contact-form textarea {
resize: vertical;
}
.contact-success {
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.3);
border-radius: 0.5rem;
color: #6ee7b7;
padding: 1rem 1.5rem;
margin-bottom: 1rem;
}
.coming-soon-back {
background: none;
border: 1px solid var(--border-hover);
color: var(--text-muted);
padding: 0.6rem 1.4rem;
border-radius: 0.5rem;
font-size: 0.9rem;
cursor: pointer;
transition: color 0.2s, border-color 0.2s;
}
.coming-soon-back:hover {
color: var(--text-main);
border-color: var(--accent-color);
}
.error-banner {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);