Skip to content

Commit

Permalink
feat: delete anchor from header
Browse files Browse the repository at this point in the history
  • Loading branch information
nsdonato committed Mar 31, 2024
2 parents 4d77731 + 09883d6 commit 3d7ba68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/[menu]/[submenu]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export default async function SubmenuPage({ params }: SubmenuPageProps) {

return (
<>
<Header title={data.title} description={data.description} />
<Header
href={data.title}
title={data.title}
description={data.description}
/>
<div className='grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 mt-8'>
{data.pageItems.map(item => (
<Card key={item.imgPlaceholder} item={item} />
Expand Down
1 change: 1 addition & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default async function Home() {
return (
<>
<Header
href='Inicio'
title='Inicio'
description={['En Internet siempre veo las mismas preguntas:']}
/>
Expand Down
3 changes: 2 additions & 1 deletion components/header/header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
type HeaderProps = {
title: string
description: string[]
href?: string
}

export const Header = ({ title, description }: HeaderProps) => {
export const Header = ({ title, description, href }: HeaderProps) => {
return (
<header>
<h1 className='text-5xl font-bold mb-10 underline underline-offset-8 decoration-pink-500 block'>
Expand Down

0 comments on commit 3d7ba68

Please sign in to comment.