2
respostas

[Dúvida] Foto não aparece!

A foto na esquerda do nome do cara não quer aparecer, se alguém puder dar um help! Segue,

<!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/reset.css">
<link rel="stylesheet" href="assets/css/estilo.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">
        <p class="cabecalho__perfil">Bruno Lopez</p>
        <button class="cabecalho_notificacao" aria-label="Notificacao"><i></i></button>
    </header>   
@font-face {
    font-family:'icones';
    src: url(../font/icones.ttf);}

body {background-color: #1D232A; font-family: "open sans", sans-serif,'icones'; color: #ffffff;}
@media screen and (min-width: 1440px) {body {display: grid; grid-template-columns: auto 1fr;}}

.cabecalho {display: flex; justify-content: space-between; align-items: center; 
background-color:#1D232A; 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;}
.cabecalho__perfil {display: none;}

@media screen and (min-width: 1440px) {.cabecalho {background-color: #1D232A; display: grid; column-gap: 32px;
     grid-template-columns: 1fr auto; padding: 16px 60px; height: 80px; box-sizing: border-box; }}

.cabecalho_menu {display: none;}
.cabecalho_logo {display: none;}
.cabecalho__perfil {display: grid; grid-template-columns: repeat(3, auto); column-gap: 8px; 
align-items: center; justify-self: flex-end; color: #95999C; padding: 8px 32px; 
border-right: 1px solid #95999C;}
.cabecalho__perfil i::before {content:""; display: block; width: 32px; height: 32px; 
    background-image: url(../img/profile_2.png); background-size: contain; 
background-repeat: no-repeat; background-position: center;}
.cabecalho__perfil::after {content: "\e90d"; color: #ffffff; font-size: 1.5rem;}


.menu-lateral {position: absolute; left: -100vw; display: flex; flex-direction: column; width: 75vw;
height: 100vh; background-color: #15191C; transition: left .25s; z-index: 99;}
.menu-lateral--ativo {left: 0; transition: left .25s;}

.menu-lateral__logo {width: 118px; align-self: center; padding: 16px;}
.menu-lateral__link {height: 64px; color: #95999C; padding-left: 64px; display: flex; align-items: center;}
.menu-lateral__link--ativo{color: #ffffff; padding-left: 56px; border-left: 8px solid #ffffff;}
.menu-lateral__link::before{content:"\e904"; width: 24px; height: 24px; font-size: 24px; position: absolute; left: 24px;}
.menu-lateral__link--inicio::before{content: "\e902";}
.menu-lateral__link--videos::before {content: "\e90e";}
.menu-lateral__link--picos::before {content: "\e909";}
.menu-lateral__link--integrantes::before {content: "\e903";}
.menu-lateral__link--camisas::before {content: "\e900";}
.menu-lateral__link--pinturas::before {content: "\e90a";}

.principal {padding: 24px 16px; display: grid; gap: 16px;}
.titulo-pagina {font-size: 1.5rem; font-weight: 700;}

.cartao {width: 100%; border-radius: 16px; overflow: hidden; background-color: #2C343A;}
.cartao--destaque {margin-bottom: 16px;}
.cartao__conteudo {padding: 16px; display: grid; gap: 8px; grid-template-columns: auto 1fr;}
.cartao__destaque {grid-column: span 2;}
.cartao__titulo {font-size: 1.2rem; font-weight: 700; grid-column: span 2;}
.cartao__perfil {color: #95999C; font-size: 0.9rem; grid-column: span 2;}
.cartao__info {display: flex; align-items: center; color: #95999C;}
.cartao__info--tempo::before {content: "\e90c"; margin-right: 8px;}
.cartao__info--dinheiro::before {content: "\e905"; margin-right: 8px;}
.cartao__info--visualizacao::before {content: "\e90f"; margin-right: 8px;}
.cartao__botao {display: flex; justify-content: center; align-items: center; background-color: #0480DC; width: 40px;
    height: 40px; border-radius: 10px; font-size: 0.9rem; justify-self: flex-end;}
.cartao__botao--play::before {content: "\e90b"; font-size: 24px;}
.cartao__botao--carrinho::before {content: "\e901"; font-size: 24px;}
.cartao__botao--destaque {width: 100%; grid-column: span 2;}
.cartao__botao--destaque::before {margin-right: 8px;}

.secao {display: grid; gap: 16px; overflow: hidden;}
.titulo-secao {font-size: 1.2rem; font-weight: 700;}
2 respostas

Boa tarde, João!

Nesses casos, a causa mais comum é o HTML não conseguir encontrar a img, mesmo declarando o endereço. Talvez, caso ainda não tenha feita, salvar a logo.svg dentro da mesma pasta do arquivo html resolva

Ate agora não entendi o que rolou, copiei o do prof e colei e deu certo. curioso!