{% load static %}
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>UnusualArchive</title>

<link rel="stylesheet" href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
<link rel="stylesheet" href="{% static 'plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'dist/css/adminlte.css' %}">

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">

<link rel="stylesheet" href="{% static 'plugins/fontawesome-free/css/all.min.css' %}">
</head>
<body class="layout-top-nav" style="height: auto;">
<div class="wrapper">

<nav class="main-header navbar navbar-expand-md navbar-light navbar-white">
<div class="container">
<a href="/" class="navbar-brand">
<img src="{% static 'dist/img/ragnarok.jpg' %}" alt="Ragnarok" class="brand-image img-circle elevation-3" style="opacity: .8">
<span class="brand-text font-weight-light">UnusualArchive</span>
</a>
<button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse order-3" id="navbarCollapse">

<ul class="navbar-nav">
<li class="nav-item">
<a href="/" class="nav-link">Explore</a>
</li>
<li class="nav-item">
<a href="/random" class="nav-link">Random</a>
</li>
<li class="nav-item">
<a href="/status" class="nav-link">Status</a>
</li>
<li class="nav-item">
<a href="/about" class="nav-link">About</a>
</li>

</ul>
<div class="float-right" style="width:100%">
<form class="form-inline ml-0 ml-md-3 float-right">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>


</div>
</nav>


<div class="content-wrapper" style="min-height: 1128px;">

<div class="content-header">
<div class="container">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">{% block header %}Explore{% endblock %}</h1>
</div>


</div>
</div>
</div>


<div class="content">
<div class="container">
  {% block content %}
  <div class="row mb-3">

  {% for v in videos %}
  <div class="col-xs-6 col-md-4">
    <a href="/view/{{ v.id }}">

    <div class="card mb-2 bg-gradient-dark">
    {% if v.thumbnail %}
    <img class="card-img-top" src="/media/{{v.thumbnail}}" alt="Dist Photo 1"style="max-width: 1280px; max-height: 720px;">
    {% else %}
    <img class="card-img-top" src="{% static 'dist/img/default.png' %}" alt="Dist Photo 1">
    {% endif %}
    <div class="card-img-overlay d-flex flex-column justify-content-end" style="background-color: rgba(0, 0, 0, 0.5);">
    <h5 class="card-title"><b>V{{ v.id }}</b></h5>
    <span>{{v.created_at}}</span>
    </div>
    </div>
  </a>
  </div>
  {% endfor %}



  </div>
  {% endblock %}
  </div>
  </div>

  </div>





<footer class="main-footer">

<div class="float-right d-none d-sm-inline">
Für die Nachwelt.
</div>

<strong>Copyright © 2023 Siebenhirten
</footer>
</div>



<script src="{% static 'plugins/jquery/jquery.min.js' %}"></script>
<script src="{% static 'plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<script src="{% static 'dist/js/adminlte.min.js' %}"></script>


</body>
</html>
