Skip to content

Commit 7b66969

Browse files
committed
feat: Newsletter subscription form on landing page
Signed-off-by: Lachezar Lechev <[email protected]>
1 parent a1a2f9c commit 7b66969

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ github_repo = "https://github.com/AeroRust/aerorust.github.io"
1818
github_propose_blog_post = "https://github.com/AeroRust/AeroRust.github.io/issues/new?assignees=&labels=blog-post&template=featured-blog-post.md&title=%5BBlog+post%5D"
1919
github_org = "https://github.com/AeroRust"
2020
discord_invite = "https://discord.gg/6wFvsFWfnu"
21-
discord_members_count = "560+"
21+
discord_members_count = "625+"
2222
rustlang_website = "https://rust-lang.org"
2323
twitter_username = "@AeroRust"
2424
twitter_url = "https://twitter.com/AeroRust"
25-
youtube_url = "https://youtube.com/c/AeroRust"
25+
youtube_url = "https://youtube.com/AeroRust"
26+
subscribe_form_url = "https://aerorust.us21.list-manage.com/subscribe/post?u=fcb3dda7a7dc64758afa698dd&amp;id=812128325d&amp;f_id=002bf7e6f0"
2627
2728
# Google analytics tag
2829
google_tag = "G-NSCZ6RQFN6"
2930
[extra.default.meta]
3031
title = "Welcome to AeroRust (ÄR) - Your launchpad to space"
3132
description = """
3233
We build the Open-source ecosystem of Rust for aerospace applications.
33-
With more than 560 members and multiple projects in the aerospace domain:
34+
With more than 625 members and multiple projects in the aerospace domain:
3435
drones, maritime, "Are we in space yet?" crates catalogue and more.
3536
"""

frontend/scss/_custom.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ $pagination-disabled-border-color: $aerorust-light;
3232

3333
$body-bg: $black;
3434
$body-color: $gray-300;
35+
$input-placeholder-color: $white;
3536

3637
// 4. Include any default map overrides here
3738

templates/index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,33 @@ <h1 class="display-5 fw-bold lh-1 mb-3">Welcome to the <strong class="text-aeror
4141
</div>
4242
</div>
4343

44+
<div class="container">
45+
<div class="p-4 mb-3 bg-light rounded text-center overflow-hidden">
46+
<div class="my-1 py-1 text-dark">
47+
<h3 class="display-5 fst-italic">Subscribe to our newsletter</h2>
48+
<p class="lead">and receive emails with the latest news, blog posts and videos!</p>
49+
</div>
50+
<form action="{{ config.extra.subscribe_form_url }}" method="post" id="mc-embedded-subscribe-form" class="validate" target="_blank">
51+
<div class="mb-3 row">
52+
<div class="col-12 col-lg-8 offset-lg-2">
53+
<input type="email" name="EMAIL" placeholder="Email address" class="form-control form-control-lg" id="inputEmail" aria-describedby="emailHelp">
54+
</div>
55+
<div id="emailHelp" class="col-12 form-text">We'll only contact you for community related content and never share your email with others.</div>
56+
</div>
57+
<div style="position: absolute; left: -5000px;" aria-hidden="true">
58+
{# real people should not fill this in and expect good things - do not remove this or risk form bot signups #}
59+
<input type="text" name="b_fcb3dda7a7dc64758afa698dd_812128325d" tabindex="-1" value="">
60+
</div>
61+
{# the newsletter tag #}
62+
<input type="hidden" name="tags" value="2988840">
63+
<button type="submit" class="btn btn-lg btn-dark">Subscribe</button>
64+
</form>
65+
</div>
66+
</div>
67+
4468
<div id="learn-more">
4569

4670
</div>
71+
4772
{# <p>Click <a href="{{ get_url(path=" @/blog/_index.md") }}">here</a> to see my posts.</p> -#}
4873
{% endblock content %}

0 commit comments

Comments
 (0)