mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:19:45 +00:00
Парсинг команды
This commit is contained in:
1 parent
f4cfaf1864
commit
3defafc0e4
5 files changed
+52
-34
No files matched your search
+33
-23
@@ -1,35 +1,45 @@
|
||||
import { HashLink } from "react-router-hash-link";
|
||||
import { useMedia } from "@/modules";
|
||||
import { WithLoading } from "@/shared/Components/WithLoading/WithLoading";
|
||||
import "./Team.style.scss";
|
||||
import photo from "@/shared/assets/images/photo.png";
|
||||
import { HashLink } from "react-router-hash-link";
|
||||
|
||||
const Team = () => {
|
||||
const mockTeam = Array.from({ length: 7 }); // 7 обычных участников
|
||||
const { data: mediaData, isLoading, isError } = useMedia();
|
||||
const team = mediaData?.filter((el) => el.category === "team");
|
||||
console.log('team', team);
|
||||
|
||||
return (
|
||||
<div className="mainContainer">
|
||||
<h2 className="title">Наша команда</h2>
|
||||
<div className="grid">
|
||||
{mockTeam.map((_, index) => (
|
||||
<div key={index} className="card">
|
||||
<img src={photo} alt={`Член команды ${index + 1}`} />
|
||||
<WithLoading
|
||||
isLoading={isLoading}
|
||||
isError={isError}
|
||||
count={4}
|
||||
>
|
||||
<div className="mainContainer">
|
||||
<h2 className="title">Наша команда</h2>
|
||||
<div className="grid">
|
||||
{team?.map((el, index) => (
|
||||
<div key={index} className="card">
|
||||
<img src={el.src} alt={el.team_name} key={index} />
|
||||
<p className="caption">
|
||||
<span className="bold">{el.team_name}</span>
|
||||
<br />
|
||||
{el.team_job}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
<HashLink smooth to="/contact" className="card">
|
||||
<div className="joinContent">
|
||||
<span className="joinText">Хочу в команду</span>
|
||||
</div>
|
||||
<p className="caption">
|
||||
<span className="bold">Владимир Кутковой</span>
|
||||
<br />
|
||||
руководитель СКБ «КИТ»
|
||||
<span className="bold"></span>
|
||||
<br /><br />
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
<HashLink smooth to="/contact" className="card">
|
||||
<div className="joinContent">
|
||||
<span className="joinText">Хочу в команду</span>
|
||||
</div>
|
||||
<p className="caption">
|
||||
<span className="bold"></span>
|
||||
<br /><br />
|
||||
</p>
|
||||
</HashLink>
|
||||
</HashLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</WithLoading>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user