aboutsummaryrefslogtreecommitdiff
path: root/app/views/partials/navigator.php
blob: 2100f09d5ba4c0f740c00c94e3dd0543fa0b7b85 (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
    <nav id="navbar" class="navbar is-fixed-top" aria-label="main navigation">

        <div class="container">

            <div class="navbar-brand navbar__mobile__compact">

                <a href="/" class="navbar-item navbar__icon
                <?php echo $check = $navigation->isActiveHome() ? 'navbar__active' : ''; ?>">
                    <div class="has-text-centered">
                    <?php featherIcon('user'); ?>
                    <p class="is-size-7 navbar__icon__align">Home</p>
                    </div>
                </a>

                <a href="/posts/" class="navbar-item navbar__icon
                <?php echo $check = $navigation->isActive('posts') ? 'navbar__active' : ''; ?>">
                    <div class="has-text-centered">
                    <?php featherIcon('book-open'); ?>
                    <p class="is-size-7 navbar__icon__align">Posts</p>
                    </div>
                </a>

                <a href="/projects/" class="navbar-item navbar__icon
                <?php echo $check = $navigation->isActive('projects') ? 'navbar__active' : ''; ?>">
                    <div class="has-text-centered">
                    <?php featherIcon('briefcase'); ?>
                    <p class="is-size-7 navbar__icon__align">Projects</p>
                    </div>
                </a>

                <a href="/contact/" class="navbar-item navbar__icon
                <?php echo $check = $navigation->isActive('contact') ? 'navbar__active' : ''; ?>">
                    <div class="has-text-centered">
                    <?php featherIcon('mail'); ?>
                    <p class="is-size-7 navbar__icon__align">Contact</p>
                    </div>
                </a>

                <div id="navBurgerCompact"
                class="navbar-burger burger navbar__icon has-text-dark"
                data-target="navMenu">
                <a href="javascript:void(0)" class="navbar-item navbar__icon__menu">
                    <div class="has-text-centered">
                    <?php featherIcon('menu'); ?>
                    <p class="is-size-7 navbar__icon__align">Menu</p>
                    </div>
                </a>
                </div>

            </div>

            <div class="navbar-brand navbar__tablet__compact">

                <?php require $_SERVER['DOCUMENT_ROOT']
                . '/..' . '/app/views/partials/navigator.links.php'; ?>

                <div id="navBurger"
                class="navbar-burger burger has-text-dark" data-target="navMenu">
                <a href="javascript:void(0)" class="navbar-item navbar__icon__menu">
                    <div class="has-text-centered">
                    <?php featherIcon('menu'); ?>
                    <p class="is-size-7 navbar__icon__align">Menu</p>
                    </div>
                </a>
                </div>

            </div>


            <div class="navbar-menu">

                <div class="columns is-centered has-margin-bottom-none">

                    <div class="navbar__left column">
                        <a title="Go to Website Repository"
                        href="https://www.thedroneely.com/git/explore/repos"
                        class="navbar-item item__box button is-inline-flex">
                        <?php featherIcon('git-commit'); ?>
                        <span>Repo</span>
                        </a>

                        <form class="is-inline" method="get"
                        action="<?php echo $_SERVER['REQUEST_URI']; ?>">

                                <?php if ($theme->color() === 'dark') { ?>

                                <button title="Switch to Light Theme"
                                class="navbar-item button item__box is-inline-flex"
                                name="theme" type="submit" value="light">

                                <?php featherIcon('sun'); ?>

                                <?php } else { ?>

                                <button title="Switch to Dark Theme"
                                class="navbar-item button item__box is-inline-flex"
                                name="theme" type="submit" value="dark">

                                <?php featherIcon('moon'); ?>

                                <?php } ?>

                            </button>
                        </form>

                    </div>

                    <div class="navbar__middle column is-7">
                        <?php require $_SERVER['DOCUMENT_ROOT']
                        . '/..' . '/app/views/partials/navigator.links.php'; ?>
                    </div>

                     <div class="navbar__right column">
                        <a title="Coffee"
                        href ="https://ko-fi.com/thedroneely"
                        class="navbar-item item__box button is-inline-flex">
                        <?php featherIcon('coffee'); ?>
                        <span>Coffee</span>
                        </a>
                    </div>

                </div>

            </div>

        </div>
    </nav>

    <nav id="navMenu" class="navbar-menu is-hidden-desktop">
        <div id="navMenuContainer" class="navbar-end">

            <?php require $_SERVER['DOCUMENT_ROOT']
            . '/..' . '/app/views/partials/navigator.links.php'; ?>

            <div class ="theme-toggle">
                <form method="get" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

                    <?php if ($theme->color() === 'dark') { ?>

                    <button class="theme-toggle-button button is-text has-text-left is-block"
                    name="theme" type="submit" value="light">

                        <span class="theme-toggle-moon">Light</span>

                    <?php } else { ?>

                    <button class="theme-toggle-button button is-text has-text-left is-block"
                    name="theme" type="submit" value="dark">

                        <span class="theme-toggle-moon">Dark</span>

                    <?php } ?>

                    </button>
                </form>
            </div>

        </div>
    </nav>