Skip to content

Commit

Permalink
refactor: move stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Dec 11, 2023
1 parent c8d85a8 commit ae97c52
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
20 changes: 20 additions & 0 deletions app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { PropsWithChildren } from 'react';

import { Flex } from '@radix-ui/themes';

export default function AuthLayout(props: PropsWithChildren) {
return (
<Flex
direction="column"
gap="4"
mx="auto"
style={{
alignItems: 'center',
height: '100vh',
justifyContent: 'center',
}}
>
{props.children}
</Flex>
);
}
7 changes: 7 additions & 0 deletions app/(home)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { PropsWithChildren } from 'react';

import { AppLayout } from '@/components/layout/app-layout';

export default function HomeLayout({ children }: PropsWithChildren) {
return <AppLayout>{children}</AppLayout>;
}
File renamed without changes.
File renamed without changes.
9 changes: 3 additions & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
import type { Metadata } from 'next';
import type { PropsWithChildren } from 'react';

import { AppLayout } from '@/components/layout/app-layout';
import { ThemeProvider } from '@/components/theme-provider';
import '@/components/theme-provider/styles.css';

export const metadata: Metadata = {
description: 'Welcome, welcome, welcome!',
title: 'beecast',
description: 'Your hard-working AI podcast companion.',
title: 'Beecast',
};

export default function RootLayout({ children }: PropsWithChildren) {
return (
<html lang="en" suppressHydrationWarning>
<body>
<ThemeProvider>
<AppLayout>{children}</AppLayout>
</ThemeProvider>
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);
Expand Down

0 comments on commit ae97c52

Please sign in to comment.