Skip to content

Instantly share code, notes, and snippets.

@leofernandesmo
Created May 16, 2022 10:05
Show Gist options
  • Save leofernandesmo/4b95b9f8bd7f2d3e7121c78be2371fe6 to your computer and use it in GitHub Desktop.
Save leofernandesmo/4b95b9f8bd7f2d3e7121c78be2371fe6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Manipulando o DOM</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- fonte -->
<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=Cinzel:wght@600&display=swap" rel="stylesheet">
<!-- fonte -->
<section class="container">
<div class="trono"></div>
<p id="texto">O inverno está chegando</p>
</section>
</body>
</html>
* {
margin: 0;
padding: 0;
}
body {
background: var(--cor-fundo);
color: var(--cor-fonte);
font-family: 'Cinzel', serif;
font-size: 38px;
user-select: none;
transition: 2s;
}
.container {
height: 90vh;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.trono {
background-image: url("https://caelum-online-public.s3.amazonaws.com/1369-alura-mais-dark-mode/trono-preto.png");
background-size: cover;
width: 450px;
height: 350px;
margin-bottom: 30px;
position: relative;
top: 10%;
right: 5%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment