feat: add footer which includes the repo link

This commit is contained in:
rramiachraf
2022-12-17 21:45:45 +01:00
parent 9371e53972
commit f01607946a
6 changed files with 57 additions and 16 deletions

5
views/footer.tmpl Normal file
View File

@ -0,0 +1,5 @@
{{define "footer"}}
<footer>
<a target="_blank" href="https://github.com/rramiachraf/dumb">Source Code</a>
</footer>
{{end}}

View File

@ -7,16 +7,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<nav>
<a href="/"><img src="/static/logo.svg" /></a>
</nav>
<div id="home">
<div>
<h1>Welcome to dumb</h1>
<p>An alternative frontend for genius.com</p>
<main id="app">
{{template "navbar"}}
<div id="home">
<div>
<h1>Welcome to dumb</h1>
<p>An alternative frontend for genius.com</p>
</div>
<code>Just redirect Genius URLs to this instance and It's all good.</code>
</div>
<code>Just redirect Genius URLs to this instance and It's all good.</code>
{{template "footer"}}
</div>
</body>
</html>

View File

@ -7,10 +7,8 @@
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<script type="text/javascript" src="/static/script.js" defer></script>
</head>
<body>
<nav>
<a href="/"><img src="/static/logo.svg" /></a>
</nav>
<body>
{{template "navbar"}}
<div id="container">
<div id="metadata">
<img src="{{.Image}}"/>
@ -35,5 +33,6 @@
</div>
</div>
</div>
{{template "footer"}}
</body>
</html>

5
views/navbar.tmpl Normal file
View File

@ -0,0 +1,5 @@
{{define "navbar"}}
<nav>
<a href="/"><img src="/static/logo.svg" /></a>
</nav>
{{end}}