Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Meus designs responsivos da página de produtos e de contato - Barbearia Alura

CSS

body {
    font-family: 'Montserrat Alternates', sans-serif;
}

header {
    background: #CCCCCC;
    padding: 20px 0;
}

.caixa {
    position: relative;
    width: 940px;
    margin: 0 auto;
}

nav {
    position: absolute;
    top: 100px;
    right: 0;
}

nav li {
    display: inline;
    margin: 0 0 0 15px;
}

nav a {
    text-transform: uppercase;
    color: #000000;
    font-weight: bold;
    font-size: 22px;
    text-decoration: none;

}

nav a:hover {
    color: #C98512;
    text-decoration: underline;
}

.produtos {
    width: 940px;
    margin: 0 auto;
    padding: 50px 0;
}

.produtos li {
    display: inline-block;
    text-align: center;
    width: 30%;
    vertical-align: top;
    margin: 0 1.5%;
    padding: 30px 20px;
    box-sizing: border-box;
    border: 2px solid #000000;
    border-radius: 10px;
}

.produtos li:hover {
    border-color: #C98512;
}

.produtos li:active {
    border-color: blue;

}
.produtos li:hover h2 {
    font-size: 35px;
}

.produtos h2 {
    font-size: 30px;
    font-weight: bold;
}

.produto-descricao {
    font-size: 18px;
}

