blob: 904e45b574178ba89317ee9c9f26daabdfb61af6 (
plain) (
tree)
|
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>peach - {{.Location}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="siddharth">
<link rel="preload" href="/static/peach.css" as="style" />
<style>@import url("/static/peach.css");</style>
</head>
<body>
<div class="root-container">
<div class="header-container">
<header class="header">
<hgroup>
<h1>{{.Location}}</h1>
</hgroup>
</header>
</div>
<div class="main-container">
<div class="period-container">
<div class="now-container">
<div class="temperature-forecast-container">
<div class="temperature">
{{.Now.Temperature}}{{.Now.TemperatureUnit}}
</div>
<div class="forecast">
{{.Now.Forecast}}
</div>
</div> <!-- temperature-forecast-container -->
<div class="wind">
{{.Now.WindSpeed}} {{.Now.WindDirection}}
</div>
</div> <!-- now-container end -->
<div class="current-period">
<p class="forecast">{{.Period.Forecast}}</p>
</div>
</div> <!-- period-container end -->
</div> <!-- main-container end -->
{{ if .Timeline }}
<div class="timeline">
<div class="container">
{{ range .Timeline.Periods }}
<div class="period">
<p class="temperature">{{.Temperature}}{{.TemperatureUnit}}</p>
<p class="hour">{{printf "%d" .Hour}}hrs</p>
</div>
{{ end }}
</div>
</div>
{{ end }}
</div> <!-- root-container end -->
</body>
</html>
|