-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #705 from UpstreetAI/embed-transparent
Embed transparency
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
import { cn } from '@/lib/utils' | ||
import { GeistSans } from 'geist/font/sans' | ||
import { GeistMono } from 'geist/font/mono' | ||
|
||
interface EmbedLayoutProps { | ||
children: React.ReactNode | ||
} | ||
|
||
export default async function EmbedLayout({ children }: EmbedLayoutProps) { | ||
return ( | ||
<div className="relative flex h-full w-full"> | ||
{children} | ||
</div> | ||
<body | ||
className={cn( | ||
'font-[Aller-Regular] antialiased', | ||
GeistSans.variable, | ||
GeistMono.variable | ||
)} | ||
style={{ | ||
backgroundPosition: 'center', | ||
backgroundSize: 'cover', | ||
}} | ||
> | ||
<div className="relative flex h-full w-full"> | ||
{children} | ||
</div> | ||
</body> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters