2
respostas

Projeto não ficou igual ao do instrutor

Boa tarde!

Segui o passo a passo do instrutor, porém ao carregar a página, os links e alguns espaçamentos não ficaram iguais ao do instrutor.

HTML:

<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Apeperia</title>
    <link rel = "preconnect" href = "https://fonts.gstatic.com">
    <link href = "https://fonts.googleapis.com/css2? family = Montserrat: ital, wght @ 0,300; 0,700; 1.400 & family = Aberto + Sans: ital, wght @ 0,400; 0,700; 1,300 & display = swap "rel =" stylesheet ">
    <link href="css/reset.css" rel="stylesheet">
    <link href="css/cabecalho.css" rel="stylesheet">
    <link href="css/chamada.css" rel="stylesheet">
</head>
<body>
    <header class="cabecalho">
        <img src="img/logo-apeperia.svg" alt="Logo da Apeperia" class="cabecalho_logo">
        <nav class="cabecalho_navegacao">
            <ul>
                <li class="cabecalho_link"><a href="#">Sobre</a></li>
                <li class="cabecalho_link"><a href="#">Planos</a></li>
                <li class="cabecalho_link"><a href="#">Blog</a></li>
                <li class="cabecalho_link"><a href="#">Destaques</a></li>
                <li class="cabecalho_link"><a href="#">Institucional</a></li>
                <li class="cabecalho_link"><a href="#">Contato</a></li>
            </ul>
        </nav>
    </header>
    <main>
        <section class="chamada">
            <h1 class="chamada_titulo">Aplicativos Na Medida</h1>
            <p class="chamada_texto">Apeperia tem um jeito inovador de comparar e montar aplicativos para pequenas e médias empresas.</p>
            <a href="#" class="chamada_botao">Conheça os planos</a>
        </section>
    </main>
</body>
</html>

CSS

.cabecalho {
    color: #FFF;

    width: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: .75rem;
    padding-bottom: .75rem;

    border-bottom: 1px solid #103D4A;

    position: absolute;
}

.cabecalho__logo {
    margin-bottom: 1rem;
}

.cabecalho__navegacao {
    text-align: center;
}

.cabecalho__link {
    font-size: 1.1rem;

    display: inline-block;

    margin-right: .7rem;
    margin-bottom: 1.25rem;
    margin-left: .7rem;
}
.chamada  {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #FFF;
    text-align: center;

    background-color: #00161C;

    padding-top: 12.25rem;
    padding-bottom: 2.5rem;
}

.chamada__titulo {
    font-family: 'Montserrat', serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;

    margin-bottom: 1.5rem;
}

.chamada__texto {
    font-size: 1.25rem;
    line-height: normal;

    margin: 0 auto 2.5rem;
}

.chamada__botao {
    width: 100%;
}
2 respostas

Tem que postar o código do instrutor para avaliarem as diferenças.

Olá, o meu também não estava igual. Veja, o problema está em "class" o termo utiliza dois underlines assim oh .cabeclho__logo e você está usando somente um .cabelho_logo

é uma coisinha de nada que faz toda diferença

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software