This commit is contained in:
Batyr 2025-06-09 16:56:23 +05:00
parent 9949a41b6d
commit f1e4b7ebb5
7 changed files with 28 additions and 20 deletions

File diff suppressed because one or more lines are too long

1
dist/assets/index-DNPeJrzc.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/index.html vendored
View File

@ -66,9 +66,9 @@
})(window, document, "script", "dataLayer", "GTM-NK394LVK");
</script>
<title>Turkmen Textile</title>
<script type="module" crossorigin src="/assets/index-5DKcgZkB.js"></script>
<script type="module" crossorigin src="/assets/index-DNPeJrzc.js"></script>
<link rel="modulepreload" crossorigin href="/assets/react-vendor-CE_Ks92h.js">
<link rel="modulepreload" crossorigin href="/assets/ui-library-D1ylK2mW.js">
<link rel="modulepreload" crossorigin href="/assets/ui-library-Kiotq6MA.js">
<link rel="stylesheet" crossorigin href="/assets/index-Cw8L3ftj.css">
</head>
<body>

View File

@ -43,17 +43,25 @@ const Hero = () => {
else return value2;
};
const banners = [
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng1.jpg",
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
];
const banners = {
en: [
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg",
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg",
],
ru: [
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg",
"https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg",
],
};
const getBanners = () => (lang === "ru" ? banners.ru : banners.en);
return (
<section className="">
{pathname === "/impressions-tm" ? (
<div ref={emblaRef} className="embla overflow-hidden">
<div className="flex">
{banners.map((banner, i) => (
{getBanners().map((banner, i) => (
<img
key={i}
src={banner}

View File

@ -6,11 +6,11 @@
"link": "/impressions"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng1.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng1.jpg",
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg",
"link": "/impressions-tm"
}
],
@ -24,7 +24,7 @@
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg",
"link": "/impressions-tm"
}
],
@ -38,7 +38,7 @@
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_eng2.jpg",
"link": "/impressions-tm"
}
]

View File

@ -6,11 +6,11 @@
"link": "/impressions"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng1.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg",
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg",
"link": "/impressions-tm"
}
],
@ -20,11 +20,11 @@
"link": "/impressions"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng1.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg",
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg",
"link": "/impressions-tm"
}
],
@ -34,11 +34,11 @@
"link": "/impressions"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng1.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru1.jpg",
"link": "/impressions-tm"
},
{
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/eng2.jpg",
"path": "https://turkmentextile.turkmenexpo.com/app/storage/app/media/new2/web_ru2.jpg",
"link": "/impressions-tm"
}
]