Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 015e000

Browse files
author
Joseph Damiba
authored
Merge pull request plotly#1134 from plotly/mailchimp_footer
Add Mailchimp form to footer
2 parents 280bd70 + 9ab396d commit 015e000

File tree

6 files changed

+75
-3
lines changed

6 files changed

+75
-3
lines changed

_config_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plotlyjs_download_url: https://cdn.plot.ly/plotly-latest.min.js
1717
# Excludes
1818
# ---
1919
# all of the posts: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotly_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-04-05-python-index.html','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-26-index.html','_posts/2015-07-30-r-index.Rmd','_posts/2015-07-30-r-index.md','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/plotly_js','_posts/python','_posts/r','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python']
20-
exclude: ['*.Rmd','_posts/matlab','_posts/dashboards','_posts/julia','_posts/matplotlib','_posts/misc','_posts/nodejs','_posts/numpy','_posts/scala','_posts/scikit','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python', 'vendor']
20+
exclude: ['*.Rmd','_posts/2015-09-09-matlab-reference.html','_posts/2015-09-06-r-reference.html','_posts/2015-09-06-python-reference.html','_posts/2015-08-19-plotly_js-reference.html','_posts/2015-04-05-ggplot2-index.html','_posts/2015-04-05-julia-index.html','_posts/2015-04-05-matlab-index.html','_posts/2015-04-05-matplotlib-index.html','_posts/2015-04-05-node_js-index.html','_posts/2015-04-05-plotly_js-index.html','_posts/2015-04-05-plotlyjs-function-reference.md','_posts/2015-04-05-python-index.html','_posts/2015-05-25-ipython-notebooks_gallery.html','_posts/2015-05-25-ipython-notebooks_index.html','_posts/2015-07-13-eula_index.html','_posts/2015-07-19-pandas.html','_posts/2015-07-30-r-index.Rmd','_posts/2015-07-30-r-index.md','_posts/2015-08-20-research-box-index.html','_posts/ggplot2','_posts/julia','_posts/matlab','_posts/matplotlib','_posts/nodejs','_posts/pandas','_posts/plotly_js','_posts/python','_posts/r','_posts/tutorials','_posts/user_guide_matlab','_posts/user_guide_python']
2121
#exclude: [_posts/temp, '*.Rmd']
2222

2323
# ---

_data/cache_bust_css.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
e1f40e63b86de7c2e0444738a2c8f9df ../all_static/css/main.css
1+
ff0a6e91ea3d23b64142c0d4d49e4b1b ../all_static/css/main.css
22
a5765df8bc2358dd61c19edcc0cbef7d ../all_static/css/normalize.css

_includes/_new/_page-components/_footer-main.html

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,31 @@ <h6 style="color:#19d3f3" class="--footer-heading">EMBEDDED BI/OEM</h6>&#x9;&#x9
6161
<li><a href="https://plot.ly/dashboards/" target="_self">Dashboards</a></li>
6262
</ul>
6363
</li>
64+
&#x9;&#x9;
65+
<li class="--footer-column">
66+
<h6 style="color:#119dff" class="--footer-heading">JOIN THE DASH CLUB</h6>&#x9;&#x9;&#x9;
67+
<ul>
68+
&#x9;&#x9;&#x9;&#x9;
69+
<li><form action="https://plot.us12.list-manage.com/subscribe/post" method="POST" target="_blank" noValidate>
70+
<input type="hidden" name="u" value="28d7f8f0685d044fb51f0d4ee"/>
71+
<input type="hidden" name="id" value="0c1cb734d7"/>
72+
73+
<label htmlFor='MERGE0'>
74+
<p class="mailchimp-footer-text"> Dash Club is a no-fluff, twice-a-month email with links and notes on the latest Dash developments and community happenings.</p>
75+
<input
76+
type="email"
77+
name="EMAIL"
78+
id="MERGE0"
79+
placeholder="Your Email Address"
80+
autoCapitalize="off"
81+
autoCorrect="off"
82+
class="mc-input"
83+
/>
84+
</label>
85+
<input type="submit" value="Subscribe" name="subscribe" class="mc-embedded-subscribe"/>
86+
</form></li>
87+
</ul>
88+
</li>
6489
</ul>
6590
</div>
6691
</section>
@@ -190,4 +215,4 @@ <h6 style="color:#19d3f3" class="--footer-heading">EMBEDDED BI/OEM</h6>&#x9;&#x9
190215
}
191216
});
192217

193-
</script>
218+
</script>

all_static/css/main.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,11 @@ header.header-main {
859859
margin: 0;
860860
padding: 0;
861861
margin-bottom: 10px; }
862+
@media screen and (min-width: 1200px) {
863+
.\--footer-main ul.\--footer-body {
864+
-webkit-flex-wrap: nowrap;
865+
-ms-flex-wrap: nowrap;
866+
flex-wrap: nowrap; } }
862867
.\--footer-main .\--footer-column {
863868
-webkit-box-flex: 1;
864869
-webkit-flex: 1 1 20%;
@@ -7608,6 +7613,24 @@ div#notebook {
76087613
letter-spacing: 1px;
76097614
color: #626262; }
76107615

7616+
.mailchimp-footer-text {
7617+
-webkit-margin-before: 0em;
7618+
margin-block-start: 0em;
7619+
font-size: 80%;
7620+
color: #626262; }
7621+
7622+
.mc-input {
7623+
margin-top: 5px;
7624+
margin-bottom: 10px;
7625+
border: 1px solid #626262;
7626+
padding: 5px; }
7627+
7628+
.mc-embedded-subscribe {
7629+
color: #fff;
7630+
background-color: #119dff;
7631+
-webkit-box-shadow: 0px 2px 8px rgba(80, 103, 132, 0.4);
7632+
box-shadow: 0px 2px 8px rgba(80, 103, 132, 0.4); }
7633+
76117634
.\--page-body {
76127635
-webkit-box-flex: 1;
76137636
-webkit-flex: 1;

scss/_components/_foot.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
margin: 0;
2828
padding: 0;
2929
margin-bottom: $unit;
30+
31+
@media screen and (min-width: 1200px) {
32+
flex-wrap: nowrap;
33+
}
3034
}
3135

3236
.\--footer-column {

scss/_pages/_home.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,23 @@
231231
}
232232
}
233233
}
234+
235+
.mailchimp-footer-text{
236+
margin-block-start: 0em;
237+
font-size: 80%;
238+
color: #626262;
239+
}
240+
241+
.mc-input{
242+
margin-top: 5px;
243+
margin-bottom: 10px;
244+
border: 1px solid #626262;
245+
padding: 5px;
246+
}
247+
248+
.mc-embedded-subscribe{
249+
color: #fff;
250+
background-color: #119dff;
251+
box-shadow: 0px 2px 8px rgba(#506784, 0.4);
252+
}
253+

0 commit comments

Comments
 (0)