mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on sending email. Now ok.
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import {
|
||||
Body,
|
||||
Button,
|
||||
Container,
|
||||
Head,
|
||||
Html,
|
||||
Img,
|
||||
Link,
|
||||
Preview,
|
||||
Section,
|
||||
Tailwind,
|
||||
Text,
|
||||
} from "@react-email/components";
|
||||
import * as React from "react";
|
||||
import { PropsWithChildren } from "react";
|
||||
@@ -31,7 +28,7 @@ export const EmailLayout = ({ children, preview }: PropsWithChildren<{ preview?:
|
||||
<Container className="bg-white border border-gray-200 p-12">
|
||||
<Img
|
||||
src={`${baseUrl}/logo-title-black.png`}
|
||||
width="400"
|
||||
width="200"
|
||||
height="auto"
|
||||
alt="Logo"
|
||||
/>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@react-email/button";
|
||||
import { Html } from "@react-email/html";
|
||||
import * as React from "react";
|
||||
|
||||
export default function HelloEmail() {
|
||||
return (
|
||||
<Html>
|
||||
<Button
|
||||
href="https://example.com"
|
||||
style={{ background: "#000", color: "#fff" }}
|
||||
>
|
||||
Hello Charles
|
||||
</Button>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
@@ -3,26 +3,40 @@ import {
|
||||
} from "@react-email/components";
|
||||
import * as React from "react";
|
||||
import EmailLayout from "./EmailLayout";
|
||||
import {Button} from "@react-email/button";
|
||||
|
||||
|
||||
export const TestEmailSettings = () => {
|
||||
return (
|
||||
<EmailLayout
|
||||
preview="Test Email"
|
||||
preview="Email Setup"
|
||||
>
|
||||
|
||||
<Text
|
||||
className="text-base font-light leading-8 text-green-800 "
|
||||
|
||||
>
|
||||
Hi, this is a test email for settings and alerts !
|
||||
Hi, your email settings are setup !
|
||||
</Text>
|
||||
|
||||
|
||||
<Text
|
||||
className="text-base font-light leading-8 text-green-800 ">
|
||||
Soluce Technologies | Portabase
|
||||
</Text>
|
||||
className="text-base font-light leading-8 text-green-800 "
|
||||
|
||||
>
|
||||
Best regard,
|
||||
</Text> <Text
|
||||
className="text-base font-light leading-8 text-green-800 "
|
||||
|
||||
>
|
||||
Portabase
|
||||
</Text>
|
||||
|
||||
</EmailLayout>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
export default TestEmailSettings;
|
||||
|
||||
Reference in New Issue
Block a user