Skip to content

Commit c89bec8

Browse files
jimwinsderickrsy-records
authored
Add links to PHP Foundation with a Donate button (#821)
Co-authored-by: Derick Rethans <[email protected]> Co-authored-by: Lu Fei <[email protected]>
1 parent 555ac83 commit c89bec8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

index.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@
200200

201201
$SIDEBAR = <<<SIDEBAR_DATA
202202
203+
<div class='panel'>
204+
<a href='https://thephp.foundation/' class='headline'>The PHP Foundation</a>
205+
<div class='body'>
206+
<p>The PHP Foundation is a collective of people and organizations, united in the mission to ensure the long-term prosperity of the PHP language.
207+
<p><a href='https://thephp.foundation/donate/' class='btn btn-primary'>Donate</a></p>
208+
</div>
209+
</div>
203210
$announcements
204211
<p class='panel'><a href='/cal.php'>User Group Events</a></p>
205212
<p class='panel'><a href='/thanks.php'>Special Thanks</a></p>

styles/home.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,25 @@ aside.tips .social-media .icon-twitter {
194194
font-size: 1.5em;
195195
vertical-align: middle;
196196
}
197+
198+
/* Unheroic button */
199+
.btn {
200+
box-sizing: border-box;
201+
padding: 0.5rem 1rem;
202+
margin-bottom: 1rem;
203+
border-radius: 2rem;
204+
text-align: center;
205+
display: inline-block;
206+
border: none;
207+
transition: background-color 0.2s;
208+
}
209+
210+
.btn-primary {
211+
background-color: var(--dark-blue-color);
212+
color: #fff !important;
213+
}
214+
215+
.btn-primary:hover, .hero-btn-primary:focus {
216+
background-color: var(--dark-magenta-color) !important;
217+
border-color: var(--dark-magenta-color) !important;
218+
}

0 commit comments

Comments
 (0)