Started working on the layout of the app
This commit is contained in:
@ -2,6 +2,4 @@
|
||||
|
||||
<p>This is the BLT dashboard.</p>
|
||||
|
||||
<p>BLT version {{ .app_version }}</p>
|
||||
|
||||
{{ template "footer" . }}
|
||||
|
@ -1,4 +1,11 @@
|
||||
{{ define "footer" }}
|
||||
</div>
|
||||
|
||||
<!-- footer -->
|
||||
<nav id="main-footer">
|
||||
<p>BLT version {{ .app_version }}</p>
|
||||
</nav>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,15 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{{ .title }} | BLT</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
|
||||
<link rel="stylesheet" href="/css/kourend.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" charset="utf-8"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- navbar -->
|
||||
{{ template "navbar" . }}
|
||||
|
||||
<!-- main content -->
|
||||
<div id="main-content" class="container">
|
||||
{{ end }}
|
||||
|
11
templates/layout/navbar.tmpl
Normal file
11
templates/layout/navbar.tmpl
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "navbar" }}
|
||||
<nav id="navbar">
|
||||
<ul class="navbar-left">
|
||||
<li><h4>BLT</h4></li>
|
||||
<li><a href="/">Dashboard</a></li>
|
||||
<li><a href="/project">Projects</a></li>
|
||||
<li><a href="/hardware">Hardware</a></li>
|
||||
<li><a href="/benchmark">Benchmarks</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
Reference in New Issue
Block a user