Skip to content

Commit 98f5617

Browse files
committed
Added sponsor banner to Trac.
1 parent 53c19ab commit 98f5617

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

scss/trachacks.scss

+51
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,46 @@ h1, h2, h3, h4, h5, h6, span {
3434
}
3535
}
3636

37+
// Sponsorship banner
38+
div.sub-banner {
39+
font-family: Arial, Verdana, sans-serif;
40+
padding: 1px 10px;
41+
display: flex;
42+
flex-direction: row;
43+
border-bottom: 2px;
44+
border-color: $gray-line;
45+
}
46+
p.sub-banner-content {
47+
width: 70%;
48+
padding-right: 1em;
49+
}
50+
div.sub-banner-cta {
51+
display: flex;
52+
align-items: center;
53+
border-radius: 0.3em;
54+
55+
a {
56+
border: 1px solid $green-medium;
57+
padding: 0.7em 1em;
58+
font-size: 16px;
59+
font-weight: normal;
60+
border-radius: 0.3em;
61+
62+
i {
63+
color: $red-medium;
64+
}
65+
66+
&:hover,
67+
&:focus,
68+
&:active {
69+
border: 1px solid $green-dark;
70+
color: $green-dark;
71+
outline: none;
72+
background: $green-very-light;
73+
}
74+
}
75+
}
76+
3777
div.trac-content {
3878
border: 0;
3979
}
@@ -417,4 +457,15 @@ div[role="main"]{
417457
min-width: inherit;
418458
overflow: scroll;
419459
}
460+
// Sponsorship banner
461+
div.sub-banner {
462+
display: block;
463+
}
464+
p.sub-banner-content {
465+
width: 100%;
466+
padding-right: 0;
467+
}
468+
div.sub-banner-cta {
469+
padding-bottom: 10px;
470+
}
420471
}

trac-env/templates/site.html

+14
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ <h3>Useful links</h3>
9696
</div>
9797
</py:if>
9898
<py:if test="req.environ['PATH_INFO'] != '/'">
99+
<div class="sub-banner container">
100+
<p class="sub-banner-content">
101+
Thank you for your interest in Django's development - the community relies on people like you!
102+
Have you interacted with one of our fantastic
103+
<a href="https://www.djangoproject.com/fundraising/#who-are-the-django-fellows">Fellows?</a>
104+
By donating to the Django Software Foundation you fund the Fellowship Program, and therefore the
105+
<b>continued maintenance and development of Django</b>.
106+
</p>
107+
<div class="sub-banner-cta">
108+
<a class="btn btn-lg btn-primary" href="https://www.djangoproject.com/fundraising/">
109+
<i class="icon icon-heart"></i> Donate
110+
</a>
111+
</div>
112+
</div>
99113
<div class="container full-width">
100114
<div role="main">
101115
<py:if test="req.authname != 'anonymous' and not req.session.email">

0 commit comments

Comments
 (0)