Skip to content

Commit

Permalink
Add images to banner blog component
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMejia77 committed Mar 7, 2024
1 parent 77db388 commit b784f2e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
6 changes: 5 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

body, html, :root {
height: 100%;
}
18 changes: 10 additions & 8 deletions src/components/Blog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import { FC } from "react";

const Blog: FC = () => {
return (
<section className="w-full bg-black">
<Link
href={"https://actualizatucarro.blogspot.com"}
className="bg-cover bg-center bg-no-repeat bg-fixed bg-banner flex items-center justify-center max-w-[1920px] mx-auto p-10"
target="_blank"
>
<span className="text-9xl text-white">BLOG</span>
</Link>
<section className='w-full bg-black'>
<Link className="bg-cover bg-no-repeat bg-fixed bg-banner flex items-center justify-center max-w-[1920px] mx-auto" href={'https://actualizatucarro.blogspot.com'} target='_blank'>
<Image
src={'/images/blog.webp'}
alt="Título del Blog"
width={668}
height={363}
loading="lazy"
/>
</Link>
</section>
);
};
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
extend: {
backgroundImage: {
banner:
'url("https://i0.wp.com/citymagazine.si/wp-content/uploads/2022/05/2023-audi-rs5-coupe-competition.jpg?fit=1920%2C1080&ssl=1")',
'url("/images/backgroundBlog.webp")',
},

maxWidth: {
Expand Down

0 comments on commit b784f2e

Please sign in to comment.