Anonymous avatar Anonymous committed 7fe9664 Merge

Adding an alternate theme 'whitechili'.

Comments (0)

Files changed (4)

src/redhot2_web_about.erl

 Now it is making use of <a href='http://nitrogenproject.com/'>Nitrogen 2.0</a>
 and <a href='http://couchdb.apache.org/'>CouchDB</a>. Version 3 implemented a
 desktop like interface, with no visible pages but the top one. In version 4 it
-has returned to a more REST like structure. It has also got a new layout.
+has returned to a more page based structure. It has also got a new layout and has
+become theme-able. So if you come up with a new theme, do send it to me and I'll
+add it to the theme page :-)
 </p>
 <p>If you would like to try it out or just look at the code, 
-you will find the git repository 
-<a href='http://dev.tornkvist.org/'>here</a>.
-To checkout the code with git, run:</p>
-<pre>
-      git clone git://dev.tornkvist.org/redhot
-</pre>    
+you will find a hg repository 
+<a href='http://bitbucket.org/etnt/redhoterlang/'>here</a>.
 
 <p>Note that this is still work in progress...</p>". % " emacs mode bug ?
 

src/redhot2_web_atom.erl

+%%% @author Torbjorn Tornkvist <etnt@redhoterlang.com>
+%%% @copyright (C) 2010, Torbjorn Tornkvist
+
+-module(redhot2_web_atom).
+
+-export([main/0]).
+-import(redhot2,[rfc3339/0]).
+
+-include_lib ("nitrogen/include/wf.hrl").
+
+
+main() -> 
+    atom_feed().
+
+atom_feed() ->
+    export(feed(entries())).
+% mochiweb
+%    list_to_binary(export(feed(entries()))).
+
+entries() ->
+    F = fun({obj,E},Acc) ->
+                {Xml,_} = xmerl_scan:string(binary_to_list(
+                                              proplists:get_value("entry",E))),
+                [Xml|Acc]
+        end,
+    lists:foldr(F, [], redhot2_couchdb:atom()).
+
+feed(Entries) ->
+    [{feed, [{xmlns,"http://www.w3.org/2005/Atom"}],
+      [{title, [], ["RedHotErlang"]},
+       {meta, [{'http-equiv',"Content-Type"},
+	       {content,"application/atom+xml;charset=utf-8"}], []},
+       {link, [{ref,"self"},{href,"/web/atom"}], []},
+       {updated, [], [lists:flatten(rfc3339())]}  % FIXME
+      ] ++ Entries
+     }].
+
+
+export(Content) ->
+    xmerl:export_simple(Content, xmerl_xml, [{prolog,prolog()}]).
+
+
+prolog() ->
+    "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n".
+

www/css/digitalchili.css

     background-color:#eff0e7;
     margin:0;
     padding:0;
-    font-family: Verdana,Arial,Helvetica,sans-serif;
+    font-family: Verdana,Arial,Helvetica,clean,sans-serif;
     font-size:1em;
     line-height:1.6em;
     color:#595959;
 }
 
+.chili_logo {position:absolute; top:5px; left:-100px; z-index:10;}
+
 h1.header {
-    font-family:"Lucida Grande","Trebuchet MS",Verdana,sans-serif;
-//      font-family:"Book Antiqua","Warnock Pro","Goudy Old Style","Palatino","Georgia","serif"; 
+// It is hard to choose a font....
+//    font-family:"Lucida Grande","Trebuchet MS",Verdana,sans-serif;
+//    font-family:"Consolas","Monaco","Courier New","Courier","monospace";
+      font-family:"Book Antiqua","Warnock Pro","Goudy Old Style","Palatino","Georgia","serif"; 
 //	font-family:Geneva, "Times New Roman", Times, serif;
 //	font-family: Verdana,Arial,Helvetica,sans-serif;
 //	font-family: Arial,Helvetica,sans-serif;
     letter-spacing:1px;
 }
 
