mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:39:45 +00:00
Merge branch 'master' into fixes
This commit is contained in:
commit
db811f140a
4 files changed
+5
-5
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
import WPAPI from "wpapi";
|
import WPAPI from "wpapi";
|
||||||
|
|
||||||
export const wp = new WPAPI({
|
export const wp = new WPAPI({
|
||||||
endpoint: "https://test.skbkit.ru/wp-json/",
|
endpoint: "https://kit.sfedu.ru/wp-json/",
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "admin",
|
password: "admin",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const CardListTemplate = ({
|
|||||||
gridConfig = { desktop: 3, tablet: 2, mobile: 1 },
|
gridConfig = { desktop: 3, tablet: 2, mobile: 1 },
|
||||||
title = "Наши лаборатории",
|
title = "Наши лаборатории",
|
||||||
}: CardListProps) => {
|
}: CardListProps) => {
|
||||||
const itemsArray = Object.values(items);
|
const itemsArray = Object.values(items).reverse();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
.swiper-slide.single {
|
.swiper-slide.single {
|
||||||
.slide-image {
|
.slide-image {
|
||||||
width: auto;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default function WpPost({
|
|||||||
</PageContent>
|
</PageContent>
|
||||||
);
|
);
|
||||||
} else if (el.type === "slider") {
|
} else if (el.type === "slider") {
|
||||||
const slider = <NewSlider key={index} images={el.value} slidesPerView={4} />;
|
const slider = <NewSlider key={index} images={el.value} />;
|
||||||
return isSpecialTitle ? slider : (
|
return isSpecialTitle ? slider : (
|
||||||
<PageContent key={index} className="content">
|
<PageContent key={index} className="content">
|
||||||
{slider}
|
{slider}
|
||||||
@@ -63,4 +63,4 @@ export default function WpPost({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user