Skip to content

Commit 89175a6

Browse files
show newsletter only for home page
1 parent 88d3819 commit 89175a6

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

partials/newsletter.hbs

+25-17
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
11
{{#if @custom.newsletter_show}}
22

3-
{{#unless @member.paid}}
3+
{{#is "home"}}
44

5-
<div class="mb-12 w-full bg-center bg-cover h-screen" style="background-image: url('{{@site.cover_image}}');">
6-
<div class="flex items-center justify-center w-full h-full bg-gray-900/40">
7-
<div class="text-center container">
5+
{{#unless @member.paid}}
86

9-
<!-- Title -->
10-
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 sm:text-5xl md:text-6xl lg:text-8xl ">
11-
{{@custom.newsletter_title}}
12-
</h1>
7+
<div class="{{#match @custom.newsletter_size "xl" }} h-screen {{else match @custom.newsletter_size "lg" }} h-[80vh] {{else match @custom.newsletter_size "md" }} h-[70vh] {{else}} h-[60vh] {{/match}} mb-12 w-full bg-center bg-cover" style="background-image: url('{{@site.cover_image}}');">
138

14-
<!-- Description -->
15-
<p class="mb-8 text-lg sm:text-xl md:text-2xl lg:text-3xl font-normal text-gray-500 sm:px-16 xl:px-48 dark:text-gray-400">
16-
{{@custom.newsletter_description}}
17-
</p>
9+
<div class="flex items-center justify-center w-full h-full bg-gray-900/40">
1810

19-
<button style="background-color: {{@site.accent_color}};" class="cursor-pointer rounded-md px-6 py-2 font-semibold text-white" data-portal="signup">
11+
<div class="text-center container">
12+
13+
<!-- Title -->
14+
<h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 sm:text-5xl md:text-6xl lg:text-8xl ">
15+
{{@custom.newsletter_title}}
16+
</h1>
17+
18+
<!-- Description -->
19+
<p class="mb-8 text-lg sm:text-xl md:text-2xl lg:text-3xl font-normal text-gray-800 sm:px-16 xl:px-48 ">
20+
{{@custom.newsletter_description}}
21+
</p>
22+
23+
<button style="background-color: {{@site.accent_color}};" class="cursor-pointer rounded-md px-6 py-2 font-semibold text-white" data-portal="signup">
2024
{{@custom.newsletter_button_text }}
21-
</button>
25+
</button>
26+
27+
</div>
28+
29+
</div>
2230

2331
</div>
24-
</div>
25-
</div>
2632

27-
{{/unless}}
33+
{{/unless}}
34+
35+
{{/is}}
2836

2937
{{/if}}

0 commit comments

Comments
 (0)