website/src/components/hero.jsx

14 lines
374 B
React
Raw Normal View History

2022-08-26 13:46:21 +00:00
import React from "react"
const Hero = ({bg, children}) => (
<div className="hero min-h-screen" style={{backgroundImage: `url(${bg})`}}>
<div className="hero-overlay bg-opacity-60" />
<div className="hero-content text-center text-neutral-content">
<div className="max-w-md">
{children}
</div>
</div>
</div>
)
export default Hero