feat: add footer which includes the repo link
This commit is contained in:
5
views/footer.tmpl
Normal file
5
views/footer.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
{{define "footer"}}
|
||||
<footer>
|
||||
<a target="_blank" href="https://github.com/rramiachraf/dumb">Source Code</a>
|
||||
</footer>
|
||||
{{end}}
|
@ -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>
|
||||
|
@ -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
5
views/navbar.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
{{define "navbar"}}
|
||||
<nav>
|
||||
<a href="/"><img src="/static/logo.svg" /></a>
|
||||
</nav>
|
||||
{{end}}
|
Reference in New Issue
Block a user