First version of web UI
This commit is contained in:
16
web/data/articles.html
Normal file
16
web/data/articles.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{define "articlesHTML"}}
|
||||
<ol reversed>
|
||||
{{range .articles}}
|
||||
<li>
|
||||
<div class="article_content">
|
||||
<a href="/{{.ID}}/{{.Slug}}">
|
||||
{{.Title}}</a></div>
|
||||
<div class="timestamp">{{.SourceName}} - {{ .FormatedCreatedAt }}</div>
|
||||
</li>
|
||||
<br><br>
|
||||
{{else}}
|
||||
Nema članaka za izabrani datum.
|
||||
{{end}}
|
||||
|
||||
</ol>
|
||||
{{end}}
|
||||
6
web/data/footer.html
Normal file
6
web/data/footer.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{define "footerHTML"}}
|
||||
|
||||
<footer>
|
||||
© StareNovine
|
||||
</footer>
|
||||
{{end}}
|
||||
44
web/data/head.html
Normal file
44
web/data/head.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{{define "headHTML"}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta property="og:site_name" content="svevijesti">
|
||||
<meta name="twitter:card" content="preview">
|
||||
<meta property="og:title" content="stare novine: bosna i hercegovina, klix, avaz, faktor, blijesak, srpskainfo">
|
||||
<meta name="description" content="stare novine omogucavaju citanje svih vijesti iz bosne i hercegovine, hrvatske, srbije, crne gore, kosova na bosanskom, crnogorskom, hrvatskom, srpskom jeziku na svim uredjajima koliko god stari bili">
|
||||
<meta property="og:url" content="https://www.starenovine.com">
|
||||
<title>{{.title}} - stare novine</title>
|
||||
<link rel="canonical" href="https://www.starenovine.com/">
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: monospace;
|
||||
font-size: 1.5em;
|
||||
width: 90%;
|
||||
max-width: 98vw;
|
||||
}
|
||||
|
||||
.timestamp {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#logo {
|
||||
font-size: 2vw;
|
||||
background: white;
|
||||
}
|
||||
|
||||
pre.article_content {
|
||||
background: white;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0 auto;
|
||||
max-width: 98vw;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
{{end}}
|
||||
18
web/data/header.html
Normal file
18
web/data/header.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{define "headerHTML"}}
|
||||
<header>
|
||||
<pre id="logo">
|
||||
_____ ______ ____ ____ ___ ____ ___ __ __ ____ ____ ___
|
||||
/ ___/| | / || \ / _]| \ / \ | | || || \ / _]
|
||||
( \_ | || o || D ) / [_ | _ || || | | | | | _ | / [_
|
||||
\__ ||_| |_|| || / | _]| | || O || | | | | | | || _]
|
||||
/ \ | | | | _ || \ | [_ | | || || : | | | | | || [_
|
||||
\ | | | | | || . \| || | || | \ / | | | | || |
|
||||
\___| |__| |__|__||__|\_||_____||__|__| \___/ \_/ |____||__|__||_____|
|
||||
|
||||
</pre>
|
||||
<br>
|
||||
<nav>
|
||||
<a href="/">Početna</a>
|
||||
</nav>
|
||||
</header>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user