[Agregando] los assets para la imagen del hero, comprimiendo las imagenes y usando las media query del source en la imagen del hero
This commit is contained in:
parent
0b0e602e26
commit
f9ebd23ad7
BIN
assets/images/hero-desktop.png
Normal file
BIN
assets/images/hero-desktop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
assets/images/hero.png
Executable file → Normal file
BIN
assets/images/hero.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 11 KiB |
BIN
assets/images/hero1_5x.png
Normal file
BIN
assets/images/hero1_5x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
assets/images/hero2x.png
Normal file
BIN
assets/images/hero2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -11,6 +11,7 @@
|
|||
<?php require_once 'views/components/navbar.php' ?>
|
||||
<div class="hero">
|
||||
<picture class="hero__img-wrapper">
|
||||
<source srcset="<?= NABU_DIRECTORY['images'] ?>/hero-desktop.png" media="(min-width: 600px)">
|
||||
<img src="<?= NABU_DIRECTORY['images'] ?>/hero.png" alt="Imagen inspiración en cualquier momento y cualquier lugar" class="hero__img">
|
||||
</picture>
|
||||
<h1 class="hero__CTA">Lee, inspírate y escribe</h1>
|
||||
|
|
Loading…
Reference in a new issue