Skip to content

Commit 1a8fc67

Browse files
authored
Add subsribe to newsletter section (#653)
1 parent 5a004a8 commit 1a8fc67

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

docs/src/components/SectionHeader.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const { title, subtitle, text, smallTitle } = Astro.props;
2323
line-height: 1.05556;
2424
font-weight: 600;
2525
letter-spacing: -0.006em;
26+
text-wrap: pretty;
27+
text-wrap: balance;
2628

2729
@media (min-width: 800px) {
2830
font-size: 4.5rem;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
import SectionHeader from "./SectionHeader.astro";
3+
---
4+
5+
<style>
6+
section {
7+
margin: 4rem 0;
8+
9+
@media (min-width: 800px) {
10+
margin-top: 8rem;
11+
margin-bottom: 8rem;
12+
13+
text-align: center;
14+
}
15+
}
16+
17+
.form-wrapper {
18+
margin-top: 1rem;
19+
}
20+
21+
.form {
22+
@media (min-width: 800px) {
23+
grid-column: 3 / span 8;
24+
}
25+
}
26+
</style>
27+
28+
<section>
29+
<SectionHeader
30+
title="Exclusive Perks for Subscribers"
31+
subtitle="Enjoy 30% off RocketSim Pro"
32+
smallTitle
33+
text="And be the first to discover new features & time-saving tricks."
34+
/>
35+
<div class="grid form-wrapper">
36+
<div class="form">
37+
<script
38+
is:inline
39+
data-uid="44112f6fd3"
40+
src="https://rocketsim.ck.page/44112f6fd3/index.js"></script>
41+
</div>
42+
</div>
43+
</section>

docs/src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Features from "../components/Features.astro";
1010
import StatusBar from "../components/StatusBar.astro";
1111
import TeamInsights from "../components/TeamInsights.astro";
1212
import SocialMediaMentions from "../components/SocialMediaMentions.astro";
13+
import SubscribeToNewsletter from "../components/SubscribeToNewsletter.astro";
1314
1415
import logoImage from "../assets/rocketsim-logo.svg";
1516
---
@@ -51,6 +52,7 @@ import logoImage from "../assets/rocketsim-logo.svg";
5152
<Features />
5253
<TeamInsights />
5354
<StatusBar />
55+
<SubscribeToNewsletter />
5456
<SocialMediaMentions />
5557
</main>
5658
</BaseLayout>

0 commit comments

Comments
 (0)