1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-07 20:49:08 +00:00

Redirect newsletter page to footer

This commit is contained in:
davegson 2020-05-13 12:55:02 +02:00
parent 278a436d9a
commit c0d6836da3
2 changed files with 2 additions and 61 deletions
_includes
newsletter

View file

@ -1,5 +1,5 @@
<footer class="bg-black p-8 bg-local bg-no-repeat bg-cover bg-bottom">
<div class="p-12 mx-auto self-center max-w-3xl text-center lg:text-left">
<div class="p-12 mx-auto self-center max-w-3xl text-center lg:text-left" id="newsletter">
<span class="text-white text-xl font-bold">Stay Connected</span>
<div class="block lg:flex items-center py-5">
<input style="background-color: #302e37;" class="appearance-none rounded-full w-full max-w-md px-6 py-2 text-white" placeholder="Mailing list">

View file

@ -1,62 +1,3 @@
---
layout: page
title: newsletter
heading: Subscribe to our Newsletter
redirect_to: /#newsletter
---
<script type="text/javascript">
var params = getSearchParameters();
if (typeof params.error_email != "undefined" && params.error_email.length > 0) {
$('body').toast({
title: 'Please provide a valid email address',
displayTime: 6000,
showProgress: 'bottom',
class: 'red',
showIcon: 'x',
position: 'top center',
closeIcon: true
});
}
if (typeof params.field_consent_text != "undefined" && params.field_consent_text == "no") {
$('body').toast({
title: 'Please accept our terms',
displayTime: 6000,
showProgress: 'bottom',
class: 'red',
showIcon: 'x',
position: 'top center',
closeIcon: true
});
}
</script>
<div class="ui middle aligned center aligned grid">
<div class="column newsletter" style="max-width: 450px;">
<form class="ui form" action="https://t80607841.emailsys1a.net/184/1387/c70759e794/subscribe/form.html" method="post">
<div class="ui segment">
<div class="required field">
<label for="email">Email</label>
<input type="text" name="email" id="email"/>
</div>
<div class="required inline field">
<div class="ui checkbox">
<input type="checkbox" id="consent_text" name="consent_text" value="yes"/>
<label class="consent" for="consent_text">
I agree that Safing &
<a href="https://rapidmail.de" target="_blank" data-tooltip="GDPR compliant, located in Germany" data-variation="mini">
rapidmail.de
</a>
may proccess and use the email for newsletter purposes.
<span class="popup-trigger" data-variation="mini inverted very wide" data-position="top center" data-content="Safing will use the email you provide from this form to provide you with semi regular updates. The Newsletter is managed by rapidmail, a GDPR compliant company located in Germany. You can change your mind at any time by clicking the unsubscribe link placed in every email you receive from us or by contacting hello@safing.io. By checking this box, you agree to the use of your email in accordance with these terms.">
<i class="info circle icon"></i>
</span>
</label>
</div>
</div>
<input type="submit" class="ui submit button" value="Subscribe" />
</div>
</form>
</div>
</div>