CameraBuy / web / assets / css / home.css
home.css
Raw
/*showroom*/

#showroom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(100vh - 4rem);
    max-height: 60vw;
    background: linear-gradient(var(--main-color), var(--variant-color));

    & img{
        max-height: 100%;
        object-fit: contain;
        margin-right: 10%;
        width: 50%;
        margin-left: 10%;
    }
    
    & div{
        display: flex;
        flex-direction: column;
        margin-left: 10%;
        width: 30%;
    }
    
    & h2{
        font-family: Winco;
        font-size: 3.5rem;
        font-weight: 800;
    }
    
    & p{
        font-size: 1.5rem;
    }

    & a{
        margin-top: 2rem;
    }
}




/*suggestions*/

#suggestions{
    margin-top: 2rem;
    margin-bottom: 2rem;
    height: calc(100vh - 4rem);
    max-height: 70vw;
    min-height: fit-content;

    & h1{
        font-family: Winco;
        font-size: 3.5rem;
        font-weight: 800;
        padding-bottom: 1.5rem;
        text-align: center;
    }

    > div{
        
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        height: 80%;
        min-height: fit-content;

        > a{
            width: 25%;
            text-align: center;
            background-color: var(--variant-color);
            border: 3px splid var(--variant-color);
            border-radius: 3rem;
            height: 90%;
            min-height: fit-content;

            & img{
                height: 40%;
                width: 90%;
                margin-top: 2rem;
                margin-bottom: 0.5rem;
                object-fit: contain;
            }

            & div{
                width: 80%;
                height: 50%;
                display: flex;
                flex-direction: column;
                text-align: left;
                margin: auto;
                position: relative;
                min-height: fit-content;
                margin-top: 3vw;

                & .tag{
                    margin-bottom: 1rem;
                }

                & h3{
                    font-size: 1.5rem;
                }

                & .productdiscription{
                    width: 100%;
                    height: 3rem;
                    overflow: hidden;
                    overflow: hidden;
                    padding: 1px;
                }


                & .price{
                    font-size: 2rem;
                    font-weight: 2000;
                }
            }
        }
        
        & .highlighted{
            width: 30%;
            height: 100%;

            & .price{
                font-size: 3rem;
            }

        }
    } 
}

#banner_to_shop{
    background-color: var(--contrast-color);
    height: fit-content;
    padding-top: 2rem;
    padding-bottom: 2.8rem;
    text-align: center;

    & h2{
        font-family: Winco;
        font-size: 3rem;
        font-weight: 800;
        padding-bottom: 2rem;
        color: var(--main-color);
    }

    & a{
        margin-top: 2rem;
    }

}