all repos — go-lift @ 35d89fd489cd99e63cbf7b49fe5e9088f5b13317

Lightweight workout tracker prototype..

templates/base.gohtml (view raw)

 1{{ define "base" }}<!DOCTYPE html>
 2<html lang="en">
 3<head>
 4    <meta charset="UTF-8">
 5    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 6    <title>Go Lift - {{ capitalize .Page }}</title>
 7    <link rel="stylesheet" href="/static/styles.css">
 8</head>
 9<body class="loading">
10    <div class="container">
11        <nav class="sidebar">
12            <a href="/" class="nav-link {{ if eq .Page "home" }}active{{ end }}">
13                <span class="nav-icon">🏠</span>
14                <span>Home</span>
15            </a>
16            <a href="/exercises" class="nav-link {{ if eq .Page "exercises" }}active{{ end }}">
17                <span class="nav-icon">🏋️‍♂️</span>
18                <span>Exercises</span>
19            </a>
20            <a href="/routines" class="nav-link {{ if eq .Page "routines" }}active{{ end }}">
21                <span class="nav-icon">📝</span>
22                <span>Routines</span>
23            </a>
24            <a href="/workouts" class="nav-link {{ if eq .Page "workouts" }}active{{ end }}">
25                <span class="nav-icon">💪</span>
26                <span>Workouts</span>
27            </a>
28            <a href="/profile" class="nav-link {{ if eq .Page "profile" }}active{{ end }}">
29                <span class="nav-icon">👤</span>
30                <span>Profile</span>
31            </a>
32        </nav>
33
34        <main class="content">
35            {{ template "body" . }}
36        </main>
37    </div>
38
39    <button class="theme-toggle" id="themeToggle">🌓</button>
40
41    <script src="/static/theme.js"></script>
42</body>
43</html>{{ end }}