Skip to content

Commit

Permalink
feat: add a background to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wfnuser committed Nov 8, 2024
1 parent 94bab15 commit 79cf13e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
21 changes: 21 additions & 0 deletions public/main-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/components/layout/shared/BaseLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ export default function BaseLayout({ children, mode = 'default' }: IBaseLayout)
</div>
<div className="flex flex-1 flex-col overflow-hidden">
<Header />
<main className="flex flex-1 flex-col gap-4 overflow-auto scroll-smooth p-4 lg:gap-6 lg:p-6" id="scrollRef">
<div>
<div className="mx-auto max-w-7xl px-4 py-4 lg:px-12">{children}</div>
<div className="pointer-events-none fixed bottom-0 left-[220px] right-0 top-14 z-[-1] overflow-hidden md:left-[220px] lg:left-[280px] lg:top-[60px]">
<Meteors number={20} />
<main
className="relative flex flex-1 flex-col gap-4 overflow-auto scroll-smooth p-4 lg:gap-6 lg:p-6"
id="scrollRef"
>
<div className="pointer-events-none fixed bottom-0 left-[220px] right-0 top-14 z-[-1] overflow-hidden md:left-[220px] lg:left-[280px] lg:top-[60px]">
<Meteors number={20} />
<div className="absolute bottom-0 right-0">
<img src="/main-background.svg" alt="background" className="h-auto w-[456px] opacity-30" />
</div>
</div>
<div className="relative z-10">
<div className="mx-auto max-w-7xl px-4 py-4 lg:px-12">{children}</div>
</div>
</main>
<Toaster />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function StatsCard({ title, value, icon }: { title: string; value: number; icon:

function ProjectRecommendations({ projects }: { projects: Project[] }) {
return (
<Card className="w-full">
<Card className="w-full bg-transparent">
<CardHeader>
<CardTitle className="flex items-center gap-2">
<LucideStar className="h-6 w-6" />
Expand Down

0 comments on commit 79cf13e

Please sign in to comment.