mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-23 20:24:34 +02:00
fix emails
This commit is contained in:
parent
417811e94f
commit
1159a79410
3 changed files with 19 additions and 14 deletions
|
@ -25,7 +25,7 @@ export async function sendEmail(
|
||||||
|
|
||||||
const emailHtml = await render(template);
|
const emailHtml = await render(template);
|
||||||
|
|
||||||
const appName = "Fossorial - Pangolin";
|
const appName = "Pangolin";
|
||||||
|
|
||||||
await emailClient.sendMail({
|
await emailClient.sendMail({
|
||||||
from: {
|
from: {
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default function ButtonLink({
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={href}
|
href={href}
|
||||||
className={`inline-block bg-primary hover:bg-primary/90 text-white font-semibold px-8 py-3 rounded-lg text-center no-underline transition-colors ${className}`}
|
className={`inline-block bg-primary text-white font-semibold px-8 py-3 rounded-lg text-center no-underline ${className}`}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#F97316",
|
backgroundColor: "#F97316",
|
||||||
textDecoration: "none"
|
textDecoration: "none"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Container, Img } from "@react-email/components";
|
import { Container, Img } from "@react-email/components";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
// EmailContainer: Wraps the entire email layout
|
// EmailContainer: Wraps the entire email layout
|
||||||
export function EmailContainer({ children }: { children: React.ReactNode }) {
|
export function EmailContainer({ children }: { children: React.ReactNode }) {
|
||||||
|
@ -81,6 +82,8 @@ export function EmailSection({
|
||||||
// EmailFooter: For closing or signature
|
// EmailFooter: For closing or signature
|
||||||
export function EmailFooter({ children }: { children: React.ReactNode }) {
|
export function EmailFooter({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
{build === "saas" && (
|
||||||
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
|
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
|
||||||
{children}
|
{children}
|
||||||
<p className="text-xs text-gray-400 mt-4">
|
<p className="text-xs text-gray-400 mt-4">
|
||||||
|
@ -89,10 +92,12 @@ export function EmailFooter({ children }: { children: React.ReactNode }) {
|
||||||
support@fossorial.io
|
support@fossorial.io
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-gray-300 text-center mt-4">
|
<p className="text-xs text-gray-300 text-center mt-4">
|
||||||
© {new Date().getFullYear()} Fossorial, Inc. All rights
|
© {new Date().getFullYear()} Fossorial, Inc. All
|
||||||
reserved.
|
rights reserved.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue