Skip to content

Commit c23ec0a

Browse files
committed
feat(layout): add new background
1 parent 1b93dcf commit c23ec0a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/@types/components.d.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { StaticImport } from 'next/dist/shared/lib/get-img-props'
12
import { type VariantProps } from 'class-variance-authority'
23
import { icons } from 'lucide-react'
34

@@ -39,11 +40,19 @@ type NextErrorProps = {
3940
reset: () => void
4041
}
4142

43+
interface IllustrationImageProps extends OptClassName {
44+
src: StaticImport
45+
width?: number
46+
height?: number
47+
alt?: string
48+
}
49+
4250
interface LinkProps
4351
extends React.AnchorHTMLAttributes<HTMLAnchorElement>,
4452
VariantProps<typeof linkVariants> {
4553
iconName?: keyof typeof icons
4654
iconFillColor?: iconColorProps['color']
55+
iconColor?: `#${string}`
4756
}
4857

4958
interface AnimationBacklightProps
@@ -55,7 +64,3 @@ interface OptReactCompProps<T>
5564
OptChildren,
5665
OptAsChild,
5766
OptProps<T> {}
58-
59-
interface IllustrationProps extends AnimationBacklightProps {
60-
children: React.ReactNode
61-
}

src/app/_layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DefaultLayout = ({ children }: Children) => (
1919
<RumAnalytics />
2020
<body
2121
className={cn(
22-
'flex min-h-screen items-center justify-center bg-background bg-gradient-to-b from-gray-950 from-50% via-gray-800 to-sky-500 font-sans antialiased',
22+
' flex min-h-screen items-center justify-center bg-gradient-to-b from-gray-900 from-40% via-gray-600 via-70% to-sky-300 font-sans antialiased',
2323
fontSans.variable
2424
)}
2525
>

0 commit comments

Comments
 (0)