Skip to content

Commit 34be89e

Browse files
committed
Adding Newsletter section
1 parent e45a3f1 commit 34be89e

5 files changed

Lines changed: 70 additions & 102 deletions

File tree

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ touch_icon: "img/apple-touch-icon.png"
2121

2222
## put YOUR key here to enable tracking! (blank to disable)
2323
google_analytics_key:
24+
mailchimp-list: //redgadgets.us10.list-manage.com/subscribe/post?u=210acce5db69d3d4a04b0e25d&id=08c6708f40
2425

2526

2627
### template colors, used site-wide via css ###

_includes/css/base.css

Lines changed: 19 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
/* Custom headers (edit by nic)
2525
==================================================*/
2626

27+
#mergeRow-gdpr p {
28+
padding: 0;
29+
}
30+
31+
.checkbox-red{
32+
border: 2px solid #ff9800;
33+
background-color: red;
34+
}
35+
2736
nav li {
2837
font-size: large;
2938
}
@@ -157,88 +166,6 @@ nav li {
157166
height: auto; }
158167

159168

160-
/* #Buttons
161-
================================================== */
162-
163-
.button,
164-
button,
165-
input[type="submit"],
166-
input[type="reset"],
167-
input[type="button"] {
168-
background: #eee; /* Old browsers */
169-
background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
170-
background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
171-
background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
172-
background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
173-
background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
174-
background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
175-
border: 1px solid #aaa;
176-
border-top: 1px solid #ccc;
177-
border-left: 1px solid #ccc;
178-
-moz-border-radius: 3px;
179-
-webkit-border-radius: 3px;
180-
border-radius: 3px;
181-
color: #444;
182-
display: inline-block;
183-
font-size: 11px;
184-
font-weight: bold;
185-
text-decoration: none;
186-
text-shadow: 0 1px rgba(255, 255, 255, .75);
187-
cursor: pointer;
188-
margin-bottom: 20px;
189-
line-height: normal;
190-
padding: 8px 10px;
191-
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
192-
193-
.button:hover,
194-
button:hover,
195-
input[type="submit"]:hover,
196-
input[type="reset"]:hover,
197-
input[type="button"]:hover {
198-
color: #222;
199-
background: #ddd; /* Old browsers */
200-
background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
201-
background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
202-
background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
203-
background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
204-
background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
205-
background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
206-
border: 1px solid #888;
207-
border-top: 1px solid #aaa;
208-
border-left: 1px solid #aaa; }
209-
210-
.button:active,
211-
button:active,
212-
input[type="submit"]:active,
213-
input[type="reset"]:active,
214-
input[type="button"]:active {
215-
border: 1px solid #666;
216-
background: #ccc; /* Old browsers */
217-
background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */
218-
background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */
219-
background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */
220-
background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */
221-
background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */
222-
background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ }
223-
224-
.button.full-width,
225-
button.full-width,
226-
input[type="submit"].full-width,
227-
input[type="reset"].full-width,
228-
input[type="button"].full-width {
229-
width: 100%;
230-
padding-left: 0 !important;
231-
padding-right: 0 !important;
232-
text-align: center; }
233-
234-
/* Fix for odd Mozilla border & padding issues */
235-
button::-moz-focus-inner,
236-
input::-moz-focus-inner {
237-
border: 0;
238-
padding: 0;
239-
}
240-
241-
242169
/* #Forms
243170
================================================== */
244171

@@ -251,14 +178,13 @@ nav li {
251178
input[type="email"],
252179
textarea,
253180
select {
254-
border: 1px solid #ccc;
181+
border: 0px solid #ccc;
255182
padding: 6px 4px;
256183
outline: none;
257-
-moz-border-radius: 2px;
258-
-webkit-border-radius: 2px;
259-
border-radius: 2px;
260-
font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
261-
color: #777;
184+
-moz-border-radius: 0px;
185+
-webkit-border-radius: 0px;
186+
border-radius: 0px;
187+
color: white;
262188
margin: 0;
263189
width: 210px;
264190
max-width: 100%;
@@ -267,31 +193,25 @@ nav li {
267193
background: #fff; }
268194
select {
269195
padding: 0; }
270-
input[type="text"]:focus,
271-
input[type="password"]:focus,
272-
input[type="email"]:focus,
273-
textarea:focus {
274-
border: 1px solid #aaa;
275-
color: #444;
276-
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
277-
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
278-
box-shadow: 0 0 3px rgba(0,0,0,.2); }
279196
textarea {
280197
min-height: 60px; }
281198
label,
282199
legend {
200+
color: white;
283201
display: block;
284202
font-weight: bold;
285203
font-size: 13px; }
286204
select {
287205
width: 220px; }
288206
input[type="checkbox"] {
207+
color: white;
289208
display: inline; }
209+
input[type="checkbox"] span,
290210
label span,
291211
legend span {
212+
color: white;
292213
font-weight: normal;
293-
font-size: 13px;
294-
color: #444; }
214+
font-size: 13px;}
295215

296216
/* #Misc
297217
================================================== */

_posts/2000-01-04-newsletter.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: "Newsletter"
3+
bg: adiblue
4+
color: white
5+
fa5-icon: far fa-envelope
6+
---
7+
8+
# Newsletter
9+
10+
<!-- Begin Mailchimp Signup Form -->
11+
<!-- <style type="text/css">
12+
#mc_embed_signup{background:#477BC1; clear:left; font:14px Helvetica,Arial,sans-serif; }
13+
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
14+
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
15+
</style>
16+
<style type="text/css">
17+
#mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}
18+
#mergeRow-gdpr {margin-top: 20px;}
19+
#mergeRow-gdpr fieldset label {font-weight: normal;}
20+
#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}
21+
</style> -->
22+
<div id="mc_embed_signup">
23+
<form action="https://androiddevs.us19.list-manage.com/subscribe/post?u=e70b1f6acc3b76573d1c8247d&amp;id=787175785e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
24+
<div id="mc_embed_signup_scroll">
25+
<label for="mce-EMAIL">Subscribe to our mailing list</label>
26+
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
27+
<div id="mergeRow-gdpr" class="mergeRow gdpr-mergeRow content__gdprBlock mc-field-group">
28+
<div class="content__gdpr">
29+
<label><p>Marketing Permissions</p></label>
30+
<p>Please select all the ways you would like to hear from Android Developers Italia:</p>
31+
<fieldset class="mc_fieldset gdprRequired mc-field-group" name="interestgroup_field">
32+
<label class="checkbox subfield" for="gdpr_32529"><input type="checkbox" id="gdpr_32529" name="gdpr[32529]" value="Y" class="av-checkbox checkbox-red gdpr filled-in"><span>Email</span> </label><label class="checkbox subfield" for="gdpr_32533"><input type="checkbox" id="gdpr_32533" name="gdpr[32533]" value="Y" class="av-checkbox gdpr checkbox-red filled-in"><span>Direct Mail</span> </label><label class="checkbox subfield" for="gdpr_32537"><input type="checkbox" id="gdpr_32537" name="gdpr[32537]" value="Y" class="av-checkbox checkbox-red gdpr filled-in"><span>Customized Online Advertising</span> </label>
33+
</fieldset>
34+
<p>You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.</p>
35+
</div>
36+
<div class="content__gdprLegal">
37+
<p>We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. <a href="https://mailchimp.com/legal/" target="_blank">Learn more about Mailchimp's privacy practices here.</a></p>
38+
</div>
39+
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
40+
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_e70b1f6acc3b76573d1c8247d_787175785e" tabindex="-1" value=""></div>
41+
<div class="red waves-effect waves-light btn"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" style="color: white;" /></div>
42+
</div>
43+
</div>
44+
</form>
45+
46+
47+
<!--End mc_embed_signup-->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Regolamento"
3-
bg: adiblue
3+
bg: adibackg
44
color: white
55
fa5-icon: fas fa-book
66
---
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Contatti"
3-
bg: adibackg
4-
color: white
3+
bg: white
4+
color: adibackg
55
style: center
66
fa-icon: envelope
77
---

0 commit comments

Comments
 (0)