mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-23 04:04:35 +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 appName = "Fossorial - Pangolin";
|
||||
const appName = "Pangolin";
|
||||
|
||||
await emailClient.sendMail({
|
||||
from: {
|
||||
|
|
|
@ -12,7 +12,7 @@ export default function ButtonLink({
|
|||
return (
|
||||
<a
|
||||
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={{
|
||||
backgroundColor: "#F97316",
|
||||
textDecoration: "none"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React from "react";
|
||||
import { Container, Img } from "@react-email/components";
|
||||
import { build } from "@server/build";
|
||||
|
||||
// EmailContainer: Wraps the entire email layout
|
||||
export function EmailContainer({ children }: { children: React.ReactNode }) {
|
||||
|
@ -81,6 +82,8 @@ export function EmailSection({
|
|||
// EmailFooter: For closing or signature
|
||||
export function EmailFooter({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
{build === "saas" && (
|
||||
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
|
||||
{children}
|
||||
<p className="text-xs text-gray-400 mt-4">
|
||||
|
@ -89,10 +92,12 @@ export function EmailFooter({ children }: { children: React.ReactNode }) {
|
|||
support@fossorial.io
|
||||
</p>
|
||||
<p className="text-xs text-gray-300 text-center mt-4">
|
||||
© {new Date().getFullYear()} Fossorial, Inc. All rights
|
||||
reserved.
|
||||
© {new Date().getFullYear()} Fossorial, Inc. All
|
||||
rights reserved.
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue