Skip to content

Commit

Permalink
refactor: layout struct
Browse files Browse the repository at this point in the history
  • Loading branch information
canerakdas committed Jan 16, 2024
1 parent a6ee4a8 commit 280e68b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 5 additions & 1 deletion app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const LocalizedNotFound: FC = async () => {

return (
<WithLayout layout="centered.hbs">
<MDXRenderer Component={MDXContent} />
<div className="glowingBackdrop" />

<main>
<MDXRenderer Component={MDXContent} />
</main>
</WithLayout>
);
};
Expand Down
6 changes: 1 addition & 5 deletions layouts/New/Centered.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ const CenteredLayout: FC<PropsWithChildren> = ({ children }) => (
<>
<WithNavBar />

<div className={styles.centeredLayout}>
<div className="glowingBackdrop" />

<main>{children}</main>
</div>
<div className={styles.centeredLayout}>{children}</div>

<WithFooter />
</>
Expand Down
2 changes: 2 additions & 0 deletions layouts/New/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import styles from './layouts.module.css';

const HomeLayout: FC<PropsWithChildren> = ({ children }) => (
<CenteredLayout>
<div className="glowingBackdrop" />

<main className={styles.homeLayout}>{children}</main>
</CenteredLayout>
);
Expand Down

0 comments on commit 280e68b

Please sign in to comment.