1
resposta

Desafio 1

Meu código ficou assim: Acabei criando uma Section, pois acredito que em uma aplicação real não vamos poder ficar aplicando muitas alteração no main já que isso iria impactar em todo o site.

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">
    <link rel="stylesheet" href="css1.css">
    <title>EX1</title>
</head>
<body>
    <main>
        <section class="sec">
            <div>
                <p>Me centraliza!</p>
            </div>
        </section>
    </main>
</body>
</html>

CSS

body {
    background-image: url("https://alura-start-public.s3.amazonaws.com/alura%2B/bg---alura-.png");
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Fjalla One', sans-serif;
}

main {
    height: 100vh;
    width: 100vw;
}

.sec {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

div {
    width: 240px;
    height: 110px;
    font-size: 36px;
    font-weight: bold;
    background-color: #fff;
    border-radius: 4px;
    padding: 0 10px;
    background-image: linear-gradient(315deg, #4dccc6 0%, #96e4df 74%);
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3),
        -4px -4px 6px 0 rgba(116, 125, 136, .2),
        inset -4px -4px 6px 0 rgba(255, 255, 255, .2),
        inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
}
1 resposta

Olá David, tudo bem?

Excelente!

Obrigada por compartilhar sua solução, tenho certeza que ajudará outros alunos também!

Qualquer dúvida ou dificuldade, estamos por aqui!

Abraços e bons estudos =)