summaryrefslogtreecommitdiff
path: root/lib/mail/templates/otp.hbs
blob: adeda4165ca3006533b833bb7360a0653a9d3d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>{{subject}}</title>
    <style>
      body {
        font-family: Arial, sans-serif;
        background: #f9fafb;
        color: #111827;
        padding: 20px;
      }
      .container {
        max-width: 480px;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 24px;
      }
      h1 {
        font-size: 20px;
        margin-bottom: 8px;
        color: #111827;
      }
      p {
        line-height: 1.5;
        margin-bottom: 16px;
      }
      .code {
        display: inline-block;
        font-size: 24px;
        font-weight: bold;
        letter-spacing: 2px;
        margin: 12px 0;
        background: #f3f4f6;
        padding: 8px 16px;
        border-radius: 4px;
      }
      a {
        color: #3b82f6;
        text-decoration: none;
      }
      .footer {
        font-size: 12px;
        color: #6b7280;
        margin-top: 24px;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h1>{{t "verifyYourEmailTitle"}}</h1>
      <p>{{t "greeting"}}, {{name}}</p>

      <p>
        {{t "receivedSignInAttempt" location=location}}
      </p>

      <p>
        {{t "enterCodeInstruction"}}
      </p>

      <p class="code">{{otp}}</p>

      <p>
        <a href="{{verificationUrl}}">{{verificationUrl}}</a>
      </p>


      <div class="footer">
        {{t "securityWarning"}}
      </div>
    </div>
  </body>
</html>