Skip to content

Commit

Permalink
Center everything
Browse files Browse the repository at this point in the history
  • Loading branch information
adamplesnik committed Jan 16, 2025
1 parent 53a837f commit 4c2d38f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
5 changes: 4 additions & 1 deletion src/components/WorkTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const WorkTile = ({

return (
<div
className={clsx('relative flex w-full flex-col gap-8 px-6 pb-12 sm:px-8 md:px-12', className)}
className={clsx(
'relative mx-auto flex w-full max-w-screen-2xl flex-col gap-8 px-6 pb-12 sm:px-8 md:px-12',
className
)}
>
<span id={id} className="absolute -top-12 block" />
{top && (
Expand Down
32 changes: 18 additions & 14 deletions src/pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ import { catchDetail, catchPhrase, freeTime, tech } from '@/content/phrases'
const About = () => {
return (
<>
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{catchPhrase}
</Paragraph>
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{catchDetail}
</Paragraph>
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{tech}
</Paragraph>
<Paragraph big className="mb-24 px-6 sm:px-8 md:px-12">
{freeTime}
</Paragraph>
<div className="-mb-24 flex flex-col gap-2 rounded-lg bg-cv-light p-6 sm:p-8 md:p-12 dark:bg-cv-dark">
<CvTimeline />
<div className="mx-auto w-full max-w-screen-2xl">
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{catchPhrase}
</Paragraph>
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{catchDetail}
</Paragraph>
<Paragraph big className="mb-12 px-6 sm:px-8 md:px-12">
{tech}
</Paragraph>
<Paragraph big className="mb-24 px-6 sm:px-8 md:px-12">
{freeTime}
</Paragraph>
</div>
<div className="-mb-24 flex flex-col gap-2 bg-cv-light pb-12 dark:bg-cv-dark">
<div className="mx-auto w-full max-w-screen-2xl p-6 sm:p-8 md:p-12">
<CvTimeline />
</div>
</div>
</>
)
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import vkjbPreview from '@/content/vkjb/images/vkjb-home.jpg'

const Home = () => {
return (
<>
<div className="mx-auto w-full max-w-screen-2xl">
<Intro />
<div className="flex flex-col gap-12 p-6 sm:px-8 md:px-12">
<WorkPreviewTile
Expand All @@ -24,7 +24,7 @@ const Home = () => {
titleRight
/>
</div>
</>
</div>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/partials/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Layout = ({ outlet }: { outlet?: ReactNode | null }) => {
</div>
</div>
</div>
<div className="mx-auto w-full max-w-screen-2xl">{outlet ? outlet : <Outlet />}</div>
{outlet ? outlet : <Outlet />}
<Footer />
</div>
)
Expand Down

0 comments on commit 4c2d38f

Please sign in to comment.