Permalink
Browse files

Add newsletter form and anchor link

  • Loading branch information...
Jakob Holderbaum
Jakob Holderbaum committed Jan 4, 2019
1 parent 8e2a445 commit 4ea3600a9a84bfdae363658fe504587aae84128c
Showing with 29 additions and 19 deletions.
  1. +17 −6 assets/css/style.css
  2. +1 −3 content/de/updates.md
  3. +1 −4 content/en/updates.md
  4. +4 −2 content/translations.yml
  5. +1 −1 deploy/conf.d/redirect.conf
  6. +5 −3 pages/index.html.erb
@@ -132,7 +132,8 @@ main > section > h1 {
/* ================================ */
/* Buttons */

a[button] {
a[button] ,
form input[type=submit] {
background-color: #6b3cff;
border: 0;
color: white;
@@ -147,7 +148,21 @@ a[button] {
line-height: 1rem;
}

a[button]:hover {
form input {
border: 1px solid #6b3cff;
color: #4a4a4a;
font-size: 0.8rem;
padding: 0.5rem 1rem;
border-radius: 1rem;
margin: 1rem 0;
cursor: pointer;
text-decoration: none;
display: inline-block;
line-height: 1rem;
}

a[button]:hover ,
form input[type=submit]:hover {
background-color: #4a00d0;
text-decoration: none;
}
@@ -403,10 +418,6 @@ section.topics section:after {
clear: both;
}

section.topics div section:last-of-type {
text-align: center;
}

/* ================================ */
/* Tickets */

@@ -1,5 +1,3 @@
# Du möchtest auf dem Laufenden bleiben? {#newsletter}

Melde Dich bei unserem Newsletter an und werde regelmäßig mit Neuigkeiten zum Event versorgt.

[Zur Anmeldung](/goto/newsletter){: button=""}
Melde Dich bei unserem Newsletter an und werde monatlich mit Neuigkeiten zum Event versorgt.
@@ -1,6 +1,3 @@
# You don't want to miss an update? {#newsletter}

Subscribe to our newsletter and receive event updates on a regular basis.

[Go to subscription](/goto/newsletter){: button=""}

Subscribe to our newsletter and receive event updates on a monthly basis.
@@ -7,7 +7,8 @@ de:
about-us: "Über Uns"
tickets: "Tickets"
newsletter:
anchor-link-title: "TODO newsletter button"
anchor-link-title: "Newsletter abonnieren"
placeholder: "du@example.org"
about-us:
contact-text: "Schreib uns"
contact-link: "mailto:kontakt@think-about.io?subject=Hallo!"
@@ -55,7 +56,8 @@ en:
about-us: "About"
tickets: "Tickets"
newsletter:
anchor-link-title: "TODO newsletter button"
anchor-link-title: "Subscribe to newsletter"
placeholder: "you@example.org"
about-us:
contact-text: "Get in touch"
contact-link: "mailto:kontakt@think-about.io?subject=Hi there!"
@@ -27,5 +27,5 @@ location = /goto/pretix-de {
}

location = /goto/newsletter {
return 302 https://newsletter.hrx.events/subscription/DUogKTFJF;
return 302 https://newsletter.hrx.events/subscription/DUogKTFJF$is_args$args;
}
@@ -6,6 +6,7 @@
<img width="130px" src="/assets/images/logo.svg" alt="Think About! Logo">
</figure>
<%= content 'our_conference' %>
<a href="#newsletter" button><%= t('newsletter.anchor-link-title') %></a>
</div>
</section>
<section class="topics">
@@ -34,9 +35,6 @@
<%= content 'topic_society' %>
</article>
</section>
<section>
<a href="#newsletter" button><%= t('newsletter.anchor-link-title') %></a>
</section>
</div>
</section>
<section class="speakers">
@@ -58,6 +56,10 @@
<section>
<div class="centered">
<%= content 'updates' %>
<form method="get" action="/goto/newsletter">
<input type="email" name="email" placeholder="<%= t('newsletter.placeholder') %>"/>
<input type="submit" value="Subscribe"/>
</form>
<figure>
<img src="/assets/images/buddies.svg" alt="Think About! Monsters">
</figure>

0 comments on commit 4ea3600

Please sign in to comment.