Skip to content

Commit 4e8a1ae

Browse files
committed
Chore: Added validations to the Mailing list form
Signed-off-by: Abhijay Jain <[email protected]>
1 parent a1df30f commit 4e8a1ae

File tree

3 files changed

+47
-22
lines changed

3 files changed

+47
-22
lines changed

docs/_includes/subscribe.html

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,24 @@
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 {
@@ -42,8 +55,7 @@
4255
margin-bottom: 5px;
4356
}
4457

45-
#mc_embed_signup .clear {
46-
display: block;
58+
#mc_embed_signup {
4759
width: 100%;
4860
}
4961

docs/collections/_pages/subscribe.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
flex-direction:column;
99
align-items: center;
1010
justify-content: center;
11-
padding: calc(50% - 105px);
11+
padding: 20% 0px 0px 0px;
12+
font-style: normal;
13+
font-size: 1.5rem;
14+
line-height: 2.25rem;
15+
color: #1e2117;
1216
">
13-
<h3 style="text-align:center;">Mailing List</h3>
17+
<h3 style="text-align:center; margin-bottom: 30px;">Mailing List</h3>
1418
{% include subscribe.html %}
1519
</div>
1620
</div>

0 commit comments

Comments
 (0)