cleanup nav for public, footer + branding

This commit is contained in:
Dan Ballard 2015-11-22 16:26:51 -08:00
parent cbc4dc40bf
commit 9f5cd7e5d8
3 changed files with 55 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# transmet
# transmet ![thrree eyed smiley face](https://raw.githubusercontent.com/dballard/transmet/master/favicon.ico)
Quick fast personal link store that exports to a HTML template for quick posting to a blog
Usecase: storing interesting news articles you come across during a week with at the moment notes/commentary and

View File

@ -0,0 +1,39 @@
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
body > .container {
padding: 60px 15px 0;
}
.container .text-muted {
margin: 20px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}

View File

@ -9,6 +9,7 @@
<!-- Bootstrap -->
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/sticky-footer-navbar.css" rel="stylesheet">
<link href="/css/jquery-ui.min.css" rel="stylesheet">
<link href="/css/template.css" rel="stylesheet">
<link href="/css/signin.css" rel="stylesheet">
@ -17,11 +18,10 @@
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
@ -32,10 +32,11 @@
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/news/add">add</a></li>
<li><a href="/news/export">export</a></li>
<li><a href="/categories">categories</a></li>
{{if .user}}
<li><a href="/news/add">add</a></li>
<li><a href="/news/export">export</a></li>
<li><a href="/categories">categories</a></li>
{{end}}
</ul>
<ul class="nav navbar-nav navbar-right">
{{if .user}}
@ -47,12 +48,18 @@
</ul>
</div>
</div>
</div>
</nav>
<div class="container">
{{template "body" .}}
</div>
<footer class="footer">
<div class="container">
<p class="text-muted">Powered by <a href="https://github.com/dballard/transmet">transmet</a> <img src="/favicon.ico" />
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->