mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:39:45 +00:00
Докрутил парсер, добавил стили проектов
This commit is contained in:
1 parent
ac25dff111
commit
f22179654b
3 files changed
+145
-4
No files matched your search
@@ -1,10 +1,11 @@
|
||||
import { ReactNode } from "react";
|
||||
|
||||
import MediaBlock from "@/widgets/MediaBlock/MediaBlock";
|
||||
|
||||
import { PageContent, PageHeader } from "@/widgets/WpPost";
|
||||
import { App } from "@/shared/types/app";
|
||||
|
||||
import "./Projects.scss";
|
||||
|
||||
interface WpPostProps {
|
||||
post: App.WpPostPage;
|
||||
children?: ReactNode;
|
||||
@@ -15,7 +16,7 @@ export default function WpPost({
|
||||
children,
|
||||
}: WpPostProps) {
|
||||
return (
|
||||
<>
|
||||
<div className={post.categories?.includes('projects') ? "project" : ""}>
|
||||
<PageHeader className="header">
|
||||
<h1>{post.title}</h1>
|
||||
</PageHeader>
|
||||
@@ -29,6 +30,6 @@ export default function WpPost({
|
||||
})}
|
||||
{children}
|
||||
</PageContent>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user