hero image

PHOTO EMBED

Fri May 07 2021 21:16:16 GMT+0000 (UTC)

Saved by @bilgehanevren #css

body, html {
    height: 100%;
    margin: 0;
}

.hero-image {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://unsplash.it/1800/1600');
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;
    position: relative;
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
}

.hero-button {
    width: 150px;
    height: 50px;
    font-size: 30px;
    font-weight: bold;
    background-color:tomato;
    border-radius:30% 10% 30%;
    border:none;
    outline:none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.hero-button:hover {
    background-color:red;
    color: #fff
}
content_copyCOPY

https://www.w3schools.com/howto/howto_css_hero_image.asp