Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -1,6 +1,6 @@
import type { CSSProperties, ReactNode } from "react";
import { Header } from "./Header.js";
import { Footer } from "./Footer.js";
import { Footer, type MailFooterCopy, type MailLanguage } from "./Footer.js";
import type { MailBrand } from "./theme.js";
/**
@@ -13,6 +13,8 @@ export interface BaseLayoutProps {
readonly title: string;
readonly previewText?: string;
readonly unsubscribeUrl?: string;
readonly language?: MailLanguage;
readonly footerCopy?: MailFooterCopy;
readonly children: ReactNode;
}
@@ -30,16 +32,27 @@ const containerStyle: CSSProperties = {
width: "100%",
maxWidth: "560px",
margin: "0 auto",
padding: "24px 16px",
padding: "32px 14px",
};
const cardStyle = (brand: MailBrand): CSSProperties => ({
backgroundColor: brand.surfaceColor,
border: `1px solid ${brand.borderColor}`,
borderRadius: "20px",
padding: "32px",
borderRadius: "22px",
boxShadow: "0 16px 48px rgba(35, 31, 32, 0.08)",
overflow: "hidden",
});
const accentStyle = (brand: MailBrand): CSSProperties => ({
backgroundColor: brand.primaryColor,
height: "7px",
lineHeight: "7px",
});
const contentStyle: CSSProperties = {
padding: "34px 34px 30px",
};
const previewStyle: CSSProperties = {
display: "none",
fontSize: "1px",
@@ -50,9 +63,9 @@ const previewStyle: CSSProperties = {
overflow: "hidden",
} as CSSProperties;
export function BaseLayout({ brand, title, previewText, unsubscribeUrl, children }: BaseLayoutProps) {
export function BaseLayout({ brand, title, previewText, unsubscribeUrl, language = "en", footerCopy, children }: BaseLayoutProps) {
return (
<html lang="en">
<html lang={language}>
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -62,9 +75,12 @@ export function BaseLayout({ brand, title, previewText, unsubscribeUrl, children
{previewText ? <div style={previewStyle}>{previewText}</div> : null}
<div style={containerStyle}>
<div style={cardStyle(brand)}>
<Header brand={brand} />
{children}
<Footer brand={brand} unsubscribeUrl={unsubscribeUrl} />
<div style={accentStyle(brand)}>&nbsp;</div>
<div style={contentStyle}>
<Header brand={brand} />
{children}
<Footer brand={brand} unsubscribeUrl={unsubscribeUrl} copy={footerCopy} />
</div>
</div>
</div>
</body>