Bom dia,
Minha fonte não carrega e não munda a fonte, e não faço ideia do porquê.
Meu código HTML:
<!DOCTYPE hmtl>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>Produtos - Barbearia Alura</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div class="caixa">
<h1><img src="logo.png"></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="produtoDescricao">Na tesoura ou máquina, como o cliente preferir.</p>
<p class="produtoPreco">R$ 25,00</p>
</li>
<li>
<h2>Barba</h2>
<img src="barba.jpg">
<p class="produtoDescricao">Corte e desenho profissional de barba.</p>
<p class="produtoPreco">R$ 18,00</p>
</li>
<li>
<h2>Cabelo + Barba</h2>
<img src="cabelo+barba.jpg">
<p class="produtoDescricao">Pacote completo de cabelo e barba.</p>
<p class="produtoPreco">R$ 35,00</p>
</li>
</ul>
</main>
<footer>
<img src="logo-branco.png">
<p class="copyright">© Copyright Barbearia Alura - 2019</p>
</footer>
</body>
</html>
Meu código CSS:
body {
font-family: 'Montserrat', cursive;
}
header {
background: #BBBBBB;
padding: 20px 0;
}
.caixa {
width: 940px;
position: relative;
margin: 0 auto;
}
nav {
position: absolute;
top: 110px;
right: 0px;
}
nav li {
display: inline;
margin: 0 0 0 15px;
}
nav a {
text-transform: uppercase;
color: #000000;
font-weight: bold;
font-size: 20px;
text-decoration: none;
}
nav a:hover {
color: #DDD;
text-decoration: underline;
}
main {
width: 940px;
margin: 0 auto;
}
.produtos {
width: 940px;
margin: 30px auto;
}
.produtos li {
display: inline-block;
text-align: center;
width: 30%;
vertical-align: top;
padding: 50px 0;
margin: 0 1.5%;
padding: 30px 20px;
box-sizing: border-box;
border: 2px solid #000000;
border-radius: 5px 40px 40px 40px;
}
.produtos li:hover {
border-color: #DDD;
}
.produtos li:active {
border-color: #088C19;
}
.produtos li:hover h2 {
transform: scale(1.13);
}
.produtos h2 {
font-size: 30px;
font-weight: bold;
}
.produtoDescricao {
font-size: 18px;
}
.produtoPreco {
font-size: 22px;
font-weight: bold;
margin-top: 10px;
}
form {
margin: 40px 0;
}
form label, form legend {
display: block;
font-size: 20px;
margin: 0 0 10px;
}
.inputPadrao {
display: block;
margin: 0 0 20px;
padding: 10px 25px;
width: 50%;
}
.checkBox {
margin: 20px 0 20px;
}
.enviar {
width: 40%;
padding: 15px 0px;
background: orange;
color: white;
font-weight: bold;
font-size: 20px;
border: none;
border-radius: 5px 20px 20px 20px;
transition: 500ms all;
cursor: pointer;
}
.enviar:hover {
background: blue;
transform: scale(1.20);
}
table {
margin: 20px 0 40px;
}
thead {
background: #555555;
color: white;
font-weight: bold;
}
td, th {
border: 1px solid #000000;
padding: 15px 8px;
}
footer {
text-align: center;
background: url("bg.jpg");
padding: 40px 0;
}
.copyright {
color: white;
font-size: 13px;
margin-top: 20px;
}
.banner {
width: 100%;
}
.titulo-principal {
text-align: center;
font-size: 2em;
margin: 0 0 1em;
clear: left;
}
.principal p {
margin: 0 0 1em;
}
.principal strong {
font-weight: bold;
}
.principal em {
font-style: italic;
}
.utensilios {
width: 15%;
float: left;
margin: 0 20px 0;
}
.imagemBeneficios {
width: 60%;
}
O fato curioso é que eu fiz um código de teste e funcionou.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Isso é um título</title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Montserrat', sans-serif;
}
</style>
</head>
<body>
<footer>
<h1>Título</h1>
<ul>
<li>Opção 1</li>
<li>Opção 2</li>
<li>Opçao 3</li>
</ul>
</footer>
<main>
<h2>Blá</h2>
<p>
Parágrafo 1
</p>
<p>
Parágrafo 2
</p>
</main>
<footer>
<p>©Gilberto.</p>
</footer>
</body>
</html>