MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / SectionHeader

Function SectionHeader

src/components/SectionHeader/index.tsx:7–26  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

5import { styled } from "@mui/material";
6
7const SectionHeader = (props) => {
8 const { title, url, imgClass } = props;
9 const Header = styled("header")({
10 backgroundColor: "#FFF0DD",
11 });
12
13 return (
14 <Header className="h-[32rem] pt-[6.5rem] max-md:h-[18rem] max-md:pt-[6.2rem]">
15 <div className="mx-auto flex h-full max-w-[1536px] items-center justify-between px-[10.4rem] max-md:px-[1.6rem]">
16 <h1 className="mt-[-2rem] text-[56px] font-semibold leading-[1.2] text-stone-950 max-md:mt-0 max-md:text-[3.2rem]">
17 {title}
18 </h1>
19 <img
20 src={url}
21 className={`max-h-full object-contain ${imgClass} max-md:max-h-[90%]`}
22 />
23 </div>
24 </Header>
25 );
26};
27
28export default SectionHeader;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected