Skip to content

Commit

Permalink
feat(home): create initial grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 authored Apr 14, 2024
1 parent b20cc06 commit 19f4a31
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
55 changes: 55 additions & 0 deletions src/app/_components/grid/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { GithubLink } from './cards/github-link'
import { GithubStats } from './cards/github-stats'
import { LatestPost } from './cards/latest-post'
import { LetterboxedLink } from './cards/letterboxed-link'
import { LinksCard } from './cards/links'
import { StacksCard } from './cards/stacks-card'

const Example = ({ label = 'Example' }: { label?: string }) => (
<div className="flex items-center justify-center rounded-xl bg-neutral-200 p-1 dark:bg-neutral-900">
{label}
</div>
)

export function Grid() {
return (
<div>
<div className="mt-8 grid grid-cols-3 gap-3 md:grid-cols-6">
<div className="col-span-3">
<GithubLink />
</div>
<div className="col-span-2">
<GithubStats />
</div>
<Example label="Music card" />
</div>

<div className="mt-3 grid grid-cols-3 md:grid-cols-6">
<div className="col-span-3 flex flex-col gap-3">
<div className="flex gap-3">
<div className="w-24">
<LetterboxedLink />
</div>
<div className="flex w-full flex-col gap-3 ">
<LinksCard />
<Example label="Wakatime stat" />
</div>
</div>

<div className="cols-span-3">
<StacksCard />
</div>
</div>

<div className="col-span-3 space-y-3 md:ml-3">
<div className="flex gap-3 ">
<Example label="Discord status" />

<LatestPost />
</div>
<Example label="Book card" />
</div>
</div>
</div>
)
}
6 changes: 4 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { Grid } from './_components/grid'
import { MainTitle } from './_components/main-title'
import { StartButton } from './_components/start-button'

export default function Page() {
return (
<div className="content-container content-vertical-spaces m-auto">
<div className="flex flex-col items-center gap-16">
<div className="content-container content-vertical-spaces m-auto space-y-28">
<div className="flex flex-col items-center gap-24">
<MainTitle />
<StartButton />
</div>
<Grid />
</div>
)
}

0 comments on commit 19f4a31

Please sign in to comment.