]> Pileus Git - ~andy/aweather-web/blob - html.ct
Fixes for IE7
[~andy/aweather-web] / html.ct
1 <% #include "html.h" %>
2
3 <% /* Global functions */ %>
4 <% void print_header(void) { %>
5 Content-Type: text/html; charset=UTF-8
6
7 <% } %>
8
9 <% void print_nav(const page_t *page, const page_t *cur) { %>
10         <% const char *class = page == cur ? " class=\"cur\"" : ""; %>
11         <a href="<%= page->link %>"<%= class %>><%= page->name %></a>
12 <% } %>
13
14 <% void print_screen(char *name) { %>
15         <a href="screens/<%= name %>.png">
16                 <img src="screens/<%= name %>_s.png" alt="<%= name %>" class="screen" />
17         </a>
18 <% } %>
19
20 <% void print_page(const page_t *page) { %>
21 <?xml version="1.0" encoding="UTF-8"?> 
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
24         <head> 
25                 <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title> 
26                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
27                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> 
28                 <link rel="shortcut icon" href="images/aweather.ico" />
29                 <link href="data/global.css" rel="stylesheet" type="text/css" />
30         </head> 
31         <body> 
32                 <div class="top">
33                         <!-- <a href=""><img class="logo" src="../data/aweather.svg" /></a> -->
34                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
35                         <h1 class="title"><a href=".">AWeather</a></h1>
36                         <h2 class="nav">
37                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
38                                 <span class="sep"></span>
39                                 <% print_nav(&grits[0], page); %>
40                         </h2>
41                 </div>
42                 <div class="content">
43                         <% page->print(); %>
44                         <div style="clear:both;"></div>
45                 </div>
46                 <p class="footer">
47                         Copyright © 2011 Andy Spencer
48                         <% for (int i = 0; footer[i].link; i++) { %>
49                                 | <% print_nav(&footer[i], page); %>
50                         <% } %>
51                 </p>
52         </body> 
53 </html> 
54 <% } %>
55
56 <% /* Normal Pages */ %>
57 <% void print_about(void) { %>
58         <p class="intro">
59         To the best of my knowledge, all the weather related programs currently
60         available for Linux are either very simple and provide little
61         meteorological information or are huge, ancient, or proprietary beasts
62         created for the National Weather Service. AWeather is made to fill the
63         gap by providing lots of weather information while still using standard
64         free software practices. As such, the research focus of this software
65         is weather, not creative way to write software.
66         </p>
67         <hr />
68         <h2>Intended Features</h2>
69         <ul>
70                 <li>High quality data sources
71                     (Level-II archive, etc)</li>
72                 <li>3D Volume browser (todo)</li>
73                 <li>GTK+ User Interface</li>
74                 <li>API for algorithms
75                     (vortex/hail signatures, rain-rate, etc)
76                     (todo)</li>
77                 <li>Other?</li>
78         </ul>
79
80         <h2>Status</h2>
81         <blockquote>Now that it's spring again, progress on AWeather is continuing.</blockquote>
82         <h3>Working</h3>
83         <ul>
84                 <li>Level-II and Conus NEXRAD imagery</li>
85                 <li>Real-time and offline mode</li>
86                 <li>Virtual Globe base rendering</li>
87                 <ul><li>Including terrain, satellite, and map imagery</li></ul>
88                 <li>Auto-updating</li>
89                 <li>volume display</li>
90         </ul>
91         <h3>Todo</h3>
92         <ul>
93                 <li>Vertical cross sections</li>
94                 <li>Derived NEXRAD data (storm relative motion, echo tops, compost reflective, etc)</li>
95                 <li>Additional data sources (watch/warning boxes, surface data, etc)</li>
96                 <li>Animation</li>
97         </ul>
98 <% } %>
99
100 <% void print_news(void) { %>
101         <dl class="news">
102                 <dt>2011-06-13</dt>
103                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
104                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
105                         <li>Added an option to automatically refresh after a timeout</li>
106                         <li>New fullscreen mode</li>
107                 </ul></dd>
108
109                 <dt>2010-05-17</dt>
110                 <dd>AWeather 0.4.1:<ul>
111                         <li>Win32 fixes and improved debug support</li>
112                         <li>Fix bug with daylight savings time</li>
113                         <li>Function to clear old cache entries</li>
114                 </ul></dd>
115
116                 <dt>2010-05-14</dt>
117                 <dd>AWeather 0.4:<ul>
118                         <li>Conus radar images</li>
119                         <li>Multiple radars support</li>
120                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
121                 </ul></dd>
122
123                 <dt>2009-11-09</dt>
124                 <dd>AWeather 0.3.0 released, based on libgis but still rather
125                     buggy.</dd>
126
127                 <dt>2009-10-24</dt>
128                 <dd>AWeather 0.2.3 (maintenance release).<br/>
129                     Added a Application menu entry and a few build/runtime fixes.</dd>
130
131                 <dt>2009-09-02</dt>
132                 <dd>The source repository has been migrated to Git. A lot of
133                     progress is being made on libgis, which is now able to display
134                     a virtual globe using data from NASA servers.</dd>
135         </dl>
136         <p class="note">See also: AWeather's <a href="/git/?p=proj/aweather">gitweb</a></p>
137 <% } %>
138
139 <% void print_screenshots(void) { %>
140         <br />
141         <p>
142                 AWeather provides consistent user interface that allows the
143                 user to zoom in from a high level view of the entire Earth down
144                 to regional and microscale views.
145         </p>
146         <ul class="gallery">
147                 <li>
148                         <% print_screen("synop"); %>
149                         High level view using grits
150                 </li>
151                 <li>
152                         <% print_screen("region"); %>
153                         Regional view of a storm front
154                 </li>
155                 <li>
156                         <% print_screen("meso"); %>
157                         Mesoscale view of a tornadic system
158                 </li>
159                 <li>
160                         <% print_screen("iso"); %>
161                         Close up showing a 52.5 dBZ isosurface
162                 </li>
163         </ul>
164 <% } %>
165
166 <% void print_download(void) { %>
167         <h2>Stable release</h2>
168         <p class="note">
169                 While AWeather won't be considered stable until version 1.0,<br />
170                 these are as close to stable as you can get until then
171         </p>
172         <ul>
173                 <li class="linux"><dl class="inline">
174                         <dt>Source code</dt>
175                         <dd><a href="../aweather-0.4.2.tar.gz">aweather-0.4.2.tar.gz</a></dd>
176
177                         <dt>Gentoo</dt>
178                         <dd>Emerge <span class="code">sci-geosciences/aweather</span> from the sunrise overlay</dd>
179
180                         <dt>Debian</dt>
181                         <dd>Packaging in progress, check back soon</dd>
182                 </dl></li>
183                 <li class="windows"><dl class="inline">
184                         <dt>Windows</dt>
185                         <dd><a href="../aweather-0.4.2-gtk.exe">aweather-0.4.2-gtk.exe</a></dd>
186
187                         <dt>Update only</dt>
188                         <dd><a href="../aweather-0.4.2.exe">aweather-0.4.2.exe</a></dd>
189                 </dl></li>
190                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em">
191                         Coming soon (hopefully)
192                 </li>
193         </ul>
194
195         <h2>Unstable releases</h2>
196         <p class="note">Pre-releases, betas, and other hazardous software</p>
197         <div style="margin-left: 30px;">
198                 <p>Check out the <a href="../">releases</a> directory for any potential updates</p>
199                 <p>Pre-releases are labeled with a -p0 and are mainly build for testing the Windows packages</p>
200         </div>
201
202         <h2>Development code</h2>
203         <p class="note">
204                 Development code is available from Git, and from gitweb
205                 (<a href="/git/?=proj/aweather">AWeather</a>,
206                  <a href="/git/?=proj/grits">Grits</a>, 
207                  <a href="/git/?=~spenceal/rsl">RSL</a>)
208         </p>
209         <div style="margin-left: 30px;">
210                 <div class="code">git clone git://lug.rose-hulman.edu/proj/aweather</div>
211                 <div class="code">git clone git://lug.rose-hulman.edu/proj/grits</div>
212                 <div class="code">git clone git://lug.rose-hulman.edu/~spenceal/rsl</div>
213         </div>
214 <% } %>
215
216 <% void print_development(void) { %>
217         <!-- Open source mumbo jumbo.. -->
218
219         <p class="note" style="clear: both;">
220                 The AWeather <a href="/code/projects/aweather/wiki">development wiki</a>
221                 is the main resource for development material.
222         </p>
223
224         <h2>Bug report and feature requests</h2>
225         <div style="margin-left: 30px;">
226                 <p><a href="/code/projects/aweather/issues/new">New issue</a></p>
227                 <p><a href="/code/projects/aweather/issues">Open issues</a></p>
228         </div>
229
230         <h2>How to contribute?</h2>
231         <ul>
232                 <li>Locate or host Meteorological and Geospatial data feeds</li>
233                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
234                 <li>Test AWeather and submit bug reports</li>
235                 <li>Make better logo!</li>
236         </ul>
237
238         <h2>Building AWeather</h2>
239         <p class="note">See the <a href="code/projects/aweather/wiki/Install">install</a> wiki page for more details</p>
240         <ul>
241                 <li>AWeather has direct dependencies on Grits, and RSL, among other things.</li>
242                 <li>Currently building AWeather will require the exact same version of
243                     Grits to be installed, but this may change in the near future as
244                     the software stabilizes.</li>
245         </ul>
246         
247         <h2>Architecture Overview</h2>
248         <ul>
249                 <li>Built on top of GObject and GTK+</li>
250                 <li>Uses the Grits "Virtual Globe" library for much of the graphics work.<br />
251                     Grits also provides some other generic functionality and a plugin API.</li>
252                 <li>AWeather itself is a front-end for grits along with a
253                     bundle of weather related plugins.</li>
254         </ul>
255 <% } %>
256
257 <% void print_grits(void) { %>
258         <h1>Grits</h1>
259         <p>Grits is a Virtual Globe library developed along side AWeather, but
260            can be used by other programs as well.</p>
261         <p>It is differentiated from other Virtual Globes such as Google Earth,
262            NASA World Wind, and KDE Marble in that it is developed as a library
263            that is used by other programs, such as AWeather, rather than
264            providing a user interface that is used directly.</p>
265         <ul class="gallery">
266                 <li>
267                         <% print_screen("grits"); %>
268                         Grits without any plugins
269
270                 </li>
271                 <li>
272                         <% print_screen("plugins"); %>
273                         Satellite and Environment plugins
274                 </li>
275                 <li>
276                         <% print_screen("terrain"); %>
277                         Elevation plugin showing a mountain
278                 </li>
279         </ul>
280 <% } %>
281
282 <% /* Footer Pages */ %>
283 <% void print_contact(void) { %>
284         <h1>Contact</h1>
285         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
286         <dl class="inline small">
287                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
288                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
289         </dl>
290 <% } %>
291
292 <% void print_legal(void) { %>
293         <h1>Legal</h1>
294 <% } %>
295
296 <% /* Special Pages */ %>
297 <% void print_index(void) { %>
298         <p class="intro">
299                 AWeather is designed to be an advanced weather program which is
300                 designed to be used by weather enthusiasts. AWeather is not
301                 another weather dockapp that simply displays a pre-computed
302                 forecast. It is designed to be an easy to use program that
303                 integrates a variety of weather data in simple unified
304                 interface; see features for more details.
305         </p>
306         <hr />
307         <% print_screen("meso"); %>
308         <div class="buttons">
309                 <a class="download" href="">
310                         <p>Download</p>
311                         <p>AWeather 0.5-p0 source</p>
312                         <img src="images/dl-arrow.png" />
313                 </a>
314                 <a class="download" href="">
315                         <p>Download</p>
316                         <p>AWeather 0.5-p0 source</p>
317                         <img src="images/dl-arrow.png" />
318                 </a>
319         </div>
320         <b>Features:</b>
321         <ul>
322                 <li>Detailed Level-II radar</li>
323                 <li>3D volume rendering</li>
324                 <li>Dual-pole support</li>
325                 <li>Surface and map overlays</li>
326                 <li>Terrain rendering</li>
327                 <li>Online and offline modes with
328                     caching and automatic updating</li>
329         </ul>
330 <% } %>
331
332 <% void print_notfound(void) { %>
333         <h1>404 - Not found</h1>
334 <% } %>