push
This commit is contained in:
47
templates/index.html
Normal file
47
templates/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!doctype html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Vyhledávání Google — Inzio</title>
|
||||
<!-- Bootstrap 5 CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
</head>
|
||||
<body class="bg-light d-flex min-vh-100">
|
||||
<main class="container my-auto py-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-md-10 col-lg-8">
|
||||
<div class="text-center mb-4">
|
||||
<h1 class="fw-semibold">Inzio Web Search</h1>
|
||||
<p class="text-muted mb-0">Jednoduché vyhledávání na Googlu</p>
|
||||
</div>
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body p-4">
|
||||
<form action="/search" method="POST" class="d-flex flex-column gap-3">
|
||||
<div>
|
||||
<label for="q" class="form-label">Hledaný dotaz</label>
|
||||
<input type="text" class="form-control form-control-lg" id="q" name="q" placeholder="Zadejte dotaz…" required>
|
||||
</div>
|
||||
<div class="d-grid d-sm-flex gap-2">
|
||||
<button type="submit" class="btn btn-primary btn-lg">Hledat</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer bg-white text-muted small">
|
||||
Výsledky poskytuje <a href="https://developers.google.com/custom-search/v1/overview#search_engine_id" target="_blank" rel="noopener">Google Custom Search JSON API</a> · limit: 1 požadavek / 5 s
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user