AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

store.blade.php 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @props(['brand', 'preheader' => ''])
  2. {{--
  3. The frame of every email a store sends its shoppers, in the store's own colours, fonts and corners.
  4. Tables and inline styles only, because many email apps ignore anything else.
  5. --}}
  6. <!DOCTYPE html>
  7. <html lang="{{ $brand->malay ? 'ms' : 'en' }}">
  8. <head>
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <meta name="color-scheme" content="light">
  12. <meta name="supported-color-schemes" content="light">
  13. <title>{{ $brand->name }}</title>
  14. <style>
  15. @media only screen and (max-width: 600px) {
  16. .sf-card { padding: 24px 20px !important; }
  17. .sf-cell { display: block !important; width: 100% !important; }
  18. .sf-button { display: block !important; box-sizing: border-box; }
  19. .sf-gap { display: block !important; height: 10px !important; width: auto !important; }
  20. }
  21. </style>
  22. </head>
  23. <body style="margin: 0; padding: 0; background-color: {{ $brand->color('background') }}; -webkit-text-size-adjust: 100%;">
  24. {{-- The short line inboxes show next to the subject. Hidden in the email itself. --}}
  25. <div style="display: none; max-height: 0; overflow: hidden; opacity: 0; color: transparent;">{{ $preheader }}</div>
  26. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: {{ $brand->color('background') }};">
  27. <tr>
  28. <td align="center" style="padding: 32px 12px;">
  29. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width: 560px;">
  30. {{-- Store name --}}
  31. <tr>
  32. <td align="center" style="padding: 0 0 24px;">
  33. <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>
  34. </td>
  35. </tr>
  36. {{-- The message --}}
  37. <tr>
  38. <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') }};">
  39. {{ $slot }}
  40. </td>
  41. </tr>
  42. {{-- Footer --}}
  43. <tr>
  44. <td align="center" style="padding: 24px 16px 0; font-family: {{ $brand->bodyFont }}; font-size: 12px; line-height: 1.6; color: {{ $brand->color('muted') }};">
  45. @if ($brand->contactEmail())
  46. {{ $brand->malay ? 'Ada soalan? Balas e-mel ini atau tulis kepada' : 'Questions? Reply to this email or write to' }}
  47. <a href="mailto:{{ $brand->contactEmail() }}" style="color: {{ $brand->color('foreground') }}; text-decoration: underline;">{{ $brand->contactEmail() }}</a>.<br>
  48. @endif
  49. {{ $brand->malay ? 'Anda menerima e-mel ini kerana anda membuat pesanan di' : 'You are getting this email because you ordered from' }}
  50. <a href="{{ $brand->storeUrl() }}" style="color: {{ $brand->color('muted') }}; text-decoration: underline;">{{ $brand->name }}</a>{{ str_ends_with($brand->name, '.') ? '' : '.' }}
  51. </td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. </table>
  57. </body>
  58. </html>