dodawanie ogloszen poprawki
Deploy Polska Lokalnie / deploy (push) Successful in 10s

This commit is contained in:
2026-09-03 23:28:43 +02:00
parent d973b44e47
commit 282b5e424f
4 changed files with 1277 additions and 157 deletions
+660 -35
View File
@@ -4306,6 +4306,556 @@ a.city-card:hover {
min-width: 0;
}
/* Animacja pojawienia tresci kroku przy nawigacji Dalej/Wstecz (remount przez key={currentStep}). */
.add-step-anim {
animation: addStepIn 0.32s ease;
display: grid;
gap: 18px;
}
@keyframes addStepIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.add-step-anim { animation: none; }
}
/* === Kreator dodawania oferty: lewy stepper | formularz | podglad === */
.add-layout.add-layout-wizard {
grid-template-columns: 244px minmax(0, 1fr) 340px;
}
.add-steps {
align-self: start;
position: sticky;
top: 92px;
}
.add-steps-list {
display: flex;
flex-direction: column;
list-style: none;
margin: 0;
padding: 0;
}
.add-steps-item {
position: relative;
}
/* linia laczaca markery */
.add-steps-item:not(:last-child)::after {
background: #e3e9f1;
content: "";
left: 27px;
position: absolute;
top: 50px;
width: 2px;
height: calc(100% - 26px);
}
.add-steps-item.done:not(:last-child)::after {
background: #12a764;
}
.add-steps-btn {
align-items: flex-start;
background: none;
border: 0;
border-radius: 10px;
cursor: pointer;
display: flex;
gap: 12px;
padding: 20px 12px;
text-align: left;
width: 100%;
}
.add-steps-btn:disabled {
cursor: default;
}
.add-steps-item.active .add-steps-btn {
background: #eaf7f0;
}
.add-steps-marker {
align-items: center;
background: #ffffff;
border: 2px solid #dbe3ec;
border-radius: 50%;
color: #9aa7b6;
display: flex;
flex: 0 0 auto;
font-size: 13px;
font-weight: 900;
height: 30px;
justify-content: center;
position: relative;
width: 30px;
z-index: 1;
}
.add-steps-item.active .add-steps-marker,
.add-steps-item.done .add-steps-marker {
background: #12a764;
border-color: #12a764;
color: #ffffff;
}
.add-steps-marker svg { height: 15px; width: 15px; }
.add-steps-text strong {
color: #22314a;
display: block;
font-size: 14px;
font-weight: 850;
}
.add-steps-item.active .add-steps-text strong { color: #0f7a48; }
.add-steps-text small {
color: #8794a6;
display: block;
font-size: 12px;
font-weight: 600;
line-height: 1.35;
margin-top: 3px;
}
/* Naglowek "Wybrana opcja" */
.add-selected-option {
align-items: center;
background: #ffffff;
border: 1px solid #edf1f6;
border-radius: 12px;
box-shadow: 0 8px 22px rgba(24, 35, 57, 0.05);
display: flex;
gap: 16px;
padding: 18px 22px;
}
.add-selected-badge {
align-items: center;
background: #e6f8ef;
border-radius: 12px;
color: #0f9257;
display: flex;
flex: 0 0 auto;
height: 52px;
justify-content: center;
width: 52px;
}
.add-selected-badge svg { height: 26px; width: 26px; }
.add-selected-text small {
color: #8794a6;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.add-selected-text h2 {
color: #12a764;
font-size: 22px;
font-weight: 900;
margin: 2px 0 3px;
}
/* Wynajem = fioletowy akcent naglowka, sprzedaz = zielony (domyslny wyzej). */
.add-selected-option.rent .add-selected-badge {
background: #eee9fd;
color: #6f5be0;
}
.add-selected-option.rent .add-selected-text h2 {
color: #6f5be0;
}
.add-selected-text p {
color: #6f7f92;
font-size: 13px;
font-weight: 600;
margin: 0;
}
/* Dolny pasek nawigacji kreatora: Wstecz | Dalej */
.add-wizard-nav {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
margin-top: 4px;
}
.add-nav-back {
align-items: center;
background: #ffffff;
border: 1px solid #d7dfea;
border-radius: 10px;
color: #45566d;
cursor: pointer;
display: inline-flex;
font-size: 14px;
font-weight: 800;
gap: 6px;
padding: 12px 20px;
}
.add-nav-back svg {
height: 15px;
transform: rotate(90deg);
width: 15px;
}
.add-nav-back:hover {
background: #f3f6fa;
border-color: #c2cddb;
}
.add-nav-next {
align-items: center;
background: #12a764;
border: 0;
border-radius: 10px;
color: #ffffff;
cursor: pointer;
display: inline-flex;
font-size: 14px;
font-weight: 850;
gap: 8px;
padding: 13px 24px;
}
.add-nav-next svg { height: 16px; width: 16px; }
.add-nav-next:hover { background: #0f8f55; }
@media (max-width: 1240px) {
.add-layout.add-layout-wizard {
grid-template-columns: 210px minmax(0, 1fr) 300px;
}
}
/* Podglad trzyma sie prawej kolumny dluzej (waskie kolumny) - dzieki temu jest widoczny takze
w Operze, ktora zabiera czesc szerokosci na wbudowany panel boczny. */
@media (max-width: 1040px) {
.add-layout.add-layout-wizard {
grid-template-columns: 180px minmax(0, 1fr) 265px;
}
}
/* Dopiero ponizej 860px podglad schodzi pod formularz (na pelna szerokosc). */
@media (max-width: 860px) {
.add-layout.add-layout-wizard {
grid-template-columns: 170px minmax(0, 1fr);
}
.add-layout-wizard .add-sidebar {
grid-column: 1 / -1;
grid-template-columns: repeat(2, minmax(0, 1fr));
position: static;
}
}
@media (max-width: 720px) {
.add-layout.add-layout-wizard {
grid-template-columns: 1fr;
}
.add-steps {
position: static;
}
}
/* Wyśrodkowany kontener ekranu wyboru (hero + dwie karty) - jak na makiecie. */
.add-chooser-view {
margin: 0 auto;
max-width: 1060px;
}
/* Hero ekranu wyboru: tytul z podkresleniem/iskra, podtytul, plakietki i strzalki. */
.add-hero {
padding: 6px 0 4px;
position: relative;
text-align: center;
}
.add-hero-title {
color: #14223a;
font-size: 40px;
font-weight: 950;
letter-spacing: -0.02em;
line-height: 1.1;
margin: 6px 0 0;
}
.add-hero-hl {
color: #12a764;
position: relative;
white-space: nowrap;
}
.add-hero-underline {
color: #16b866;
height: 16px;
left: -1%;
position: absolute;
top: 96%;
width: 102%;
}
.add-hero-spark {
color: #16b866;
height: 26px;
position: absolute;
right: -30px;
top: -12px;
width: 28px;
}
.add-hero-sub {
color: #64748b;
font-size: 15px;
font-weight: 650;
margin: 24px auto 0;
max-width: 560px;
}
.add-hero-badges {
display: flex;
flex-wrap: wrap;
gap: 14px;
justify-content: center;
margin: 24px 0 4px;
}
.add-hero-badge {
align-items: center;
background: #ffffff;
border: 1px solid #edf1f6;
border-radius: 12px;
box-shadow: 0 6px 18px rgba(24, 35, 57, 0.05);
display: flex;
gap: 11px;
padding: 12px 18px;
}
.add-hero-badge-ic {
flex: 0 0 auto;
height: 26px;
width: 26px;
}
.add-hero-badge-ic svg {
height: 26px;
width: 26px;
}
.add-hero-badge strong {
color: #14223a;
display: block;
font-size: 14px;
font-weight: 850;
line-height: 1.2;
}
.add-hero-badge small {
color: #8794a6;
display: block;
font-size: 12px;
font-weight: 650;
margin-top: 2px;
}
.add-hero-arrow {
height: 92px;
position: absolute;
top: 74px;
width: 116px;
}
.add-hero-arrow.left { color: #16b866; left: 4px; }
.add-hero-arrow.right { color: #7c6cf0; right: 4px; }
/* Ekran startowy dodawania oferty: dwie karty "Chcę sprzedać / wynająć" z listą kategorii. */
.add-chooser {
display: grid;
gap: 24px;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-top: 26px;
}
.add-chooser-card {
background: #ffffff;
border: 1px solid #edf1f6;
border-radius: 18px;
box-shadow: 0 14px 36px rgba(24, 35, 57, 0.06);
padding: 24px;
}
.add-chooser-head {
align-items: flex-start;
display: flex;
gap: 14px;
margin-bottom: 18px;
}
.add-chooser-badge {
align-items: center;
border-radius: 12px;
display: flex;
flex: 0 0 auto;
height: 46px;
justify-content: center;
width: 46px;
}
.add-chooser-badge svg {
height: 22px;
width: 22px;
}
.add-chooser-card.sell .add-chooser-badge {
background: #e6f8ef;
color: #0f9257;
}
.add-chooser-card.rent .add-chooser-badge {
background: #eee9fd;
color: #6f5be0;
}
.add-chooser-scene {
align-self: flex-start;
flex: 0 0 auto;
height: auto;
margin-left: auto;
width: 150px;
}
.add-chooser-card.sell .add-chooser-scene { color: #7cc6a1; }
.add-chooser-card.rent .add-chooser-scene { color: #a99cea; }
.add-chooser-head h2 {
color: #14223a;
font-size: 20px;
margin: 2px 0 4px;
}
.add-chooser-head p {
color: #6f7f92;
font-size: 13px;
font-weight: 650;
line-height: 1.4;
margin: 0;
}
.add-chooser-list {
display: grid;
gap: 10px;
}
.add-chooser-item {
align-items: center;
background: #ffffff;
border: 1px solid #e3e9f1;
border-radius: 10px;
color: #22314a;
cursor: pointer;
display: flex;
gap: 12px;
padding: 14px 16px;
text-align: left;
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
width: 100%;
}
.add-chooser-item:hover {
border-color: #b9c6d6;
box-shadow: 0 6px 16px rgba(24, 35, 57, 0.08);
transform: translateY(-1px);
}
.add-chooser-card.sell .add-chooser-item:hover { border-color: #7fd3aa; }
.add-chooser-card.rent .add-chooser-item:hover { border-color: #b3a6f2; }
.add-chooser-item-icon {
align-items: center;
color: #8793a3;
display: flex;
flex: 0 0 auto;
}
.add-chooser-card.sell .add-chooser-item-icon { color: #0f9257; }
.add-chooser-card.rent .add-chooser-item-icon { color: #6f5be0; }
.add-chooser-item-icon svg { height: 18px; width: 18px; }
.add-chooser-item-label {
flex: 1;
font-size: 14px;
font-weight: 800;
min-width: 0;
}
/* Strzalka wiersza wskazuje w prawo (chevron domyslnie w dol). */
.add-chooser-item > svg:last-child {
color: #aab4c2;
flex: 0 0 auto;
height: 16px;
transform: rotate(-90deg);
width: 16px;
}
.add-change-category {
align-items: center;
background: none;
border: 0;
color: #0f9257;
cursor: pointer;
display: inline-flex;
font-size: 13px;
font-weight: 800;
gap: 4px;
margin-top: 10px;
padding: 0;
}
.add-change-category svg {
height: 14px;
transform: rotate(90deg);
width: 14px;
}
.add-change-category:hover { text-decoration: underline; }
@media (max-width: 1040px) {
.add-hero-arrow {
display: none;
}
}
@media (max-width: 760px) {
.add-chooser {
grid-template-columns: 1fr;
}
.add-hero-title {
font-size: 30px;
}
}
@media (max-width: 480px) {
.add-chooser-scene {
display: none;
}
}
.add-form-card,
.listing-preview-card,
.add-side-card,
@@ -4664,13 +5214,6 @@ a.city-card:hover {
padding-bottom: 18px;
}
.add-location-subtitle {
color: #5f6f83;
font-size: 12px;
font-weight: 750;
margin: -7px 0 18px;
}
.add-location-grid {
display: grid;
gap: 14px;
@@ -4737,6 +5280,52 @@ a.city-card:hover {
width: 256px;
}
/* Przelacznik mapa/satelita w rogu podgladu lokalizacji. */
.real-location-maptype {
background: rgba(255, 255, 255, 0.92);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(24, 35, 57, 0.18);
display: inline-flex;
left: 12px;
overflow: hidden;
position: absolute;
top: 12px;
z-index: 4;
}
.real-location-maptype button {
background: transparent;
border: 0;
color: #45566d;
cursor: pointer;
font-size: 12px;
font-weight: 800;
padding: 7px 14px;
}
.real-location-maptype button.active {
background: #12a764;
color: #ffffff;
}
/* "Plama" przyblizonej lokalizacji - obszar zamiast pinezki. Rozmiar animuje sie przy zmianie zoomu. */
.add-location-area {
animation: addLocationAreaIn 0.35s ease;
background: rgba(18, 167, 100, 0.2);
border: 2px solid rgba(18, 167, 100, 0.8);
border-radius: 50%;
pointer-events: none;
position: absolute;
transform: translate(-50%, -50%);
transition: width 0.3s ease, height 0.3s ease;
z-index: 2;
}
@keyframes addLocationAreaIn {
from { opacity: 0; }
to { opacity: 1; }
}
.real-location-pin {
cursor: grab;
pointer-events: auto;
@@ -4894,6 +5483,25 @@ a.city-card:hover {
padding: 24px;
}
/* Naglowek "Dodaj zdjecia" wewnatrz karty (w ramce razem z zawartoscia). */
.add-card-heading {
margin-bottom: 18px;
}
.add-card-heading h2 {
color: #14223a;
font-size: 22px;
font-weight: 900;
margin: 0;
}
.add-card-heading p {
color: #6f7f92;
font-size: 13px;
font-weight: 650;
margin: 5px 0 0;
}
.photo-upload-box {
align-items: center;
border: 1px dashed #cbd6e2;
@@ -4930,6 +5538,13 @@ a.city-card:hover {
margin-top: 6px;
}
.photo-upload-box .photo-upload-or {
color: #6f7f92;
font-size: 13px;
font-weight: 700;
margin-top: 4px;
}
.photo-tip-note {
align-items: center;
background: #f3fbf7;
@@ -5021,7 +5636,13 @@ a.city-card:hover {
}
.photo-tour-input small {
bottom: auto;
color: #5f748a;
font-size: 11px;
font-weight: 700;
margin-top: 6px;
position: static;
right: auto;
}
.photo-tour-actions {
@@ -5169,25 +5790,40 @@ a.city-card:hover {
.empty-photos-box {
align-items: center;
background: #f8fbfd;
border: 1px solid #e0e8f0;
border: 1px dashed #d4deea;
border-radius: 8px;
color: #526171;
display: flex;
gap: 10px;
min-height: 64px;
padding: 14px;
flex-direction: column;
gap: 6px;
justify-content: center;
min-height: 150px;
padding: 24px;
text-align: center;
}
.empty-photos-box svg {
color: #10a15e;
font-size: 22px;
color: #8fc4a8;
font-size: 30px;
margin-bottom: 4px;
}
.empty-photos-box p {
.empty-photos-graphic {
height: auto;
margin-bottom: 6px;
width: 118px;
}
.empty-photos-box strong {
color: #14223a;
font-size: 14px;
font-weight: 900;
}
.empty-photos-box small {
color: #6f7f92;
font-size: 12px;
font-weight: 800;
line-height: 1.4;
margin: 0;
font-weight: 700;
}
.sort-photos-button {
@@ -11814,19 +12450,6 @@ a.city-card:hover {
display: none;
}
.add-layout {
grid-template-columns: 1fr;
}
.add-sidebar {
grid-template-columns: repeat(2, minmax(0, 1fr));
position: static;
}
.listing-preview-card {
grid-row: span 2;
}
.add-footer-benefits > div {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@@ -33649,11 +34272,13 @@ a.listing-detail-back {
gap: 8px;
}
.add-phone-row select {
flex: 0 0 auto;
max-width: 152px;
padding-left: 10px;
padding-right: 6px;
/* Picker kraju (flaga + kod) - kompaktowy, rownej wysokosci z polem numeru. */
.add-phone-row .phone-country-picker {
flex: 0 0 118px;
}
.add-phone-row .phone-country-trigger {
height: 44px;
}
.add-phone-row input {