Skip to content

Commit

Permalink
fix(pages): remove (main) route group
Browse files Browse the repository at this point in the history
  • Loading branch information
codingcodax committed Jul 24, 2024
1 parent 3ca23f2 commit c5ed9fc
Show file tree
Hide file tree
Showing 47 changed files with 37 additions and 107 deletions.
28 changes: 0 additions & 28 deletions apps/www/src/app/(main)/layout.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions apps/www/src/app/(main)/page.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextPage } from 'next';
import { clsx } from 'clsx/lite';

import { Hero } from '~/app/(main)/_components/Hero';
import { Hero } from '~/app/_components/Hero';
import { fadeUp } from '~/config/animations';
import { ContactMe } from '../_components/ContactMe';
import { Block, BlockContent, BlockTitle } from './_components/Block';
Expand Down
File renamed without changes.
22 changes: 21 additions & 1 deletion apps/www/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { cn } from '@acme/ui';
import '~/app/globals.css';

import { env } from '~/env';
import { Footer } from './_components/Footer';
import { Header } from './_components/Header';
import { Providers } from './providers';

export const metadata: Metadata = {
Expand Down Expand Up @@ -49,7 +51,25 @@ export default function RootLayout(props: { children: React.ReactNode }) {
GeistMono.variable,
)}
>
<Providers>{props.children}</Providers>
<Providers>
<div className='relative flex flex-col rounded-3xl border border-grey-line bg-grey-base'>
<div className='absolute left-0 top-[68px] h-px w-full bg-grey-line' />

<Header />

<div className='relative mx-auto w-full max-w-screen-lg'>
<div className='absolute -left-px top-0 h-full w-px bg-grey-line' />
<div className='absolute left-1/3 top-0 h-full w-px border border-dashed border-grey-bg-hover' />
<div className='absolute right-1/3 top-0 h-full w-px border border-dashed border-grey-bg-hover' />
<div className='absolute -right-px top-0 h-full w-px bg-grey-line' />

{props.children}
<Footer />
</div>

<div className='absolute bottom-[68px] left-0 h-px w-full bg-grey-line' />
</div>
</Providers>
</body>
</html>
);
Expand Down
11 changes: 11 additions & 0 deletions apps/www/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { NextPage } from 'next';

const Page: NextPage = () => {
return (
<div>
<p>Page page</p>
</div>
);
};

export default Page;
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import type { NextPage } from 'next';

import { ContactMe } from '~/app/(main)/_components/ContactMe';
import { Hero } from '~/app/(main)/_components/Hero';
import { ContactMe } from '~/app/_components/ContactMe';
import { Hero } from '~/app/_components/Hero';
import {
Project,
ProjectContent,
ProjectDescription,
ProjectImage,
ProjectTitle,
} from '~/app/(main)/_components/Project';
} from '~/app/_components/Project';
import {
Section,
SectionDescription,
SectionTitle,
} from '~/app/(main)/_components/Section';
} from '~/app/_components/Section';
import { projects, sideProjects } from '~/config/projects';

const Work: NextPage = () => {
Expand Down

0 comments on commit c5ed9fc

Please sign in to comment.