1
resposta

[Dúvida] MEUS ICONES NÃO ESTÃO APARECENDO :(

css:

@font-face {
    font-family: 'icones';
    src: url(../font/icones.ttf);
}
body {
    background-color: #1D232A;
    font-family: 'open sans', 'icones', sans-serif;
    color: #FFFFFF;
}
.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #15191C;
    padding: 8px 16px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
}
.cabecalho__menu i::before {
    content:"\e904";
    font-size: 24px;
}
.cabecalho__notificacao i::before {
    content: "\e906";
    font-size: 24px;
}
.cabecalho__logo {
    width: 40px;
}

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>HZC | HOME</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap">
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/reset.css">
</head>
<body>
    <header class="cabecalho">
        <button class="cabecalho__menu" aria-label="Menu"><i></i></button>
        <img src="assets/img/logo.svg" alt="Logotipo da HZC" class="cabecalho__logo">
        <button class="cabecalho__notificacao" aria-label="Notificação"><i></i></button>
    </header>

</body>
</html>

Insira aqui a descrição dessa imagem para ajudar na acessibilidade

Os ícones aparecem como uns quadradinhos

1 resposta

Tenta ver se é seu navegador