Skip to content

Commit

Permalink
Fix height
Browse files Browse the repository at this point in the history
  • Loading branch information
cesalberca committed Aug 22, 2024
1 parent 4f34204 commit 8076ec6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function Blog({ params }: Params) {
}

return (
<Page>
<Page top>
<script
type="application/ld+json"
suppressHydrationWarning
Expand Down
5 changes: 3 additions & 2 deletions src/core/components/page/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type { FC, PropsWithChildren } from 'react'
import { Navbar } from '../navbar/navbar'
import { Footer } from '../footer/footer'
import { cn } from '@/lib/utils'

export const Page: FC<PropsWithChildren> = ({ children }) => {
export const Page: FC<PropsWithChildren<{ top?: boolean }>> = ({ children, top = false }) => {
return (
<div className="flex flex-col min-h-screen">
<Navbar className="w-full" />
<main className="flex-grow">{children}</main>
<main className={cn('flex-grow', { 'md:mt-[100px]': !top })}>{children}</main>
<Footer />
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/features/home/ui/home.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const HomePage: FC<{ articles: Article[] }> = ({ articles }) => {
]

return (
<Page>
<Page top>
<OpenToWork />
<Hero image="/assets/images/me-no-bg.png" imageClassName="object-top md:object-contain pt-16 mx-auto max-w-xl">
<header className="absolute inset-0 md:pt-[100px] flex flex-col justify-center wrapper">
Expand Down
22 changes: 0 additions & 22 deletions src/features/talks/delivery/talks/talks.page.tsx

This file was deleted.

0 comments on commit 8076ec6

Please sign in to comment.