body.html 10.1 KB
Newer Older
Zach's avatar
Zach committed
1
<body>
Zach's avatar
tab bar    
Zach committed
2
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
Zach's avatar
Zach committed
3
4
5
6
7
8
9
10
11
12
13
        <header class="mdl-layout__header">
            <div class="mdl-layout__header-row">
                <!-- Title -->
                <span class="mdl-layout-title">Weather</span>
            </div>
            <!-- Tabs -->
            <div class="mdl-layout__tab-bar mdl-js-ripple-effect">
                <a href="#fairfax" class="mdl-layout__tab is-active">Fairfax</a>
                <a href="#arlington" class="mdl-layout__tab">Arlington</a>
                <a href="#scitech" class="mdl-layout__tab">SciTech</a>
                <a href="#korea" class="mdl-layout__tab">Mason Korea</a>
14
                <a href="#saudi" class="mdl-layout__tab">Ras-Al-Khaimah</a>
Zach's avatar
Zach committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
            </div>
        </header>
        <main class="mdl-layout__content">
            <div class="bg">
                <section class="mdl-layout__tab-panel is-active" id="fairfax">
                    <div class="page-content">{{> weather}}</div>
                </section>
                <section class="mdl-layout__tab-panel" id="arlington">
                    <div class="page-content">{{> weather}}</div>
                </section>
                <section class="mdl-layout__tab-panel" id="scitech">
                    <div class="page-content">{{> weather}}</div>
                </section>
                <section class="mdl-layout__tab-panel" id="korea">
                    <div class="page-content">{{> weather}}</div>
                </section>
                <section class="mdl-layout__tab-panel" id="saudi">
                    <div class="page-content">{{> weather}}</div>
                </section>
            </div>
            {{> footer}}
        </main>
37
    </div>
Zach's avatar
Zach committed
38
</body>
39

Zach's avatar
Zach committed
40
<template name="weather">
Zach's avatar
Zach committed
41
42
43
44
    <div class="mdl-grid">
        <div class="mdl-cell mdl-cell--6-col">
            <div class="weather-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
Zach's avatar
tab bar    
Zach committed
45
                    <h1 class="mdl-card__title-text">Current Conditions<br /></h1>
Zach's avatar
Zach committed
46
47
48
49
50
51
                </div>
                <div class="mdl-card__supporting-text">
                    <h4>Partly Cloudy</h4>
                    <div class="temp-size">
                        <i class="wi wi-day-cloudy wi-fw"></i> 76<i class="wi wi-fahrenheit"></i>
                    </div>
Zach's avatar
Zach committed
52
53
54
55
56
                    <div class="detail-size">
                        Feels like 72<i class="wi wi-fahrenheit"></i>
                        <br /><br /><i class="wi wi-cloud"></i> No Rain today.  <i class="wi wi-wind wi-towards-nne"></i> 5mph NNE
                        <br /><br /><i class="wi wi-sunset"></i> 7:22 PM EDT
                    </div>
Zach's avatar
Zach committed
57
58
59
                </div>
            </div>
        </div>
Zach's avatar
Zach committed
60
        <div class="hourly-table mdl-cell mdl-cell--6-col mdl-shadow--4dp table-full-width">
Zach's avatar
Zach committed
61
62
63
            <table class="mdl-data-table mdl-js-data-table">
                <thead>
                    <tr>
Zach's avatar
Zach committed
64
                        <th class="mdl-data-table__cell--non-numeric table-full-width">Hourly Forcast</th>
Zach's avatar
Zach committed
65
66
67
68
                        <th class="mdl-data-table__cell--non-numeric">Condition</th>
                        <th class="mdl-data-table__cell--non-numeric"><i class="wi wi-fahrenheit"></i></th>
                        <th class="mdl-data-table__cell--non-numeric">Precipitation</th>
                        <th class="mdl-data-table__cell--non-numeric">Wind</th>
Zach's avatar
Zach committed
69
70
71
72
73
74
75
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">4 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-day-cloudy wi-fw"></i> Partly Cloudy</td>
                        <td>74<i class="wi wi-fahrenheit"></i></td>
Zach's avatar
Zach committed
76
77
                        <td>0%</td>
                        <td>3mph</td>
Zach's avatar
Zach committed
78
79
80
81
82
                    </tr>
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">5 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-day-sunny wi-fw"></i>Sunny</td>
                        <td>72<i class="wi wi-fahrenheit"></i></td>
