|
1 | | ---- |
2 | | -import ProductSection from "../layouts/ProductSection.astro"; |
3 | | -import { Button } from "./buttons/Button/Button"; |
4 | | -import HeaderTag from "./HeaderTag.astro"; |
5 | | -
|
6 | | -interface Props { |
7 | | - headerLevel: "1" | "2"; |
8 | | -} |
9 | | - |
10 | | - const { headerLevel } = Astro.props; |
11 | | - |
12 | | -const title = "Get informed about new releases"; |
13 | | ---- |
14 | | - |
15 | | -<ProductSection padding="newsletter" bordered> |
16 | | - <section id="newsletter"> |
17 | | - <HeaderTag level={headerLevel}> |
18 | | - {title} |
19 | | - </HeaderTag> |
20 | | - <p>Get the latest defguard news and updates in your inbox.</p> |
21 | | - <form |
22 | | - id="newsletter-form" |
23 | | - action="https://buttondown.email/api/emails/embed-subscribe/defguard" |
24 | | - method="post" |
25 | | - target="popupwindow" |
26 | | - onsubmit={`window.open('https://buttondown.email/defguard', 'popupwindow')`} |
27 | | - > |
28 | | - <div class="form-row field-email field"> |
29 | | - <label for="bd-email">Email:</label> |
30 | | - <input id="bd-email" name="email" type="email" placeholder="" /> |
31 | | - </div> |
32 | | - <div class="terms"> |
33 | | - <div class="form-row"> |
34 | | - <!-- <div class="form-row field checkbox"> |
35 | | - <Checkbox client:load /> |
36 | | - <p>I agree to receive information about defguard’s products and services.</p> |
37 | | - </div> |
38 | | - <p> |
39 | | - By submitting this form, I confirm that I have read and agree to defguard’s |
40 | | - Privacy Notice and Privacy Policy. |
41 | | - </p> --> |
42 | | - </div> |
43 | | - </div> |
44 | | - <!-- <SubscribeButton client:load /> --> |
45 | | - <Button type="submit" text="Subscribe Now" size="normal" /> |
46 | | - </form> |
47 | | - </section> |
48 | | -</ProductSection> |
49 | | - |
50 | | -<style lang="scss"> |
51 | | - #newsletter { |
52 | | - width: 100%; |
53 | | - & > h1, |
54 | | - & > h2 { |
55 | | - padding-bottom: 20px; |
56 | | - @include typography(section); |
57 | | - } |
58 | | - |
59 | | - p, |
60 | | - a, |
61 | | - span, |
62 | | - label, |
63 | | - input { |
64 | | - @include typography(paragraph); |
65 | | - } |
66 | | - |
67 | | - a { |
68 | | - text-decoration: underline; |
69 | | - text-decoration-color: var(--text-body-primary); |
70 | | - } |
71 | | - |
72 | | - & > p { |
73 | | - padding-bottom: 8px; |
74 | | - } |
75 | | - |
76 | | - form { |
77 | | - display: flex; |
78 | | - flex-flow: column; |
79 | | - row-gap: 8px; |
80 | | - |
81 | | - input { |
82 | | - width: 100%; |
83 | | - height: 38px; |
84 | | - border: 1px solid var(--text-body-primary); |
85 | | - background-color: transparent; |
86 | | - &:focus-visible { |
87 | | - outline: none; |
88 | | - } |
89 | | - } |
90 | | - |
91 | | - .field-email { |
92 | | - padding: 20px 0; |
93 | | - } |
94 | | - |
95 | | - .form-row { |
96 | | - width: 100%; |
97 | | - display: flex; |
98 | | - flex-flow: row wrap; |
99 | | - align-items: center; |
100 | | - justify-content: flex-start; |
101 | | - column-gap: 8px; |
102 | | - row-gap: 8px; |
103 | | - |
104 | | - &.field { |
105 | | - max-width: 580px; |
106 | | - padding: 40px 0; |
107 | | - @include break-up(lg) { |
108 | | - display: grid; |
109 | | - grid-template-columns: max-content 1fr; |
110 | | - } |
111 | | - |
112 | | - &.checkbox { |
113 | | - padding: 0px; |
114 | | - } |
115 | | - } |
116 | | - } |
117 | | - |
118 | | - .terms { |
119 | | - padding-bottom: 20px; |
120 | | - max-width: 50ch; |
121 | | - } |
122 | | - } |
123 | | - } |
124 | | -</style> |
| 1 | +--- |
| 2 | +import ProductSection from "../layouts/ProductSection.astro"; |
| 3 | +import { Button } from "./buttons/Button/Button"; |
| 4 | +import HeaderTag from "./HeaderTag.astro"; |
| 5 | +
|
| 6 | +interface Props { |
| 7 | + headerLevel: "1" | "2"; |
| 8 | +} |
| 9 | + |
| 10 | + const { headerLevel } = Astro.props; |
| 11 | + |
| 12 | +const title = "Get informed about new releases"; |
| 13 | +--- |
| 14 | + |
| 15 | +<ProductSection padding="newsletter" bordered> |
| 16 | + <section id="newsletter"> |
| 17 | + <HeaderTag level={headerLevel}> |
| 18 | + {title} |
| 19 | + </HeaderTag> |
| 20 | + <p>Get the latest defguard news and updates in your inbox.</p> |
| 21 | + <form |
| 22 | + id="newsletter-form" |
| 23 | + action="https://buttondown.email/api/emails/embed-subscribe/defguard" |
| 24 | + method="post" |
| 25 | + target="popupwindow" |
| 26 | + onsubmit={`window.open('https://buttondown.email/defguard', 'popupwindow')`} |
| 27 | + > |
| 28 | + <div class="form-row field-email field"> |
| 29 | + <label for="bd-email">Email:</label> |
| 30 | + <input id="bd-email" name="email" type="email" placeholder="" /> |
| 31 | + </div> |
| 32 | + <div class="terms"> |
| 33 | + <div class="form-row"> |
| 34 | + <!-- <div class="form-row field checkbox"> |
| 35 | + <Checkbox client:load /> |
| 36 | + <p>I agree to receive information about defguard’s products and services.</p> |
| 37 | + </div> |
| 38 | + <p> |
| 39 | + By submitting this form, I confirm that I have read and agree to defguard’s |
| 40 | + Privacy Notice and Privacy Policy. |
| 41 | + </p> --> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + <!-- <SubscribeButton client:load /> --> |
| 45 | + <Button type="submit" text="Subscribe Now" size="normal" /> |
| 46 | + </form> |
| 47 | + </section> |
| 48 | +</ProductSection> |
| 49 | + |
| 50 | +<style lang="scss"> |
| 51 | + #newsletter { |
| 52 | + width: 100%; |
| 53 | + & > h1, |
| 54 | + & > h2 { |
| 55 | + padding-bottom: 20px; |
| 56 | + @include typography(section); |
| 57 | + } |
| 58 | + |
| 59 | + p, |
| 60 | + a, |
| 61 | + span, |
| 62 | + label, |
| 63 | + input { |
| 64 | + @include typography(paragraph); |
| 65 | + } |
| 66 | + |
| 67 | + a { |
| 68 | + text-decoration: underline; |
| 69 | + text-decoration-color: var(--text-body-primary); |
| 70 | + } |
| 71 | + |
| 72 | + & > p { |
| 73 | + padding-bottom: 8px; |
| 74 | + } |
| 75 | + |
| 76 | + form { |
| 77 | + display: flex; |
| 78 | + flex-flow: column; |
| 79 | + row-gap: 8px; |
| 80 | + |
| 81 | + input { |
| 82 | + width: 100%; |
| 83 | + height: 38px; |
| 84 | + border: 1px solid var(--text-body-primary); |
| 85 | + background-color: transparent; |
| 86 | + &:focus-visible { |
| 87 | + outline: none; |
| 88 | + } |
| 89 | + } |
| 90 | + |
| 91 | + .field-email { |
| 92 | + padding: 20px 0; |
| 93 | + } |
| 94 | + |
| 95 | + .form-row { |
| 96 | + width: 100%; |
| 97 | + display: flex; |
| 98 | + flex-flow: row wrap; |
| 99 | + align-items: center; |
| 100 | + justify-content: flex-start; |
| 101 | + column-gap: 8px; |
| 102 | + row-gap: 8px; |
| 103 | + |
| 104 | + &.field { |
| 105 | + max-width: 580px; |
| 106 | + padding: 40px 0; |
| 107 | + @include break-up(lg) { |
| 108 | + display: grid; |
| 109 | + grid-template-columns: max-content 1fr; |
| 110 | + } |
| 111 | + |
| 112 | + &.checkbox { |
| 113 | + padding: 0px; |
| 114 | + } |
| 115 | + } |
| 116 | + } |
| 117 | + |
| 118 | + .terms { |
| 119 | + padding-bottom: 20px; |
| 120 | + max-width: 50ch; |
| 121 | + } |
| 122 | + } |
| 123 | + } |
| 124 | +</style> |
0 commit comments