mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 13:05:17 +00:00
74 lines
1.6 KiB
TypeScript
74 lines
1.6 KiB
TypeScript
import {
|
|
Body,
|
|
Container,
|
|
Head,
|
|
Heading,
|
|
Html,
|
|
Img,
|
|
Preview,
|
|
Section,
|
|
Tailwind,
|
|
Text,
|
|
} from "@react-email/components";
|
|
import * as React from "react";
|
|
|
|
export type TemplateProps = {
|
|
date: string;
|
|
};
|
|
|
|
export const DokployRestartEmail = ({
|
|
date = "2023-05-01T00:00:00.000Z",
|
|
}: TemplateProps) => {
|
|
const previewText = "Your dokploy server was restarted";
|
|
return (
|
|
<Html>
|
|
<Preview>{previewText}</Preview>
|
|
<Tailwind
|
|
config={{
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
brand: "#007291",
|
|
},
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Head />
|
|
|
|
<Body className="bg-white my-auto mx-auto font-sans px-2">
|
|
<Container className="border border-solid border-[#eaeaea] rounded-lg my-[40px] mx-auto p-[20px] max-w-[465px]">
|
|
<Section className="mt-[32px]">
|
|
<Img
|
|
src={"/static/logo.png"}
|
|
width="50"
|
|
height="50"
|
|
alt="Dokploy"
|
|
className="my-0 mx-auto"
|
|
/>
|
|
</Section>
|
|
<Heading className="text-black text-[24px] font-normal text-center p-0 my-[30px] mx-0">
|
|
Dokploy Server Restart
|
|
</Heading>
|
|
<Text className="text-black text-[14px] leading-[24px]">
|
|
Hello,
|
|
</Text>
|
|
<Text className="text-black text-[14px] leading-[24px]">
|
|
Your dokploy server was restarted ✅
|
|
</Text>
|
|
|
|
<Section className="flex text-black text-[14px] leading-[24px] bg-[#F4F4F5] rounded-lg p-2">
|
|
<Text className="!leading-3 font-bold">Details: </Text>
|
|
<Text className="!leading-3">
|
|
Date: <strong>{date}</strong>
|
|
</Text>
|
|
</Section>
|
|
</Container>
|
|
</Body>
|
|
</Tailwind>
|
|
</Html>
|
|
);
|
|
};
|
|
|
|
export default DokployRestartEmail;
|