afr0dita/static/html/main.html

101 lines
2.5 KiB
HTML
Raw Normal View History

2022-12-27 10:00:40 +01:00
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="styles/css">
<title>afr0dita</title>
<style>
body {
background-color: #FFFDFA;
padding-top: 100px;
font-family: "Ubuntu Mono", monospace;
}
input[type="text"] {
background-color : #FFFDFA;
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.card-group {
margin-right:5%;
}
.form-control-sm {
font-family: inherit;
width: 100%;
border: 0;
border-bottom: 2px solid black;
outline: 0;
font-size: 1.3rem;
padding: 7px 0;
background: transparent;
transition: border-color 0.2s;
}
</style>
</head>
<body>
<nav class="navbar navbar-light fixed-top navbar-masthead">
<div class="container-fluid">
<a class="navbar-brand">
<form action="/add">
<input type="submit" class="btn btn-outline-dark" value="+ Add" />
</form>
</a>
<h1>afr0dita</h1>
</div>
</nav>
<div class="d-flex align-items-center">
<div class="container py-5">
<div class="row">
<div class="col">
<form class="d-flex" action="/">
<input class="form-control-sm me-2" autocomplete="off" type="text" name="tags" id="tags" placeholder="Search" aria-label="Search">
</form>
</div>
</div>
</div>
</div>
<div class="d-flex align-items-center">
<div class="container">
<div class="row">
{{range .}}
{{ if eq .Screenshot "" }}
{{ else }}
<div class="col-3 py-2">
<a target="_blank" href="screenshots/{{.Screenshot}}"><img class="card" src="screenshots/{{.Screenshot}}" width="300" height="200" ></a>
{{range .Separated}}
<span class="badge bg-light"><a href="?tags={{.}}">{{.}}</a></span>
{{end}}
{{ if eq .Url "" }}
{{ else }}
<a href="/?delete={{.Url}}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
</svg></a>
{{end}}
</div>
{{ end }}
{{end}}
</div>
</div>
</div>
</body>
</html>