-
 form {
-	border:0;
-	padding:0;
-	margin:0;
+    border:0;
+    padding:0;
+    margin:0;
 }
 
 p,
 textarea,
 label,
 select {
-	font-size:1.1em;
+    font-size:1.1em;
 }
 
-a img {
-	border:0;
+a {text-decoration:underline; color:black;}
+a:visited {text-decoration:underline; color:#595959;}
+
+.chilired {color:#d13430;}
+.big {font-size:120%;color:#d13400;}
+
+/*
+ * The page Intro text
+ */
+.intro {
+    margin:0 1.5em 1em -1.5em;
+    padding: 2px 0;
+    border-top:2px solid #cbd0c2;
+    border-bottom:2px solid #cbd0c2;
+    letter-spacing:1px;
+    font-family:Geneva, Arial, Helvetica, sans-serif;
+    font-size:9px;
+    text-decoration:none;
+    color:#91918d;
+    font-weight:normal;
+    font-size:120%;
 }
 
-a {
-	outline:none;
-	color:#0c3140;
+/*
+ * The page menu
+ */
+.menu_box {
+    margin:-40px 0 40px 0;
+    padding:0;
+    list-style-type:none;
+    float:right;
 }
+.menu a  {
+    margin:0 0 0 0px;
+    padding:0px 4px;
+    float:left;
+    color:#7d9093;
+    text-transform:uppercase;
+    letter-spacing:1px;
+    font-family:Geneva, Arial, Helvetica, sans-serif;
+    font-size:9px;
+    text-decoration:none;
+    display:block;
+}
+.menu a:hover {color:#d13400;}
+a.selected {color:black; background-color:#d7d8cf;}
 
-
-#holder {
-	width:980px;
-	margin:0 auto;
-	padding:0;
-}
-
+/*
+ * OpenID box
+ */
 .openid_box {margin:25px 0px -25px 0px; padding-left:5px;}
 input.openid_login {
    background: url(http://openid.net/login-bg.gif) no-repeat;
    padding-left: 18px;
 }
 
-.menu_box {
-	margin:-40px 0 40px 0;
-	padding:0;
-	list-style-type:none;
-	float:right;
-}
-
-.menu a  {
-	margin:0 0 0 0px;
-	padding:0px 4px;
-	float:left;
-	color:#7d9093;
-	text-transform:uppercase;
-	letter-spacing:1px;
-	font-family:Geneva, Arial, Helvetica, sans-serif;
-	font-size:9px;
-	text-decoration:none;
-	display:block;
-}
-
-.big {font-size:120%;color:#d13400;}
-
-
-.menu a:hover {
-	color:#d13400;
-}
 
 /* 
  * List entries
 a:hover.l_date_unpub{text-decoration:underline;}
 .l_author {display:inline-block;margin-left:1em; width: 4em; font-weight:normal;}
 .l_title {margin-left:2em; font-weight:bold; letter-spacing:1px;}
-a.l_title {text-decoration:none;}
+a.l_title {text-decoration:none; color:#595959;}
 a:hover.l_title {text-decoration:underline;}
 .l_body {margin-left:3em; margin-top:1em;}
 
 }
 .c_is_author:after {margin:0 0.5em 0 1em; content:"Author comment"; font-size:0.80em; text-transform:uppercase;}
 
-
 code {font-size: 110%;line-height:90%;}
 
-a.selected {color:black; background-color:#d7d8cf;}
-
 .by_who {color:black;}
 
 .footer {
-	clear:both;
-	float:left;
-	width:980px;
-	margin:4em 0 0 0;
-	padding:1em 0 4em 0;
-	border-top:2px solid #cbd0c2;
-	color:#91918d;
-	font-weight:normal;
-	font-size:70%;
+    clear:both;
+    float:left;
+    width:980px;
+    margin:4em 0 0 0;
+    padding:1em 0 4em 0;
+    border-top:2px solid #cbd0c2;
+    color:#91918d;
+    font-weight:normal;
+    font-size:70%;
 }
 
-.intro {
-    margin:0 1.5em 1em -1.5em;
-    padding: 2px 0;
-    border-top:2px solid #cbd0c2;
-    border-bottom:2px solid #cbd0c2;
-    letter-spacing:1px;
-    font-family:Geneva, Arial, Helvetica, sans-serif;
-    font-size:9px;
-    text-decoration:none;
-    color:#91918d;
-    font-weight:normal;
-    font-size:120%;
-}
 
-.chilired {color:#d13430;}
-
-.tw_search {padding:0.5em;}
-
+/*
+ * Stuff on the projects page
+ */
 .icon_theme {margin:1em 0 0 -3em; width:10%;}
 .icon_twitter {margin:1em -1em 0 1em; width:10%;}
 .icon_sopcast {margin:1em -1em 0 1em; width:6%;}
 .proj_txt {margin-left:3em; width:65%;}
 .proj_themes {margin:0 0 1em 3em; width:65%;}
-
+.tw_search {padding:0.5em;}
 .sopcast_sport{padding-bottom: 1em; font-weight:bold; text-decoration:underline;}
 .sopcast_hdr {margin-left:2em; padding: 0.5em 0 0.5em 0; text-decoration:underline;}
 .sopcast_links {margin-left:4em;}
 
-//.chili_logo {position:fixed; top:5px; left:-55px; z-index:10;}
-.chili_logo {position:absolute; top:5px; left:-100px; z-index:10;}
 
 /*
  * The Markdown help
 textarea.new {height: 550px; width: 550px;}
 .button {margin-top: 5px;}
 
-
-
-
-
-
-#header h1 {
-	margin:70px 0 0 0;
-	padding:0;
-	font-size:10px;
-	line-height:10px;
-	background-position:0 0;
-	background-repeat:no-repeat;
-	background-image:url(../img/digital_chili.gif);
-	width:459px;
-	height:15px;
-	text-indent:-9999px;
-}
-
-#header h1 a {
-	width:459px;
-	height:15px;
-	display:block;
-}
-
-#header h2 {
-	margin:23px 0 0 0;
-	padding:0;
-	font-size:10px;
-	line-height:10px;
-	background-position:0 0;
-	background-repeat:no-repeat;
-	background-image:url(../img/copy.gif);
-	width:980px;
-	height:108px;
-	text-indent:-9999px;
-}
-
-
-.espanol #header h2 {
-	background-image:url(../img/copy_spa.gif);
-}
-
-#content {
-	float:left;
-	width:980px;
-	clear:both;
-}
-
-#thecompany {
-	width:367px;
-	margin:0;
-	padding:0;
-	float:right;
-}
-
-#thework {
-	width:584px;
-	margin:0;
-	padding:0;
-	float:left;
-}
-
-#thecompany h2,
-#thework h2 {
-	clear:both;
-	text-transform:uppercase;
-	font-weight:normal;
-	font-family:Geneva, Arial, Helvetica, sans-serif;
-	font-size:1.4em;
-	padding:1.5em 0 .3em 0;
-	margin:0;
-	color:#0c3140;
-}
-
-
-#thework h3 {
-	font-weight:normal;
-	font-family:Geneva, Arial, Helvetica, sans-serif;
-	font-size:1.2em;
-	padding:1em 0;
-	margin:0;
-}
-
-#thework h3 strong {
-	text-transform:uppercase;
-	font-weight:normal;
-}
-
-
-#thework ul {
-	margin:0 0 2em 0;
-	padding:0;
-	list-style-type:none;
-}
-
-#thework ul li {
-	line-height:1.5em;
-	width:45%;
-	padding:.1em 5% .1em 0;
-	float:left;
-}
-
-#news {
-	display:none;
-}
-
-/* ************** CARROUSEL ************* */
-
-/** 
- * Slideshow style rules.
- */
-#slideshow {
-	margin:0 auto;
-	width:584px;
-	height:480px;
-	position:relative;
-}
-#slideshow #slidesContainer {
-  margin:0 auto;
-	width:584px;
-	height:480px;
-  overflow:auto; /* allow scrollbar */
-  position:relative;
-}
-#slideshow #slidesContainer .slide {
-  margin:0 auto;
-  width:584px; /* reduce by 20 pixels of #slidesContainer to avoid horizontal scroll */
-  height:480px;
-}
-
-/** 
- * Slideshow controls style rules.
- */
-.control {
-  display:block;
-  width:25px;
-  height:385px;
-  text-indent:-9999px;
-  position:absolute;
-  cursor: pointer;
-  z-index:10;
-}
-#leftControl {
-  top:10px;
-  right:30px;
-  background-position:10px 5px;
-  background-repeat:no-repeat;
-  background-image:url(../img/ico-back.gif);
-}
-#rightControl {
-  top:10px;
-  right:0;
-  background-position:10px 5px;
-  background-repeat:no-repeat;
-  background-image:url(../img/ico-next.gif);
-}
-
-
-.mosaic {
-}
-
-
-/** 
- * Style rules for Demo page
- */
-
-
-#pageContainer {
-  margin:0;
-  width:584px;
-}
-
-
-/* **************** */

www/css/whitechili.css

+html {
+    font-size:75%;
+}
+
+body {
+    background-color:white;
+    margin:0;
+    padding:0;
+    font-family: Verdana,Arial,Helvetica,clean,sans-serif;
+    font-size:1em;
+    line-height:1.6em;
+    color:black;
+}
+
+.chili_logo {position:absolute; top:5px; left:-100px; z-index:10;}
+
+h1.header {
+// It is hard to choose a font....
+//    font-family:"Lucida Grande","Trebuchet MS",Verdana,sans-serif;
+//    font-family:"Consolas","Monaco","Courier New","Courier","monospace";
+      font-family:"Book Antiqua","Warnock Pro","Goudy Old Style","Palatino","Georgia","serif"; 
+//	font-family:Geneva, "Times New Roman", Times, serif;
+//	font-family: Verdana,Arial,Helvetica,sans-serif;
+//	font-family: Arial,Helvetica,sans-serif;
+//	font-weight:bold; 
+    letter-spacing:1px;
+}
+
+form {
+    border:0;
+    padding:0;
+    margin:0;
+}
+
+p,
+li,
+input,
+textarea,
+label,
+select {
+    font-size:1.1em;
+}
+
+.chilired {color:#d13430;}
+.big {font-size:120%;color:#d13430;}
+
+/*
+ * The page Intro text
+ */
+.intro {
+    margin:0 1.5em 1em -1.5em;
+    padding: 2px 0;
+    border-top:2px solid #cbd0c2;
+    border-bottom:2px solid #cbd0c2;
+    letter-spacing:1px;
+    font-family:Geneva, Arial, Helvetica, sans-serif;
+    font-size:9px;
+    text-decoration:none;
+    color:black;
+    font-weight:normal;
+    font-size:120%;
+}
+
+/*
+ * The page menu
+ */
+.menu_box {
+    margin:-40px 0 40px 0;
+    padding:0;
+    list-style-type:none;
+    float:right;
+}
+.menu a  {
+    margin:0 0 0 0px;
+    padding:0px 4px;
+    float:left;
+    color:black;
+    text-transform:uppercase;
+    letter-spacing:1px;
+    font-family:Geneva, Arial, Helvetica, sans-serif;
+    font-size:9px;
+    text-decoration:none;
+    display:block;
+}
+.menu a:hover {color:#d13400;}
+a.selected {color:black; background-color:#d7d8cf;}
+
+/*
+ * OpenID box
+ */
+.openid_box {margin:25px 0px -25px 0px; padding-left:5px;}
+input.openid_login {
+   background: url(http://openid.net/login-bg.gif) no-repeat;
+   background-color: #fff;
+   background-position: 0 50%;
+   color: #000;
+   width:145px;
+   margin-right: 5px;
+   float: right;
+   padding-left: 18px;
+}
+
+
+/* 
+ * List entries
+ */
+.l_date {display:inline-block; color:#d13400; width: 7em; font-weight:normal;}
+.l_date_unpub {display:inline-block; color:blue; width: 7em; font-weight:normal;}
+a:hover.l_date_unpub{text-decoration:underline;}
+.l_author {display:inline-block;margin-left:1em; width: 4em; font-weight:normal;}
+.l_title {margin-left:2em; font-weight:bold; letter-spacing:1px;}
+a.l_title {text-decoration:none;}
+a:hover.l_title {text-decoration:underline;}
+.l_body {margin-left:3em; margin-top:1em;}
+
+/*
+ * Article entry
+ */
+.e_date {font-size:1em; color:#d13400; font-weight:bold;}
+.e_title {font-size:1em; margin-left:2em; font-weight:bold; letter-spacing:1px; color:black;}
+.e_author {float:left; font-size:0.9em; margin:4em 0 -4em -7em; padding-left:0; font-weight:normal;}
+
+/*
+ * Comments
+ */
+.e_comhdr{margin-left:1.5em; margin-bottom:1em;}
+.comhdr{margin-left:0.5em}
+.e_comform{display:none;margin:2em;}
+textarea.comment {height: 100px; width: 450px;}
+.c_date {font-size:0.9em; color:#d13430; font-weight:bold;}
+.c_who {font-size:0.9em; margin-left:2em; font-weight:bold; color:black;}
+.c_txt {
+    font-size:0.9em; 
+    margin-left:1em; 
+    margin:0.2em 0;
+    padding-left:0.6em; 
+    border-left:2px solid #cbd0c2;
+}
+.c_body {margin-left:2em; margin-top:0.6em;}
+.c_is_author {background-color:#e5ff87;}
+.c_is_author_txt {
+    background-color:#f6feda;
+    font-size:0.9em; 
+    margin-left:1em; 
+    margin:0.2em 0;
+    padding-left:0.6em; 
+}
+.c_is_author:after {margin:0 0.5em 0 1em; content:"Author comment"; font-size:0.80em; text-transform:uppercase;}
+
+code {font-size: 110%;line-height:90%;}
+
+.by_who {color:black;}
+
+.footer {
+    clear:both;
+    float:left;
+    width:980px;
+    margin:4em 0 0 0;
+    padding:1em 0 4em 0;
+    border-top:2px solid #cbd0c2;
+    color:#91918d;
+    font-weight:normal;
+    font-size:70%;
+}
+
+
+/*
+ * Stuff on the projects page
+ */
+.icon_theme {margin:1em 0 0 -3em; width:10%;}
+.icon_twitter {margin:1em -1em 0 1em; width:10%;}
+.icon_sopcast {margin:1em -1em 0 1em; width:6%;}
+.proj_txt {margin-left:3em; width:65%;}
+.proj_themes {margin:0 0 1em 3em; width:65%;}
+.tw_search {padding:0.5em;}
+.sopcast_sport{padding-bottom: 1em; font-weight:bold; text-decoration:underline;}
+.sopcast_hdr {margin-left:2em; padding: 0.5em 0 0.5em 0; text-decoration:underline;}
+.sopcast_links {margin-left:4em;}
+
+
+/*
+ * The Markdown help
+ */
+.mdown_help {font-size:1.0em; display:none;}
+.mdown_help_link {font-size:0.9em; margin-top:-4px; margin-left:50%;}
+
+/*
+ * The New area.
+ */
+input.new {width: 550px;}
+textarea.new {height: 550px; width: 550px;}
+.button {margin-top: 5px;}
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.