| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- @props(['brand', 'preheader' => ''])
- {{--
- The frame of every email a store sends its shoppers, in the store's own colours, fonts and corners.
- Tables and inline styles only, because many email apps ignore anything else.
- --}}
- <!DOCTYPE html>
- <html lang="{{ $brand->malay ? 'ms' : 'en' }}">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color-scheme" content="light">
- <meta name="supported-color-schemes" content="light">
- <title>{{ $brand->name }}</title>
- <style>
- @media only screen and (max-width: 600px) {
- .sf-card { padding: 24px 20px !important; }
- .sf-cell { display: block !important; width: 100% !important; }
- .sf-button { display: block !important; box-sizing: border-box; }
- .sf-gap { display: block !important; height: 10px !important; width: auto !important; }
- }
- </style>
- </head>
- <body style="margin: 0; padding: 0; background-color: {{ $brand->color('background') }}; -webkit-text-size-adjust: 100%;">
- {{-- The short line inboxes show next to the subject. Hidden in the email itself. --}}
- <div style="display: none; max-height: 0; overflow: hidden; opacity: 0; color: transparent;">{{ $preheader }}</div>
-
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: {{ $brand->color('background') }};">
- <tr>
- <td align="center" style="padding: 32px 12px;">
- <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width: 560px;">
- {{-- Store name --}}
- <tr>
- <td align="center" style="padding: 0 0 24px;">
- @if ($logo = $brand->logo())
- <a href="{{ $brand->storeUrl() }}" style="text-decoration: none;"><img src="{{ $logo['url'] }}" width="{{ $logo['width'] }}" height="{{ $logo['height'] }}" alt="{{ $brand->name }}" style="display: block; border: 0; width: {{ $logo['width'] }}px; height: {{ $logo['height'] }}px;"></a>
- @else
- <a href="{{ $brand->storeUrl() }}" style="font-family: {{ $brand->headingFont }}; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: {{ $brand->color('foreground') }}; text-decoration: none;">{{ $brand->name }}</a>
- @endif
- </td>
- </tr>
-
- {{-- The message --}}
- <tr>
- <td class="sf-card" style="background-color: {{ $brand->color('surface') }}; border: 1px solid {{ $brand->color('border') }}; border-top: 4px solid {{ $brand->color('primary') }}; border-radius: {{ $brand->radius }}px; padding: 36px 36px; font-family: {{ $brand->bodyFont }}; font-size: 15px; line-height: 1.6; color: {{ $brand->color('foreground') }};">
- {{ $slot }}
- </td>
- </tr>
-
- {{-- Footer --}}
- <tr>
- <td align="center" style="padding: 24px 16px 0; font-family: {{ $brand->bodyFont }}; font-size: 12px; line-height: 1.6; color: {{ $brand->color('muted') }};">
- @if ($brand->contactEmail())
- {{ $brand->malay ? 'Ada soalan? Balas e-mel ini atau tulis kepada' : 'Questions? Reply to this email or write to' }}
- <a href="mailto:{{ $brand->contactEmail() }}" style="color: {{ $brand->color('foreground') }}; text-decoration: underline;">{{ $brand->contactEmail() }}</a>.<br>
- @endif
- {{ $brand->malay ? 'Anda menerima e-mel ini kerana anda membuat pesanan di' : 'You are getting this email because you ordered from' }}
- <a href="{{ $brand->storeUrl() }}" style="color: {{ $brand->color('muted') }}; text-decoration: underline;">{{ $brand->name }}</a>{{ str_ends_with($brand->name, '.') ? '' : '.' }}
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>
|