Skip to content

Commit e0306e7

Browse files
JackStoufferwilzbach
authored andcommitted
Added donation call to action to the front page
1 parent 1889416 commit e0306e7

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

css/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,11 @@ the home page, intro pitch and your-code-here layed out vertically */
22252225
{
22262226
padding: 1em 2em;
22272227
}
2228+
2229+
.call_to_donate
2230+
{
2231+
padding: 40px 80px;
2232+
}
22282233
}
22292234

22302235
/* Narrow layout stage 3: no more two column boxes */
@@ -2251,6 +2256,11 @@ the home page, intro pitch and your-code-here layed out vertically */
22512256
#your-code-here-select-example select {
22522257
width: 100%;
22532258
}
2259+
2260+
.call_to_donate
2261+
{
2262+
padding: 20px 40px;
2263+
}
22542264
}
22552265

22562266
.decl_anchor {

index.dd

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,19 @@ consistency. $(LINK2 spec/memory-safe-d.html, Read more).)
665665
) $(COMMENT SECTION1)
666666
) $(COMMENT D_S)
667667

668+
$(DIVC call_to_donate,
669+
<h2>Support D</h2>
670+
<p class="center">D is made possible through the hard work and dedication of many volunteers,
671+
with the coordination and outreach of the D Language Foundation (501(c)(3)).
672+
You can help further the development of the D language and help grow our
673+
community by supporting the Foundation.
674+
</p>
675+
<p class="center">
676+
<a href="$(ROOT_DIR)donate.html" class="btn call_to_donate_btn">Donate</a>
677+
<a href="$(ROOT_DIR)foundation.html" class="btn subdued">Learn More About The Foundation</a>
678+
</p>
679+
)
680+
668681
Macros:
669682
TITLE=Home
670683
TAG=<$1>$+</$1>
@@ -722,6 +735,38 @@ Macros:
722735
padding-right: 0.7em;
723736
margin-bottom: -0.5em;
724737
}
738+
.call_to_donate
739+
{
740+
padding: 40px 140px;
741+
}
742+
.call_to_donate h2
743+
{
744+
text-align: center;
745+
margin: 0 0 20px 0;
746+
}
747+
.call_to_donate p
748+
{
749+
font-size: 14px;
750+
max-width: 1000px;
751+
margin: 20px auto;
752+
}
753+
.call_to_donate .btn
754+
{
755+
font-size: 16px;
756+
padding: 0.6em 1em;
757+
}
758+
a.call_to_donate_btn
759+
{
760+
background-color: #B03931;
761+
border-color: #98312A;
762+
color: white;
763+
}
764+
a.call_to_donate_btn:hover
765+
{
766+
background-color: #742620;
767+
border-color: #98312A;
768+
color: white;
769+
}
725770
)
726771
$(COMMENT index.html only for now, until we can figure out
727772
how to generate a URL to the current page for og:url)

0 commit comments

Comments
 (0)