.produto-preco {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

footer {
    text-align: center;
    background: url("bg.jpg");
    padding: 40px 0;
}
.copyright {
    color: #FFFFFF;
    padding: 20px;
    font-size: 12px;
}


form {
    margin: 40px 0;
}

form label, form legend {
    display: block;
    font-size: 20px;
    margin: 0 0 10px;
}

.input-padrao {
    display: block;
    margin: 0 0 20px;
    padding: 10px 25px;
    width: 50%;
}

.checkbox {
    margin: 20px 0px;
}

.enviar {
    width:40%;
    padding: 15px 0;
    background: orange;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: 1s all;
    border:  none;
}

.enviar:hover {
    background: darkorange;
    transform: scale(1.2);
}

table {
    margin: 20px 40px;
}

thead {
    background: #555555;
    color: white;
    font-weight: bold;
}

td, th {
    border: 1px solid #000000;
    padding: 8px 15px ;
}

/* css da página inicial */

.banner {
    width: 100%;

}

.principal {
    background: #FEFEFE;
    width: 940px;
    margin: 0 auto;
}

.titulo-principal {
    text-align: center;
    font-size: 2em;
    margin: 1em 0 1em;
    clear: left;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}


.titulo-principal:before {
    content: "[ ";
}

.titulo-principal:after {
    content: " ]";
}


.principal p {
    margin: 0 0 1em;
}

.principal strong {
    font-weight: bold;
}

.principal em {
    font-style: italic;
}

.mapa {
    padding: 3em 0;
    background:linear-gradient(#FEFEFE, #888888);

}

.mapa-conteudo {
    width: 940px;
    margin: 0 auto;
}

.mapa p {
    margin: 2em 0;
    text-align: center;
}

.beneficios {
    padding: 3em 0;
    background: #888888;
}

.imagem-beneficios {
    width: 60%;
    opacity: 0.7;
    transition: 400ms;
    box-shadow: 10px 10px 30px #000000;
}

.imagem-beneficios:hover {
    opacity: 1;
}

.conteudo-beneficios {
    width: 640px;
    margin: 0 auto;
}

.lista-beneficios {
    width: 40%;
    display: inline-block;
    vertical-align: top;
}

.itens {
    line-height: 1.5em;
}

.itens:first-child {
    font-weight: bold;
}


.utensilios {
    width: 120px;
    float: left;
    margin: 0 20px 20px 0;
}


.video {
    margin: 2em auto;
    width: 560px;
}

@media screen and (max-width:  480px) {
    .caixa, .principal, .conteudo-beneficios, .mapa-conteudo, .video, .produtos {
        width: auto;
    }

    h1 {
        text-align: center;
    }

    nav {
        position: static;
    }

    .lista-beneficios, .imagem-beneficios {
        width: 100%;
    }

    .produtos li {
        display: block;
        width: auto;
        margin: 10px 0;
    }

    .input-padrao {
        border-width: 3px;
    }

    fieldset {
        margin: 20px 0 30px 0;
    }


    table {
        margin: 20px auto;
    }

}
3 respostas

HTML da página de produtos:

<!DOCTYPE html>
<html lang="pt-br">
    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="style.css">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300&display=swap" rel="stylesheet">

        <title>Produtos - Barbearia Alura</title>

    </head>

    <body>

        <header>
            <div class="caixa">
                <h1><img src="logo.png" alt="logo da barbearia alura"></h1>

                <nav>
                    <ul>
                        <li><a href="index.html"> Home</a></li>
                        <li><a href="produtos.html"> Produtos</a></li>
                        <li><a href="contato.html"> Contato </a></li>
                    </ul>
                </nav>
            </div>
        </header>

        <main>

            <ul class="produtos">
                <li>
                    <h2>Cabelo </h2>
                    <img src="cabelo.jpg">
                    <p class="produto-descricao">Na tesoura ou máquina, como o cliente preferir</p>
                    <p class="produto-preco">R$ 25,00</p>
                </li>
                <li>
                    <h2>Barba </h2>
                    <img src="barba.jpg">
                    <p class="produto-descricao">Corte e desenho profissional de barba</p>
                    <p class="produto-preco">R$ 18,00</p>
                </li>
                <li>
                    <h2>Cabelo + Barba </h2>
                    <img src="cabelo+barba.jpg">
                    <p class="produto-descricao">Pacote completo de cabelo e barba</p>
                    <p class="produto-preco">R$ 35,00</p> 
                </li>
            </ul>


        </main>    

        <footer>
            <img src="logo-branco.png">
            <p class="copyright">&copy; Copyright Barbearia Alura - 2019</p>
        </footer>

    </body>
</html>

HTML da página de contato

<!DOCTYPE html>
<html lang="pt-br">
    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="style.css">
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300&display=swap" rel="stylesheet">

        <title>Contato</title>

    </head>

    <body>

        <header>
            <div class="caixa">
                <h1><img src="logo.png" alt="logo da barbearia alura"></h1>

                <nav>
                    <ul>
                        <li><a href="index.html"> Home</a></li>
                        <li><a href="produtos.html"> Produtos</a></li>
                        <li><a href="contato.html"> Contato </a></li>
                    </ul>
                </nav>
            </div>
        </header>

        <main>
            <form>
                <label for="nomesobrenome">Nome e sobrenome</label>
                <input type="text" id="nomesobrenome" class="input-padrao" required>

                <label for="email">E-mail</label>
                <input type="email" id="email" class="input-padrao" required placeholder="seuemail@dominio.com">

                <label for="telefone">Telefone</label>
                <input type="tel" id="telefone" class="input-padrao" required placeholder="(xx) xxxxx-xxxx">


                <label for="mensagem">Mensagem</label>
                <textarea cols="30" rows="10" id="mensagem" class="input-padrao"></textarea>

                <fieldset>

                    <legend>Como prefere o nosso contato?</legend>
                    <label for="radio-email"><input type="radio" name="contato" value="email" id="radio-email">E-mail</label>


                    <label for="radio-telefone"><input type="radio" name="contato" value="telefone" id="radio-telefone">Telefone</label>


                    <label for="radio-whatsapp"><input type="radio" name="contato" value="whatsapp" id="radio-whatsapp" checked>Whatsapp</label>

                </fieldset>

                <fieldset>

                    <legend>Qual horário prefere ser atendido?</legend>

                        <select>
                            <option>Manhã</option>
                            <option>Tarde</option>
                            <option>Noite</option>
                        </select>

                </fieldset>

                <label class="checkbox"><input type="checkbox" checked>Gostaria de receber nossas novidades por e-mail?</label>

                <input type="submit" value="Enviar formulário" class="enviar">

            </form>    

            <table>
                <thead>
                    <tr>
                        <th>Dia</th>
                        <th>Horário</th>
                    </tr>
                </thead>

                <tbody>
                    <tr>
                        <td>Segunda</td>
                        <td>08:00 - 20:00</td>
                    </tr>
                    <tr>
                        <td>Quarta</td>
                        <td>08:00 - 20:00</td>
                    </tr>
                    <tr>
                        <td>Sexta</td>
                        <td>08:00 - 20:00</td>
                    </tr>
                </tbody>    
            </table>

        </main>    


        <footer>
            <img src="logo-branco.png" alt="logo da barberia alura">
            <p class="copyright">&copy; Copyright Barbearia Alura - 2019</p>
        </footer>

    </body>
</html>
solução!

Oi Raquel, tudo bem?

Parabéns por ter concluído os desafios! Você pode postar nas redes sociais e marcar a Alura :D

Bons estudos!