[Arreglar] la foto de fondo del post para que sea agregada dinamicamente desde el html
This commit is contained in:
parent
26e2382f83
commit
bee737cb92
|
@ -38,10 +38,6 @@ header {
|
|||
min-width: 320px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
background-image: url('https://images.unsplash.com/photo-1603993097397-89c963e325c7?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
box-shadow: inset 0 0 0 100vh rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
|
@ -56,6 +52,13 @@ header::before {
|
|||
background: rgba(0, 0, 0, .5);
|
||||
}
|
||||
|
||||
.post__back-image {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* Sobrescribe los estilos del componente nav */
|
||||
|
||||
.nav {
|
||||
|
|
|
@ -46,6 +46,8 @@
|
|||
|
||||
<!-- HTML body -->
|
||||
<header>
|
||||
<!-- Imagen de fondo dl post -->
|
||||
<img src="/assets/images/cover.svg" alt="Imagen de fondo del post" class="post__back-image">
|
||||
<!-- Nav bar -->
|
||||
<?php require_once 'views/components/navbar.php' ?>
|
||||
<div class="post__head">
|
||||
|
|
Loading…
Reference in New Issue