fixed code

This commit is contained in:
SlimusMinus
2026-08-11 00:24:07 +03:00
parent c50b75eece
commit 7f59ee1f38
95 changed files with 3623 additions and 2830 deletions

View File

@@ -1,14 +1,3 @@
import bagIcon from '../assets/bag.png';
import catIcon from '../assets/cat.png';
import dogIcon from '../assets/dog.png';
import phoneIcon from '../assets/phone.png';
import walletIcon from '../assets/wallet.png';
import parcelIcon from '../assets/parcel.png';
import cardIcon from '../assets/card.png';
import headphonesIcon from '../assets/headphones.png';
import watchIcon from '../assets/watch.png';
import glassesIcon from '../assets/glasses.png';
export const API_URL = process.env.REACT_APP_API_URL || "http://localhost:8080";
export function getImageUrl(filename) {
@@ -18,16 +7,4 @@ export function getImageUrl(filename) {
return `${API_URL}/api/v1/files/${filename}`;
}
export const FLOAT_ICONS = [
{ icon: bagIcon, top: "5%", left: "5%", delay: "0s" },
{ icon: catIcon, top: "5%", right: "5%", delay: "1s" },
{ icon: dogIcon, top: "22%", left: "25%", delay: "0.4s" },
{ icon: phoneIcon, top: "25%", right: "17%", delay: "1.4s" },
{ icon: walletIcon, top: "42%", left: "15%", delay: "2s" },
{ icon: parcelIcon, top: "45%", right: "25%", delay: "0.7s" },
{ icon: cardIcon, top: "65%", left: "6%", delay: "1.7s" },
{ icon: headphonesIcon, top: "65%", right: "2%", delay: "2.4s" },
{ icon: watchIcon, bottom: "10%", left: "24%", delay: "3s" },
{ icon: glassesIcon, bottom: "5%", right: "20%", delay: "3.4s" },
];
export const SUPPORT_EMAIL = import.meta.env.VITE_SUPPORT_EMAIL || "support@nakhodka.app";

View File

@@ -24,5 +24,8 @@ export const EMPTY_FORM = {
phone: "",
date: "",
address: "",
rulesAccepted: false
rulesAccepted: false,
reward: false
};
export const MAX_PHOTO_SIZE_MB = 5;

View File

@@ -1,32 +1,7 @@
export const markers = [
{ id: "paw", x: 14, y: 18, delay: "0.4s", icon: "paw" },
{ id: "key", x: 72, y: 22, delay: "1.1s", icon: "key" },
{ id: "phone", x: 60, y: 62, delay: "1.8s", icon: "phone" },
{ id: "bag", x: 26, y: 70, delay: "2.4s", icon: "bag" },
{id: "paw", x: 14, y: 18, delay: "0.4s", icon: "paw"},
{id: "key", x: 72, y: 22, delay: "1.1s", icon: "key"},
{id: "phone", x: 60, y: 62, delay: "1.8s", icon: "phone"},
{id: "bag", x: 26, y: 70, delay: "2.4s", icon: "bag"},
];
export const steps = [
{
n: "01",
title: "Разместите объявление",
text: "Опишите пропажу или находку: фото, место, приметы. Это занимает меньше минуты.",
},
{
n: "02",
title: "Система ищет совпадения",
text: "Находка сама сравнивает похожие объявления по фото, месту и описанию — по всему городу.",
},
{
n: "03",
title: "Свяжитесь и заберите",
text: "Как только есть совпадение — пишите в чат прямо в приложении и договоритесь о встрече.",
},
];
export const stats = [
{ value: "12 480", label: "находок опубликовано" },
{ value: "9 200+", label: "воссоединений с хозяевами" },
{ value: "24/7", label: "поиск работает без перерыва" },
];