-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from Actualiza-Tu-Carro/126-bannerblog
126 bannerblog
- Loading branch information
Showing
5 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Image from 'next/image'; | ||
import React from 'react'; | ||
import { Images } from '~/assets/img'; | ||
|
||
const Banner: React.FC = () => { | ||
return ( | ||
<div className="relative h-360"> | ||
<div className=" inset-0"> | ||
{/* Fondo del banner (imagen) */} | ||
<div className="h-full bg-no-repeat bg-bottom"> | ||
<Image | ||
src={Images.banners.BannerBg} | ||
alt="Fondo del Blog" | ||
layout="fill" // Ocupar todo el espacio disponible | ||
objectFit="cover" // Ajustar la imagen sin distorsionarla | ||
/> | ||
</div> | ||
</div> | ||
<div className="absolute inset-0 bg-background-dm opacity-50"></div> | ||
<div className="inset-0 flex items-center justify-center"> | ||
{/* Imagen del título con efecto de paralaje */} | ||
<Image | ||
src={Images.banners.BannerTitle} | ||
alt="Título del Blog" | ||
className="w-1920 transition-transform transform -translate-y-1/5" // Clases para el efecto de paralaje | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Banner; |