aboutsummaryrefslogtreecommitdiff
path: root/app/views/index.view.php
blob: 3e6cd37e3fc2c8b4d00afd4ac667015236f59f22 (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
<?php require __DIR__ . '/partials/header.php'; ?>

    <body>

<?php require __DIR__ . '/partials/navigator.php'; ?>

    <section class="section hero" itemscope itemtype="http://schema.org/HomePage">

    <div class="hero-body">
        <div class="container">
            <div class="columns is-centered">
                <div class="column is-8">

                    <br>

                    <h1 class="title has-text-weight-normal">
                        <span>
                            Web
                            <span class="has-text-danger">
                                Developer
                            </span>
                        </span>
                    </h1>

                    <h2 class="subtitle has-text-grey-dark has-text-weight-normal">
                        In it for the long haul
                    </h2>

                    <img alt="Mountains" width="960" height="480" src="/images/mountains.jpg">

                    <div class="content">

                    <br>

                    <p class="has-text-left has-text-black line__height">
                        My name is Thedro (<span class="has-text-grey-dark">tee-dro</span>) &mdash;
                        a web developer and self-taught
                        <a href="https://en.wikipedia.org/wiki/Linux">linux and unix-like</a>
                        system administrator.
                        There are many different tools and programming languages I've come across.
                        Welcome to my corner of the web. Here you'll find things I've
                        worked on as well as other interesting discoveries.
                    </p>

                    </div>

                    <div class="columns">

                        <div class="column has-text-centered has-text-left-mobile">
                            <div class="front__textbox has-text-left is-inline-block">

                                <h3 class="has-text-dark is-marginless is-size-5">
                                    Recent Posts
                                </h3>

                                <?php
                                $recent_posts = file($_SERVER['DOCUMENT_ROOT'] . '/post/index.html');
                                foreach (range(count($recent_posts) - 32,  count($recent_posts) - 24) as $line) {
                                    echo $recent_posts[$line];
                                }
                                ?>

                                <br>
                                <br>

                                <a class="front__frame is-inline-block" href="post/">More posts <span class="icon"></span></a>

                            </div>
                        </div>

                        <div class="column has-text-centered has-text-left-mobile">
                            <div class="front__textbox has-text-left is-inline-block">

                                <h3 class="has-text-dark is-marginless is-size-5">
                                    Recent Projects
                                </h3>

                                <?php
                                $recent_projects = file($_SERVER['DOCUMENT_ROOT'] . '/post/index.html');
                                foreach (range(count($recent_projects) - 15,  count($recent_projects) - 7) as $line) {
                                    echo $recent_projects[$line];
                                }
                                ?>

                                <br>
                                <br>

                                <a class="front__frame is-inline-block" href="project/">More projects <span class="icon"></span></a>

                            </div>
                        </div>

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

    </section>

<section>

<?php require __DIR__ . '/partials/footer.php'; ?>

  </body>
</html>