This commit is contained in:
Cloudburst 2022-09-02 09:31:42 +02:00 committed by GitHub
parent cb84fe0bd0
commit af4ca22632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

5
src/components/hero.css Normal file
View file

@ -0,0 +1,5 @@
.hero-full {
margin-left: -1.25em;
margin-right: -1.25em;
width: auto;
}

View file

@ -1,7 +1,9 @@
import React from "react" import React from "react"
import "./hero.css"
const Hero = ({bg, children}) => ( const Hero = ({bg, children}) => (
<div className="hero min-h-screen" style={{backgroundImage: `url(${bg})`}}> <div className="hero hero-full min-h-screen" style={{backgroundImage: `url(${bg})`}}>
<div className="hero-overlay bg-opacity-60" /> <div className="hero-overlay bg-opacity-60" />
<div className="hero-content text-center text-neutral-content"> <div className="hero-content text-center text-neutral-content">
<div className="max-w-md"> <div className="max-w-md">