summaryrefslogtreecommitdiff
path: root/index.php
blob: 23e9ccb6c971602e53befb7f2fd6b84ce9712301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
    require 'common.php';
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

        <title>Manup &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp;  Lonely MAN near You</title>

        <link rel="icon" type="image/png"    sizes="128x128" href="imgs/logo-goog.png"/>
        <link rel="icon" type="image/png"    sizes="32x32"   href="imgs/logo-goog32.png"/>
        <link rel="icon" type="image/png"    sizes="16x16"   href="imgs/logo-goog16.png"/>
        <!--<link rel="icon" type="image/x-icon" sizes="16x16"   href="imgs/logo-goog16.ico"/>-->

        <link rel="stylesheet" href="style/normalize.css"/>
        <link rel="stylesheet" href="style/main.css"/>
    </head>
    <body>
        <div id="main">
            <header>
                <nav id="topnav">
                    <a href="https://cabin.digital">Cabin</a>
                    <a href="#">Pages</a>
                    <a href="#"><span id="topnav_icon"></span></a>
                    <button class="btn-acc">Man up</button>
                </nav>
            </header>
            <section id="logo">
                <h1>
                    <span id="logo-let">Let</span>
                    <span id="logo-me">me</span>
                    <code id="logo-man">man</code>
                    <span id="logo-that">that</span>
                    <span id="logo-for">For</span>
                    <span id="logo-you">you</span>
                </h1>
                <div id="logo-ver_wrap">
                    <span id="logo-ver">BETA!</span>
                </div>
            </section>
            <nav id="search_pane">
                <form action="/search.php">
                    <div id="query_wrap">
                        <div id="query_icon"></div>
                        <input id="query" type='search' value='<?php if($action === 'lmmtfy') echo $query;?>'   name='query' required autofocus/>
                        <button id="def"   type='submit' value='man'      name='action' class="btn-def" aria-hidden="true" tabindex="-1"></button>
                        <?php
                            if($action === 'lmmtfy')
                                echo '<input id="sect"  type="hidden" value="' . $section . '" name= "section"/>';
                        ?>
                    </div>
                    <div>
                        <button id="mank" type='submit' value='apropos' name='action' title="apropos(1)">man -k</button>
                        <button id="man"  type='submit' value='man'     name='action' title="Feeling lucky, punk?">man</button>
                    </div>
                </form>
                <?php
                    if($action === 'lmmtfy')
                        echo '<noscript class="center"><p>No JavaScript means you have to manually press the <code>man</code> button.</p></noscript>';
                ?>
                <p class="hint center">Write "man" if you have no idea what to do...</p>
            </nav>

            <footer>
                <p class="center">
                    Copyleft <span class="copyleft">&copy;</span> 2024
                    <a href="mailto:manup@cabin.digital">dweller</a> from
                    <a href="https://cabin.digital">cabin.digital</a>.
                    All Wrongs Reserved.
                </p>
            </footer>
            <nav id="about_pane">
                <section>
                    <a href="#">About</a>
                    <a href="#">Source</a>
                </section>
                <section>
                    <a href="#">Credits</a>
                    <a href="#">Contact</a>
                    <a href="#">Settings</a>
                </section>
            </nav>
        </div>
    </body>

<?php
    if($action === 'lmmtfy') echo '<script src="js/lmmtfy.js"></script>';
?>
</html>