Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banner blog #23

Merged
merged 5 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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%;
}
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import Banner from "@/components/Banner";
import Categories from "@/components/Categories";
import Blog from "@/components/Blog";

export default function Home() {
return (
<main>
<Banner />
<Categories />
<Blog />
</main>
);
}
20 changes: 20 additions & 0 deletions src/components/Blog/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import Link from "next/link";
import Image from "next/image";
import { FC } from "react";

const Blog: FC = () => {
return (
<section className='w-full bg-black'>
<Link className="bg-cover bg-center bg-no-repeat bg-fixed bg-banner flex items-center justify-center max-w-[1920px] mx-auto px-4 ms:px-0" 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>
);
};
export default Blog;
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
Loading