aboutsummaryrefslogtreecommitdiff
path: root/views/home/index.php
blob: 036a79a06181a0c587e4e1b3db3aba154b038f3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<section class="highlight separate-margin">
    <h2>Explore the archives or add a new page</h2>

    <form action="/archive" method="GET" class="font-125 flex-row width-100 center-margin">
        <input type="text" name="url" placeholder="Enter a URL" class="flex-expand">
        <input type="submit" value="Search">
    </form>
</section>

<hr class="new-section"/>

<h1>Most popular archives</h1>

<?php
    foreach(Database\Webpage::fromDBmostVisited(10) as $page) {
        $goto = "/archive/?url=$page->URL";
        include __DIR__ . '/card.php';
    }
?>

<h1>...</h1>

<div class="card-blank-afterspace"></div>