1
resposta

Código ao fim da aula 6

products.html

<!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta charset="UTF-8">
        <title>Produtos - Barbearia Alura</title>
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="products.css">
    </head>
    <body>
        <header class="header">
            <h1 class="logo" ><img src="logo.png" alt=""></h1>
            <nav class="navigation">
                <ul>
                    <li><a href="index.html" class="nav-links">Home</a></li>
                    <li><a href="products.html" class="nav-links">Produtos</a></li>
                    <li><a href="contact.html" class="nav-links">Contato</a></li>
                </ul>
            </nav>
        </header>
        <main>
            <ul class="products">
                <li class="items-products">
                    <h2 class="name-product">Cabelo</h2>
                    <img src="cabelo.jpg" alt="">
                    <p class="description">Na tesoura ou máquina, como o cliente preferir</p>
                    <p class="price">R$25,00</p>
                </li>
                <li class="items-products">
                    <h2 class="name-product">Barba</h2>
                    <img src="barba.jpg"description alt="">
                    <p class="description">Corte e desenho profissional de máquina</p>
                    <p class="price">R$18,00</p>
                </li>
                <li class="items-products">
                    <h2 class="name-product">Cabelo + Barba</h2>
                    <img src="cabelo+barba.jpg" alt="">
                    <p class="description">Pacote completo de cabelo e barba</p>
                    <p class="price">R$35,00</p>
                </li>
            </ul>
        </main>
    </body>
</html>

products.css

.header {
    background: #bbb;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.navigation li {
    display: inline;
    margin-left: 15px;
}

.nav-links {
    text-transform: uppercase;
    color: #000;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;
}

.nav-links:hover {
    text-decoration: underline;
}

.products {
    width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.items-products {
    display: inline-block;
    text-align: center;
    width: 30%;
    vertical-align: top;
    border: solid #000 3px;
    margin: 0 1.5%;
    padding: 30px 20px;
    box-sizing: border-box;
    border-radius: 15px;
    transition: 10ms;
}

.items-products:hover {
    border-color: #bbb;
    border-width: 5px;
}

.items-products:hover h2{
    font-size: 32px;
}

.name-product {
    font-size: 30px;
    font-weight: bold;
}

.description{
    font-size: 18px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}
1 resposta

Olá, Régis. Tudo bem?

Obrigado por compartilhar seu código com seus colegas de estudo.

Parabéns e continue nesse caminho! =D