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