[gnomeweb-wml] [wgo] Add Friends of GNOME ruler on front page
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wml] [wgo] Add Friends of GNOME ruler on front page
- Date: Mon, 22 Mar 2010 22:58:11 +0000 (UTC)
commit 5cad2925364d187dd65b780b6a86a0595fdd396b
Author: Lucas Rocha <lucasr litl com>
Date: Mon Feb 8 21:49:49 2010 +0000
[wgo] Add Friends of GNOME ruler on front page
include/evilsedhack | 11 +++++++++++
www.gnome.org/friends/ruler/Makefile.am | 4 +++-
www.gnome.org/friends/ruler/ruler-bg.jpg | Bin 0 -> 14403 bytes
www.gnome.org/friends/ruler/ruler.js | 1 +
4 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/include/evilsedhack b/include/evilsedhack
index 5cee6b2..41c4f92 100755
--- a/include/evilsedhack
+++ b/include/evilsedhack
@@ -57,6 +57,15 @@ case $TOPL in
esac
TABS=$(echo $TABS | sed "s#<li><a href=\"\(/$TOPL.*\)#<li class=\"selected\"><a href=\"\1#")
+case $URLPATH/$PAGE in
+ /index.wml)
+ RULER="<script type=\"text/javascript\" src=\"friends/ruler/ruler.js\"></script>"
+ ;;
+ *)
+ RULER=""
+ ;;
+esac
+
## END OF <HEAD> AND HEADER
cat <<HEAD
</head>
@@ -98,6 +107,8 @@ $TABS
</div>
<!-- end site header -->
+ $RULER
+
<div id="body">
<div id="content">
HEAD
diff --git a/www.gnome.org/friends/ruler/Makefile.am b/www.gnome.org/friends/ruler/Makefile.am
index 38dd1c5..7d9a4b0 100644
--- a/www.gnome.org/friends/ruler/Makefile.am
+++ b/www.gnome.org/friends/ruler/Makefile.am
@@ -5,6 +5,8 @@ urlpath = /friends/ruler
include $(top_srcdir)/rules.common
page_DATA = \
- index.html
+ index.html \
+ ruler-bg.jpg \
+ ruler.js
EXTRA_DIST=$(page_DATA)
diff --git a/www.gnome.org/friends/ruler/ruler-bg.jpg b/www.gnome.org/friends/ruler/ruler-bg.jpg
new file mode 100644
index 0000000..a7c4a55
Binary files /dev/null and b/www.gnome.org/friends/ruler/ruler-bg.jpg differ
diff --git a/www.gnome.org/friends/ruler/ruler.js b/www.gnome.org/friends/ruler/ruler.js
new file mode 100644
index 0000000..b3753e2
--- /dev/null
+++ b/www.gnome.org/friends/ruler/ruler.js
@@ -0,0 +1 @@
+document.write(' <style type="text/css"> #gnome-fog-ruler { background: #237100 url(http://www.gnome.org/friends/ruler/ruler-bg.jpg) center no-repeat; padding: 16px 0px 16px 0px; color: #fff; font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, sans-serif; font-size: 12px; z-index: 200; float: left; width: 100%; position: relative; } #gnome-fog-ruler * { margin: 0; padding: 0; } #gnome-fog-ruler .fog-center { width: 960px; margin: 0 auto; text-align: left; } #gnome-fog-ruler a { color: #fff; } #gnome-fog-ruler .fog-intro { width: 380px; float: left; margin-right: 12px; } #gnome-fog-ruler .fog-intro h4 { margin-bottom: 6px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #346704; } #gnome-fog-ruler .fog-ruler { background: #fff; overflow: hidd
en; -moz-border-radius: 4px; -webkit-border-radius: 4px; padding: 2px; -moz-box-shadow: 0 1px 2px #346704; -webkit-box-shadow: 0 1px 2px #346704; } #gnome-fog-ruler .fog-ruler .fog-bar { display: block; float: left; font-size: 5px; height: 14px; line-height: 12px; } #gnome-fog-ruler .green { background: #66bb14; } #gnome-fog-ruler .orange { background: #f57900; } #gnome-fog-ruler .blue { background: #729fcf; } #gnome-fog-ruler .yellow { background: #fce94f; } #gnome-fog-ruler .white { background: #fff; } #gnome-fog-ruler .green { background: #8ae234; } #gnome-fog-ruler .fog-description { margin-top: 8px; overflow: hidden; text-align: center; } #gnome-fog-ruler .fog-description .fog-item { margin-right: 12px; display: block; float: left; overflow: hidden; te
xt-align: left; } #gnome-fog-ruler .fog-description .fog-item .fog-box { display: block; float: left; width: 12px; height: 12px; border: 1px solid #fff; margin: 0 6px 6px 0; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: 0 1px 2px #346704; -webkit-box-shadow: 0 1px 2px #346704; } #gnome-fog-ruler .fog-description .fog-item .fog-details { font-style: italic; display: block; margin-left: 20px; } #gnome-fog-ruler .fog-donate { float: right; margin-top: 11px; } #gnome-fog-ruler .fog-donate a { display: block; padding: 6px 8px; background: #fff; color: #333; font-weight: bold; text-decoration: none; font-size: 14px; -moz-box-shadow: 0 1px 2px #346704, inset 0 -3px 10px #ccc; -webkit-box-shadow: 0 1px 2px #346704, inset 0 -3px 10px #ccc;
-moz-border-radius: 4px; -webkit-border-radius: 4px; } #gnome-fog-ruler .fog-donate a:hover { color: #204a87; text-decoration: underline; }</style><div id="gnome-fog-ruler"> <div class="fog-center"> <div class="fog-intro"> <h4>The GNOME Project needs your help!</h4> <p>GNOME Foundation wants to hire a sysadmin so that GNOME developers can focus on GNOME. Help us doing that!</p> </div> <div class="fog-data"> <div class="fog-ruler"><span style="width: 17.54%;" class="fog-bar orange"> </span><span style="width: 8.77%;" class="fog-bar blue"> </span><span style="width: 8.77%;" class="fog-bar yellow"> </span><span style="width: 37.13%;" class="fog-bar green"> </span> </div> <div class="fog-donate"> <a href="http://www.gnome.org/friends/">Donate now!</a> </div> <div class="fog-description"><div class="fog-item"><span
class="fog-box orange"> </span><strong>Canonical</strong><span class="fog-details">$10,000</span></div><div class="fog-item"><span class="fog-box blue"> </span><strong>Google</strong><span class="fog-details">$5,000</span></div><div class="fog-item"><span class="fog-box yellow"> </span><strong>Nokia</strong><span class="fog-details">$5,000</span></div><div class="fog-item"><span class="fog-box green"> </span><strong>Friends of GNOME</strong><span class="fog-details">$21,165. $15,835 to go!</span></div> </div> </div> <div style="clear: both;"></div> </div></div>')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]