mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Adding support light and dark in email layout, by changing the Portabase logo.
This commit is contained in:
@@ -10,11 +10,19 @@ export const EmailLayout = ({ children, preview }: PropsWithChildren<{ preview?:
|
|||||||
<Tailwind>
|
<Tailwind>
|
||||||
<Html>
|
<Html>
|
||||||
<Head />
|
<Head />
|
||||||
{preview ? <Preview>{preview}</Preview> : <Preview>Please check your mails</Preview>}
|
<Body className="mx-auto my-auto bg-white px-2 font-sans">
|
||||||
<Body className="bg-gray-100 py-4" style={{ fontFamily: "Arial, sans-serif" }}>
|
{preview ? <Preview>{preview}</Preview> : <Preview>Please check your mails</Preview>}
|
||||||
<Container className="bg-white border border-gray-200 p-12">
|
<Container className="mx-auto my-[40px] max-w-[465px] rounded border border-[#eaeaea] border-solid p-[20px]">
|
||||||
<Img src={`${baseUrl}/images/logo-dark.png`} width="200" height="auto" alt="Logo" />
|
<Section className="mt-[32px]">
|
||||||
<Section>{children}</Section>
|
<Img
|
||||||
|
src={`${baseUrl}/images/logo.png`}
|
||||||
|
width="50"
|
||||||
|
height="auto"
|
||||||
|
alt="Logo"
|
||||||
|
className="mx-auto my-0"
|
||||||
|
/>
|
||||||
|
</Section>
|
||||||
|
{children}
|
||||||
</Container>
|
</Container>
|
||||||
</Body>
|
</Body>
|
||||||
</Html>
|
</Html>
|
||||||
|
|||||||
Reference in New Issue
Block a user