Started working on the layout of the app

This commit is contained in:
Gregory Ballantine 2023-11-24 23:34:50 -05:00
parent cbc816ad70
commit 9dceaa8119
5 changed files with 92 additions and 2 deletions

65
public/css/kourend.css Normal file
View File

@ -0,0 +1,65 @@
html,
body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body{
padding-top: 80px;
padding-bottom: 80px;
background: #eee;
}
#navbar{
box-sizing: border-box;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 64px;
padding-left: 10px;
background: purple;
color: white;
z-index: 10;
}
#navbar ul{
list-style: none;
}
#navbar ul li{
display: inline-block;
}
#navbar h4,
#navbar a{
margin-left: 15px;
line-height: 64px;
}
#navbar a{
color: white;
font-size: 24px;
text-decoration: none;
}
#main-content{
max-width: 1024px;
padding: 14px 20px;
background: white;
border-radius: 8px;
}
#main-footer{
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 64px;
}
#main-footer p{
line-height: 64px;
text-align: center;
}

View File

@ -2,6 +2,4 @@
<p>This is the BLT dashboard.</p> <p>This is the BLT dashboard.</p>
<p>BLT version {{ .app_version }}</p>
{{ template "footer" . }} {{ template "footer" . }}

View File

@ -1,4 +1,11 @@
{{ define "footer" }} {{ define "footer" }}
</div>
<!-- footer -->
<nav id="main-footer">
<p>BLT version {{ .app_version }}</p>
</nav>
</body> </body>
</html> </html>
{{ end }} {{ end }}

View File

@ -6,6 +6,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ .title }} | BLT</title> <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> </head>
<body> <body>
<!-- navbar -->
{{ template "navbar" . }}
<!-- main content -->
<div id="main-content" class="container">
{{ end }} {{ end }}

View 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 }}