Skip to content

Commit e7fa7f7

Browse files
authored
Merge pull request #234 from Abhijay007/chore/Abhijay007/issue#229
Chore: Formatted community Mailing list component
2 parents e18e314 + 4e8a1ae commit e7fa7f7

File tree

3 files changed

+54
-29
lines changed

3 files changed

+54
-29
lines changed

docs/_includes/subscribe.html

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div>
2-
<a id="subscribe" class="subscribe-a"></a>
2+
<a id="subscribe" class="subscribe-a" ></a>
33
<!-- Begin MailChimp Signup Form -->
44
<link
55
href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css"
@@ -15,7 +15,7 @@
1515
id="mc-embedded-subscribe-form"
1616
name="mc-embedded-subscribe-form"
1717
class="validate"
18-
novalidate
18+
onsubmit="document.getElementById('mc-embedded-subscribe-form').submit();"
1919
>
2020
<div id="mc_embed_signup_scroll">
2121
<div class="subscribe-inputbox"
@@ -28,7 +28,12 @@
2828
name="FNAME"
2929
class="email"
3030
id="mce-FNAME"
31-
style="width: 49%"
31+
style="width: 48%;
32+
height: 3rem;
33+
border: 1px solid #000000;
34+
box-sizing: border-box;
35+
border-radius: 5px;"
36+
required
3237
/>
3338
<input
3439
type="text"
@@ -37,7 +42,12 @@
3742
name="LNAME"
3843
class="email"
3944
id="mce-LNAME"
40-
style="width: 49%"
45+
style="width: 48%;
46+
height: 3rem;
47+
border: 1px solid #000000;
48+
box-sizing: border-box;
49+
border-radius: 5px;"
50+
required
4151
/>
4252
</div>
4353
<div id="mce-responses" class="clear subscribe-inputbox">
@@ -63,8 +73,13 @@
6373
class="email"
6474
id="mce-EMAIL"
6575
placeholder="Email Address"
76+
style="width: 100%;
77+
margin: 20px 20px 0px 0px;
78+
height: 3rem;
79+
border: 1px solid #000000;
80+
box-sizing: border-box;
81+
border-radius: 5px;"
6682
required
67-
style="white-space: nowrap; display: inline-block; width: 100%"
6883
/>
6984
<!-- <span class="asterisk" style="white-space: nowrap;">*</span> -->
7085
</div>
@@ -81,21 +96,15 @@
8196
value=""
8297
/>
8398
</div>
84-
<div
85-
onclick="document.getElementById('mc-embedded-subscribe-form').submit();"
86-
id="mc_embed_signup"
87-
class="clear"
88-
>
8999
<h4 style="text-align: center; color: aliceblue">
90-
<input
100+
<button
101+
style="margin: 0px !important;"
91102
class="subscribe-button"
92103
type="submit"
93-
value="Subscribe"
94-
name="subscribe"
95-
id="mc-embedded-subscribe"
96-
/>
104+
id="mc-embedded-subscribe-form"
105+
id="mc_embed_signup"
106+
>Subscribe</button>
97107
</h4>
98-
</div>
99108
</div>
100109
</form>
101110
</div>

docs/assets/css/subscribe.css

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,31 @@
99
}
1010

1111
.subscribe-button {
12-
padding-bottom: 10px;
13-
padding-top: 10px;
14-
width: 300px;
12+
width: 100%;
1513
margin-left: auto !important;
1614
margin-right: auto !important;
15+
text-decoration: none;
16+
padding: 15px 30px;
17+
background: #3c494f;
18+
border-radius: 3px;
19+
border: 1px solid rgba(255,255,255,0.5);
20+
transition: .2s ease-in-out;
21+
display: flex;
22+
justify-content: center;
23+
height: 3.5rem;
24+
color: white;
25+
font-style: normal;
26+
font-weight: 500;
27+
font-size: 1.125rem;
28+
cursor: ;
29+
letter-spacing: 0.5px;
1730
}
1831

1932
.subscribe-inputbox {
2033
white-space: nowrap;
2134
}
2235
#mc_embed_signup {
23-
clear: left;
2436
font: 14px Helvetica, Arial, sans-serif;
25-
width: 80%;
26-
text-align: center;
27-
margin-left: auto;
28-
margin-right: auto;
2937
}
3038

3139
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
@@ -47,8 +55,7 @@
4755
margin-bottom: 5px;
4856
}
4957

50-
#mc_embed_signup .clear {
51-
display: block;
58+
#mc_embed_signup {
5259
width: 100%;
5360
}
5461

docs/collections/_pages/subscribe.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@
44
---
55
<div>
66
<div>
7-
<div id="contact" style="width:100%;">
8-
<h3 style="text-align:center;">Mailing List</h3>
7+
<div id="contact" style="display: flex;
8+
flex-direction:column;
9+
align-items: center;
10+
justify-content: center;
11+
padding: 20% 0px 0px 0px;
12+
font-style: normal;
13+
font-size: 1.5rem;
14+
line-height: 2.25rem;
15+
color: #1e2117;
16+
">
17+
<h3 style="text-align:center; margin-bottom: 30px;">Mailing List</h3>
918
{% include subscribe.html %}
1019
</div>
1120
</div>
12-
</div>
21+
</div>

0 commit comments

Comments
 (0)