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