feat: today embeds

This commit is contained in:
TresAbhi committed 2023-07-10 01:44:05 +00:00
1 parent 8f6388b42b
commit 438feefa83
8 files changed
+48 -10

No files matched your search

+6 -2
View File
@@ -3,9 +3,10 @@ import { theme } from '../stitches.config.js';
export interface WrapperProps {
children: ReactNode;
naked?: boolean;
}
export default function Wrapper({ children }: WrapperProps) {
export default function Wrapper({ children, naked }: WrapperProps) {
return (
<div
style={{
@@ -14,8 +15,11 @@ export default function Wrapper({ children }: WrapperProps) {
padding: 16,
gap: 32,
width: 640,
background: 'url(https://i.imgur.com/PhS06NJ.png)',
color: theme.colors.textHighContrast,
...(!naked && {
background: 'url(https://i.imgur.com/PhS06NJ.png)',
}),
}}
>
{children}