(props)
| 5 | import { styled } from "@mui/material"; |
| 6 | |
| 7 | const 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 | |
| 28 | export default SectionHeader; |
nothing calls this directly
no outgoing calls
no test coverage detected