Rearrange skins files, add new skin, improved text based on feedback from blog, license tweaks.

This commit is contained in:
gerv%gerv.net 2005-01-15 13:13:10 +00:00
Родитель e33d944c95
Коммит 2fd7ef19bc
11 изменённых файлов: 103 добавлений и 17 удалений

Просмотреть файл

@ -23,6 +23,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK *****
use strict;
@ -44,7 +45,7 @@ my $form = $cgi->Vars;
my $vars;
$vars->{'form'} = $form;
$vars->{'newsgroup'} = $newsgroup;
$vars->{'stylesheet'} = $form->{'stylesheet'} || "hendrix.css";
$vars->{'stylesheet'} = $form->{'stylesheet'} || "skin/default.css";
my $template = Template->new({
INCLUDE_PATH => ["template"],

Просмотреть файл

@ -22,8 +22,14 @@
*
* ***** END LICENSE BLOCK ***** */
#header-img {
.sidebar {
float: right;
width: 200px;
font-size: small;
text-align: center;
}
#header-img {
border: 1px grey solid;
margin-left: 10px;
}
@ -32,10 +38,6 @@ p.error {
color: red;
}
.footnote {
font-size: small;
}
h1 {
font-size: x-large;
}

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 6.6 KiB

После

Ширина:  |  Высота:  |  Размер: 6.6 KiB

Просмотреть файл

@ -0,0 +1,66 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is a stylesheet for the Hendrix Feedback System.
*
* The Initial Developer of the Original Code is
* KDS Sahambi <kds.sahambi@gmail.com>.
* Portions created by the Initial Developer are Copyright (C) 2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gervase Markham <gerv@gerv.net>
*
* ***** END LICENSE BLOCK ***** */
@import url("http://planet.mozilla.org/planet2.css");
input[type="text"] {
font-family: monospace;
}
#name:focus, #email:focus, #subject:focus, #comments:focus{
background-color: #e4ecec;
}
#name, #email {
width: 25em;
}
#subject, #comments {
width: 40em;
}
#comments {
height: 20ex;
}
#header-img {
padding: 2px;
border: 2px solid #455372;
background: #e4ecec;
}
div.sidebar {
float: right;
text-align: center;
}
.newsgroup {
font-family: monospace;
}
p.error {
color: red;
}

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% PROCESS header.html.tmpl

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
</body>

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
@ -35,7 +36,6 @@
</head>
<body onload="[% onload %]">
<img id="header-img" src="hendrix.jpg">
[% IF NOT h1 AND title %]
[% h1 = title %]
[% END %]
@ -43,3 +43,15 @@
[% IF h1 %]
<h1>[% h1 %]</h1>
[% END %]
<div class="sidebar">
<div>
<img id="header-img" src="skin/hendrix.jpg">
<p class="caption">
Why "Hendrix"? The late
<a href="http://en.wikipedia.org/wiki/Jimi_Hendrix">Jimi Hendrix</a>
is credited with making popular the technique of using feedback
in the creation of music.
</p>
</div>
</div>

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% script = BLOCK %]
@ -112,20 +113,19 @@ function onLoad() {
>[% form.comments FILTER html %]</textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input id="send-feedback" type="submit" value="Send Feedback"/>
</td>
</tr>
</table>
<input type="hidden" name="action" value="submit"/>
[%# Add JS to only enable button when form is filled in %]
<input id="send-feedback" type="submit" value="Send Feedback"/>
<input type="hidden" name="stylesheet" value="[% stylesheet FILTER html %]"/>
</form>
<p>
Information from this form will be published to the newsgroup <span class="newsgroup">[% newsgroup %]</span> so project contributors can read it. Do not submit any information unless you wish it to be made public. Your email address will be spam-proofed.
</p>
<p class="footnote">Why "Hendrix"? The late
<a href="http://en.wikipedia.org/wiki/Jimi_Hendrix">Jimi Hendrix</a>
is credited with making popular the technique of making feedback useful in the creation of music :-).</p>
[% PROCESS footer.html.tmpl %]

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% from = form.name %]
[% IF form.email %]

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
Name: [% form.name %]
[% IF form.email %]

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
#
# The Initial Developer wrote this software to the Glory of God.
# ***** END LICENSE BLOCK ***** %]
[% PROCESS header.html.tmpl