162 lines
4.1 KiB
HTML
162 lines
4.1 KiB
HTML
{{ template "base.html" . }}
|
|
|
|
{{ define "extrahead" }}
|
|
<script src="{{ static "js/templates.js" }}"></script>
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<div class="content-block pb3 ph3 ph0-ns">
|
|
<style>
|
|
#hms-banner {
|
|
height: 10rem;
|
|
background-color: #0b0243;
|
|
color: white !important;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#hms-banner::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('{{ static "hms/banner.jpg" }}');
|
|
background-size: auto 100%;
|
|
z-index: 0;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
#hms-banner h3 {
|
|
font-family: 'MohaveHMN', sans-serif;
|
|
font-weight: normal;
|
|
font-size: 2.6rem;
|
|
line-height: 0.8;
|
|
margin: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#hms-details {
|
|
font-family: 'MohaveHMN', sans-serif;
|
|
font-variant: small-caps;
|
|
font-size: 1.3rem;
|
|
line-height: 0.8;
|
|
margin-top: 0.6rem;
|
|
letter-spacing: 0.02rem;
|
|
}
|
|
|
|
#hms-learn-more {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
@media screen and (min-width: 30rem) {
|
|
#hms-banner {
|
|
height: 12rem;
|
|
text-align: left;
|
|
color: #0b0243 !important;
|
|
}
|
|
|
|
#hms-banner::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
#hms-title-container {
|
|
padding-left: 13.4rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 60em) {
|
|
#hms-banner {
|
|
height: 15rem;
|
|
text-align: left;
|
|
color: #0b0243 !important;
|
|
}
|
|
|
|
#hms-title-container {
|
|
padding-left: 16rem;
|
|
}
|
|
|
|
#hms-banner h3 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
#hms-details {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
<a id="hms-banner" class="pv3 ph3 ph4-l br3 flex flex-column flex-row-ns items-center" href="https://handmade-seattle.com/">
|
|
<div id="hms-title-container" class="flex flex-column pl3-m pl4-l pv3 pv0-ns z-1">
|
|
<h3 id="hms-title">Handmade Seattle</h3>
|
|
<div id="hms-details">November 11 - 12. In person and online.</div>
|
|
</div>
|
|
<div class="flex-grow-1"></div>
|
|
<div id="hms-learn-more" class="z-1">
|
|
Sign up
|
|
<div class="dib svgicon">{{ svg "chevron-right" }}</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="landing-layout ph3 ph0-ns">
|
|
{{/*
|
|
The order of the grid children should be as desired on mobile, then adapted to larger
|
|
sizes using CSS grid properties.
|
|
*/}}
|
|
|
|
<div>
|
|
<h2>Latest News</h2>
|
|
{{ template "timeline_item.html" .NewsPost }}
|
|
</div>
|
|
<div class="landing-right">
|
|
<h2>Around the Network</h2>
|
|
<div class="optionbar mb2">
|
|
<div class="options">
|
|
<a class="button" href="{{ .AtomFeedUrl }}"><span class="icon big pr1">4</span> RSS Feed</a>
|
|
{{ if .User }}
|
|
<form method="POST" action="{{ .MarkAllReadUrl }}">
|
|
{{ csrftoken .Session }}
|
|
<button type="submit"><span class="big pr1">✓</span> Mark all posts on site as read</button>
|
|
</form>
|
|
{{ end }}
|
|
</div>
|
|
<div class="options">
|
|
{{ template "pagination.html" .Pagination }}
|
|
</div>
|
|
</div>
|
|
{{ range .TimelineItems }}
|
|
{{ template "timeline_item.html" . }}
|
|
{{ end }}
|
|
<div class="optionbar bottom mt2">
|
|
<div class="options"></div>
|
|
<div class="options">
|
|
{{ template "pagination.html" .Pagination }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ if .ShowcaseTimelineJson }}
|
|
<div>
|
|
{{ template "showcase_templates.html" }}
|
|
<div>
|
|
<h2>Community Showcase</h2>
|
|
<div class="bg--card pa3 br3">
|
|
<div class="mb3">
|
|
This is a selection of recent work done by community members. Want to participate? <a href="{{ .DiscordUrl }}" target="_blank">Join us on Discord.</a>
|
|
</div>
|
|
<div id="showcase-container"></div>
|
|
<div>
|
|
<a class="db w-100 tc pa2" href="{{ .ShowcaseUrl }}">View all »</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const showcaseItems = JSON.parse("{{ .ShowcaseTimelineJson }}");
|
|
initShowcaseContainer(document.querySelector('#showcase-container'), showcaseItems, 200);
|
|
</script>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|