Zach's avatar
Zach committed
83
84
                        <td>0%</td>
                        <td>4mph</td>
Zach's avatar
Zach committed
85
86
87
88
89
                    </tr>
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">6 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-night-clear wi-fw"></i>Clear</td>
                        <td>70<i class="wi wi-fahrenheit"></i></td>
Zach's avatar
Zach committed
90
91
                        <td>0%</td>
                        <td>6mph</td>
Zach's avatar
Zach committed
92
93
94
95
96
                    </tr>
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">7 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-night-cloudy wi-fw"></i>Partly Cloudy</td>
                        <td>69<i class="wi wi-fahrenheit"></i></td>
Zach's avatar
Zach committed
97
98
                        <td>0%</td>
                        <td>11mph</td>
Zach's avatar
Zach committed
99
                    </tr>
100
101
102
103
104
105
106
107
108
109
110
111
112
113
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">8 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-night-cloudy wi-fw"></i>Partly Cloudy</td>
                        <td>69<i class="wi wi-fahrenheit"></i></td>
                        <td>0%</td>
                        <td>10mph</td>
                    </tr>
                    <tr>
                        <td class="mdl-data-table__cell--non-numeric">9 PM</td>
                        <td class="mdl-data-table__cell--non-numeric"><i class="wi wi-night-cloudy wi-fw"></i>Partly Cloudy</td>
                        <td>68<i class="wi wi-fahrenheit"></i></td>
                        <td>0%</td>
                        <td>7mph</td>
                    </tr>
Zach's avatar
Zach committed
114
115
116
117
118
119
120
121
122
123
124
                </tbody>
            </table>
        </div>
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Tomorrow<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
125
                        <i class="wi wi-day-cloudy wi-fw"></i> 81<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
Zach's avatar
Zach committed
126
127
                    </div>
                </div>
Zach's avatar
Zach committed
128
            </div>
Zach's avatar
Zach committed
129
130
131
132
133
134
135
136
137
        </div>
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Saturday<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
138
                        <i class="wi wi-day-cloudy wi-fw"></i> 83<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
Zach's avatar
Zach committed
139
140
                    </div>
                </div>
Zach's avatar
Zach committed
141
            </div>
Zach's avatar
Zach committed
142
143
144
145
146
147
148
149
150
        </div>
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Sunday<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
151
                        <i class="wi wi-day-cloudy wi-fw"></i> 78<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
Zach's avatar
Zach committed
152
153
154
155
                    </div>
                </div>
            </div>
        </div>
156
157
158
159
160
161
162
163
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Monday<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
164
                        <i class="wi wi-day-cloudy wi-fw"></i> 75<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
165
166
167
168
169
170
171
172
173
174
175
176
                    </div>
                </div>
            </div>
        </div>
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Tuesday<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
177
                        <i class="wi wi-day-cloudy wi-fw"></i> 72<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
178
179
180
181
182
183
184
185
186
187
188
189
                    </div>
                </div>
            </div>
        </div>
        <div class="mdl-cell mdl-cell--4-col">
            <div class="out-of-focus-card mdl-card mdl-shadow--4dp">
                <div class="mdl-card__title">
                    <h1 class="mdl-card__title-text">Wednesday<br /></h1>
                </div>
                <div class="mdl-card__supporting-text">
                    <h5>Partly Cloudy</h5>
                    <div class="oof-size">
190
                        <i class="wi wi-day-cloudy wi-fw"></i> 67<i class="wi wi-fahrenheit"></i> / 48<i class="wi wi-fahrenheit"></i>
191
192
193
194
                    </div>
                </div>
            </div>
        </div>
195
196
197
    </div>
</template>

Zach's avatar
Zach committed
198
199
200
201
202
<template name="footer">
    <footer class="mdl-mini-footer">
        <div class="mdl-mini-footer__left-section">
            <div class="mdl-logo">SRCT Weather</div>
        </div>
203
204
205
206
207
        <div class="mdl-mini-footer__right-section" style="align: right">
            A project of Mason <a href="http://srct.gmu.edu/"><strong>SRCT</strong></a>, a registered student org.
            <br />Read and <a href="https://git.gmu.edu//srct/weather/milestones/">contribute</a>
            to our <a href="https://www.gnu.org/licenses/quick-guide-gplv3.html">freely-licensed</a>
            <a href="http://git.gmu.edu/srct/weather/" target="_blank">source code</a>.
Zach's avatar
Zach committed
208
209
210
        </div>
    </footer>
</template>