2022-07-28 01:56:00 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
|
|
<title>City University Portfolio</title>
|
|
|
|
<link rel="stylesheet" href="{{ .Data.CSSBaseURL }}"/>
|
|
|
|
{{ if .Light }}
|
2022-07-29 15:58:51 +01:00
|
|
|
<link id="style-theme" rel="stylesheet" href="{{ .Data.CSSLightURL }}"/>
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ else }}
|
2022-07-29 15:58:51 +01:00
|
|
|
<link id="style-theme" rel="stylesheet" href="{{ .Data.CSSDarkURL }}"/>
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ end }}
|
|
|
|
<script src="{{ .Data.JScriptURL }}"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header class="header">
|
|
|
|
{{ if .Light }}
|
|
|
|
<a href="?light" class="home-button no-dec" title="Home" id="logo"><div><img src="{{ .Data.LogoImageLocation }}" width="64px" alt="⌂"></div></a>
|
|
|
|
<a href="?{{ .Parameters }}" class="home-button no-dec" title="Switch to Dark Mode" id="theme"><div><img src="{{ .Data.MoonImageLocation }}" width="64px" alt='{{ "{" }}'></div></a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="?" class="home-button no-dec" title="Home" id="logo"><div><img src="{{ .Data.LogoImageLocation }}" width="64px" alt="⌂"></div></a>
|
|
|
|
{{ if eq .Parameters "" }}
|
|
|
|
<a href="?light" class="home-button no-dec" title="Switch to Light Mode" id="theme"><div><img src="{{ .Data.SunImageLocation }}" width="64px" alt='()'></div></a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="?light&{{ .Parameters }}" class="home-button no-dec" title="Switch to Light Mode" id="theme"><div><img src="{{ .Data.SunImageLocation }}" width="64px" alt='()'></div></a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<input class="sort-menu" type="checkbox" id="sort-menu"/>
|
|
|
|
<label class="sort-button no-dec" for="sort-menu" title="Order and Sort Options"><div><img src="{{ .Data.SortImageLocation }}" width="64px" alt='↓'></div></label>
|
2022-07-29 21:19:21 +01:00
|
|
|
<div class="so-pane" id="so-pane">
|
2022-07-29 21:09:48 +01:00
|
|
|
<form action="?" method="get" id="so-form">
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ if .Light }}
|
|
|
|
<input id="so-theme" type="hidden" name="light" />
|
|
|
|
{{ end }}
|
2022-07-29 20:15:31 +01:00
|
|
|
<div>
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ $sort := 0 }}
|
2022-07-29 20:15:31 +01:00
|
|
|
<div><label class="no-dec" for="so-order">Order by:</label></div>
|
|
|
|
<div><select name="order" id="so-order">
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ if eq .OrderStartDate 0 }}
|
|
|
|
<option value="start">Start Date</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="start" selected>Start Date</option>
|
|
|
|
{{ $sort = .OrderStartDate }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq .OrderEndDate 0 }}
|
|
|
|
<option value="end">End Date</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="end" selected>End Date</option>
|
|
|
|
{{ $sort = .OrderEndDate }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq .OrderName 0 }}
|
|
|
|
<option value="name">Name</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="name" selected>Name</option>
|
|
|
|
{{ $sort = .OrderName }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq .OrderDuration 0 }}
|
|
|
|
<option value="duration">Duration</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="duration" selected>Duration</option>
|
|
|
|
{{ $sort = .OrderDuration }}
|
|
|
|
{{ end }}
|
2022-07-29 20:15:31 +01:00
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div><label class="no-dec" for="so-sort">Sort:</label></div>
|
|
|
|
<div><select name="sort" id="so-sort">
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ if gt $sort 0 }}
|
|
|
|
<option value="asc" selected>Ascending</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="asc">Ascending</option>
|
|
|
|
{{ end }}
|
|
|
|
{{ if lt $sort 0 }}
|
|
|
|
<option value="desc" selected>Descending</option>
|
|
|
|
{{ else }}
|
|
|
|
<option value="desc">Descending</option>
|
|
|
|
{{ end }}
|
2022-07-29 20:15:31 +01:00
|
|
|
</select></div>
|
|
|
|
</div>
|
2022-07-29 20:45:09 +01:00
|
|
|
<div class="so-pane-full">
|
|
|
|
<span><input id="so-submit" type="submit" value="Commit"></span>
|
2022-07-29 20:15:31 +01:00
|
|
|
</div>
|
2022-07-28 01:56:00 +01:00
|
|
|
</form>
|
2022-07-29 21:09:48 +01:00
|
|
|
</div>
|
2022-07-28 01:56:00 +01:00
|
|
|
<input class="nav-menu" type="checkbox" id="nav-menu"/>
|
|
|
|
<label class="hmb" for="nav-menu" title="Navigation Links"><span class="hmb-line"></span></label>
|
|
|
|
<nav class="nav" id="nav">
|
|
|
|
<ul class="menu no-lst-style">
|
|
|
|
{{ range .Data.GetHeaderLabels }}
|
|
|
|
<li><b><a href="{{ $.Data.GetHeaderLink . }}" class="no-dec" title="{{ . }}">{{ . }}</a></b></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2022-07-29 15:58:51 +01:00
|
|
|
<main class="main-box flex-col">
|
2022-07-28 01:56:00 +01:00
|
|
|
<div>
|
2022-07-29 15:58:51 +01:00
|
|
|
<div class="item-table flex-col">
|
2022-07-29 22:00:59 +01:00
|
|
|
<div class="item-heading">
|
2022-07-28 01:56:00 +01:00
|
|
|
<div class="item-table-full">
|
|
|
|
<div class="centered"><h1>{{ .Data.About.Title }}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div class="item-table-360">
|
|
|
|
<div class="centered"><h4>Email: <a href="mailto:{{ .Data.About.ContactEmail }}">{{ .Data.About.ContactEmail }}</a></h4></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-29 16:16:22 +01:00
|
|
|
<div>
|
2022-07-28 01:56:00 +01:00
|
|
|
<div class="item-table-full">
|
|
|
|
<div class="content">{{ .Data.About.GetContent }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="item-table-360">
|
|
|
|
<div><a href="{{ .Data.About.ImageLocation }}"><img src="{{ .Data.About.ThumbnailLocation }}" alt="{{ .Data.About.ImageAltText }}" title="{{ .Data.About.ImageAltText }}" width="360px"></a></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ range .GetEntries }}
|
|
|
|
<div>
|
2022-07-29 16:09:24 +01:00
|
|
|
<div class="item-table flex-col">
|
2022-07-29 22:00:59 +01:00
|
|
|
<div class="item-heading">
|
2022-07-28 01:56:00 +01:00
|
|
|
<div class="item-table-full">
|
|
|
|
<div class="centered"><h1>{{ .Name }}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div class="item-table-360">
|
|
|
|
{{ if eq .GetStartDate .GetEndDate }}
|
|
|
|
<div class="centered"><h4>{{ .GetStartDate }}</h4></div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="centered"><h4>{{ .GetStartDate }} - {{ .GetEndDate }}</h4></div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-29 16:16:22 +01:00
|
|
|
<div>
|
2022-07-28 01:56:00 +01:00
|
|
|
<div class="item-table-full">
|
|
|
|
<div class="content">{{ .GetContent }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="item-table-360">
|
|
|
|
<div>
|
|
|
|
{{ if eq .VideoLocation "" }}
|
|
|
|
<img src="{{ $.Data.NoVideoImageLocation }}" alt="No Video" width="360px">
|
|
|
|
{{ else }}
|
|
|
|
<video controls width="360px">
|
|
|
|
<source src="{{ .VideoLocation }}" type="{{ .VideoContentType }}">
|
|
|
|
<a href="{{ .VideoLocation }}">The Video</a>
|
|
|
|
</video>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ if not (eq .GetImageCount 0) }}
|
2022-07-29 16:16:22 +01:00
|
|
|
<div class="item-table-caption">
|
2022-07-29 15:58:51 +01:00
|
|
|
<div class="image-box flex-row">
|
2022-07-28 01:56:00 +01:00
|
|
|
{{ range .GetImages }}
|
|
|
|
<a href="{{ .ImageLocation }}"><img src="{{ .ThumbnailLocation }}" alt="{{ .ImageAltText }}" title="{{ .ImageAltText }}" width="240px"></a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-07-29 21:55:32 +01:00
|
|
|
<!-- This needs to be moved into a script tag along with other stuff not here yet for JS support
|
2022-07-28 01:56:00 +01:00
|
|
|
<div class="data-hold">{{ .GetInt64Duration }}</div>
|
|
|
|
<div class="data-hold">{{ .GetStartDateHTML }}</div>
|
|
|
|
<div class="data-hold">{{ .GetEndDateHTML }}</div>
|
2022-07-29 21:55:32 +01:00
|
|
|
-->
|
2022-07-28 01:56:00 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
<p>
|
|
|
|
Looking for the old static HTML page, here's the <a href="index.html">link</a>.
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|