mirror of
https://github.com/torproject/webwml.git
synced 2024-11-23 18:00:01 +00:00
Bug #17880: Donation banner on home page
This commit is contained in:
parent
feae0d1904
commit
8b7fb8a465
@ -1310,3 +1310,36 @@ p.blogDate {
|
||||
}
|
||||
/* End hide from IE-mac */
|
||||
|
||||
#donation-banner {
|
||||
display: block;
|
||||
height: 200px;
|
||||
margin: auto;
|
||||
margin-bottom: 5px;
|
||||
position: relative;
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
#donation-banner > a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#donation-banner > img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#donate-button {
|
||||
background-color: green;
|
||||
border-radius: 5px;
|
||||
bottom: 15px;
|
||||
color: white;
|
||||
font-family: sans-serif;
|
||||
font-size: 20px;
|
||||
padding: 14px 14px;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#donate-button:hover {
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
|
24
en/index.wml
24
en/index.wml
@ -2,6 +2,30 @@
|
||||
# Revision: $Revision$
|
||||
# Translation-Priority: 1-high
|
||||
|
||||
<!-- Donation banner for fundraising campaign. -->
|
||||
<div id="donation-banner">
|
||||
<a href="donate/donate-hpbanner.html.en">
|
||||
<noscript>
|
||||
<!-- We don't have JavaScript, so show our default champion. -->
|
||||
<img id="donation-banner-image-noscript" src="images/homepage-banner-ss.jpg" />
|
||||
</noscript>
|
||||
<!-- Placeholder for the champion banner image that will be added
|
||||
by JavaScript. -->
|
||||
<img id="donation-banner-image"" />
|
||||
</a>
|
||||
<a href="donate/donate-hpbanner.html.en">
|
||||
<div id="donate-button">Please Donate!</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<!-- Show a different champion at random. -->
|
||||
var alternates = ["cd", "lp", "rd", "rr", "ss"];
|
||||
var alternate = alternates[Math.floor(Math.random() * alternates.length)];
|
||||
var image = document.getElementById("donation-banner-image");
|
||||
image.src = "images/homepage-banner-" + alternate + ".jpg";
|
||||
</script>
|
||||
|
||||
#include "head.wmi" TITLE="Tor Project: Anonymity Online" CHARSET="UTF-8"
|
||||
|
||||
<div id="home">
|
||||
|
BIN
images/homepage-banner-cd.jpg
Executable file
BIN
images/homepage-banner-cd.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
BIN
images/homepage-banner-lp.jpg
Executable file
BIN
images/homepage-banner-lp.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
BIN
images/homepage-banner-rd.jpg
Executable file
BIN
images/homepage-banner-rd.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 85 KiB |
BIN
images/homepage-banner-rr.jpg
Executable file
BIN
images/homepage-banner-rr.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 96 KiB |
BIN
images/homepage-banner-ss.jpg
Executable file
BIN
images/homepage-banner-ss.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
Loading…
Reference in New Issue
Block a user