File tree 3 files changed +4
-14
lines changed
3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,7 @@ export default async function SubmenuPage({ params }: SubmenuPageProps) {
17
17
18
18
return (
19
19
< >
20
- < Header
21
- href = { data . title }
22
- title = { data . title }
23
- description = { data . description }
24
- />
20
+ < Header title = { data . title } description = { data . description } />
25
21
< div className = 'grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 mt-8' >
26
22
{ data . pageItems . map ( item => (
27
23
< Card key = { item . imgPlaceholder } item = { item } />
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ export default async function Home() {
9
9
return (
10
10
< >
11
11
< Header
12
- href = 'Inicio'
13
12
title = 'Inicio'
14
13
description = { [ 'En Internet siempre veo las mismas preguntas:' ] }
15
14
/>
Original file line number Diff line number Diff line change 1
1
type HeaderProps = {
2
2
title : string
3
3
description : string [ ]
4
- href ?: string
5
4
}
6
5
7
- export const Header = ( { title, description, href } : HeaderProps ) => {
6
+ export const Header = ( { title, description } : HeaderProps ) => {
8
7
return (
9
8
< header >
10
- < h1
11
- id = { `${ href ?? title } ` }
12
- className = 'text-5xl font-bold mb-10 underline underline-offset-8 decoration-pink-500 block' >
13
- < a className = 'pointer-events-none' href = { `#${ href ?? title } ` } >
14
- { title }
15
- </ a >
9
+ < h1 className = 'text-5xl font-bold mb-10 underline underline-offset-8 decoration-pink-500 block' >
10
+ { title }
16
11
</ h1 >
17
12
{ description . map ( ( parrafo , index ) => (
18
13
< p key = { index } className = 'text-balance last-of-type:pt-4' >
You can’t perform that action at this time.
0 commit comments