diff --git a/apps/infoalloggi/emails/base.tsx b/apps/infoalloggi/emails/base.tsx index 160ce61..3111ea0 100644 --- a/apps/infoalloggi/emails/base.tsx +++ b/apps/infoalloggi/emails/base.tsx @@ -42,13 +42,15 @@ const Base = ({ {preview} - Logo Infoalloggi.it +
+ Logo Infoalloggi.it +

diff --git a/apps/infoalloggi/emails/base2.tsx b/apps/infoalloggi/emails/base2.tsx new file mode 100644 index 0000000..7c82522 --- /dev/null +++ b/apps/infoalloggi/emails/base2.tsx @@ -0,0 +1,82 @@ +import { + Body, + Container, + Head, + Hr, + Html, + Img, + Preview, + Section, + Tailwind, + Text, +} from "@react-email/components"; +import type { JSX } from "react"; +import { env } from "~/env"; + +const Base2 = ({ + children, + preview, + noreply, +}: { + children: JSX.Element; + preview: string; + noreply?: boolean; +}) => { + return ( + + + + + {preview} + + +
+ Logo Infoalloggi.it + +
+
+ +
+
{children}
+ +
+ {noreply && ( + + Questo รจ un messaggio automatico, per favore non rispondere + a questa email. + + )} +
+
+ + Arcenia S.r.l. Via Beata Giovanna 1, Bassano del Grappa (VI) - + tel: 0424529869 + +
+
+
+ + +
+ ); +}; +export default Base2; diff --git a/apps/infoalloggi/emails/share-annunci.tsx b/apps/infoalloggi/emails/share-annunci.tsx index 56edef9..4ae0431 100644 --- a/apps/infoalloggi/emails/share-annunci.tsx +++ b/apps/infoalloggi/emails/share-annunci.tsx @@ -7,7 +7,7 @@ import { Text, } from "@react-email/components"; import { env } from "~/env"; -import Base from "./base"; +import Base2 from "./base2"; export type ShareAnnunci_NewMail = { mailType: "shareAnnunci"; props: ShareAnnunciProps; @@ -22,10 +22,27 @@ type ShareAnnunciProps = { prezzo: number; }[]; }; +//TODO finire const ShareAnnunci = ({ nome, annunci }: ShareAnnunciProps) => { + nome = ""; + annunci = [ + { + titolo: "MAROSTICA A 2 KM DAL CENTRO MANSARDA - SUBITO", + codice: "4493B", + prezzo: 40000, + immagine: "5434eb7f088a5b5a", + }, + { + titolo: "MAROSTICA A 2 KM DAL CENTRO MANSARDA - SUBITO", + codice: "4493B", + prezzo: 40000, + immagine: "5434eb7f088a5b5a", + }, + ]; + return ( - + <> Procedi ora su Infoalloggi.it @@ -81,7 +98,7 @@ const ShareAnnunci = ({ nome, annunci }: ShareAnnunciProps) => {
- + ); };