aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: f78db7db48a632ee50e9c02a64f1e57e319c6ba1 (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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="style.css" rel="stylesheet" type="text/css" media="all">
    <style>
      body {
        margin-top: 0;
        margin-bottom: 0;
      }

      main {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
      main > :is(div, nav) {
        width: 100%;
      }

      #webrings > div {
        margin: var(--stdpadding);
      }
      #webrings div :is(a, span) {
        padding: initial;
        margin: initial;
        background: none;
        border-left: none;
      }

      #guys {
        position: fixed;
        bottom: 0;
        left: 3rem;
        font-size: 0;
      }
      #guys > * {
        margin-right: var(--stdpadding);
      }
      #bubblecolumn {
        position: fixed;
        right: 7%;
        top: 0;
        width: 29px;
        height: 100%;
        background-image: url(images/bubblecolumn1.gif);
        background-repeat: repeat-y;
        pointer-events: none;
      }
      #bucketfish, .bflink {
        --red: #ffcaca;
        --orange: #ffedc1;
        --yellow: #feffb8;
        --green: #c4ffcb;
        --blue: #add8ff;
        --purple: #ccafe9;
        --darkgreen: #3E885B;
        --darkblue: #7fb4f5;
        --background: #454545;
        --rainbowright: linear-gradient(to right, var(--red) 0%, var(--orange) 20%, var(--yellow) 40%, var(--green) 60%, var(--blue) 80%,  var(--purple) 100%);

        color: var(--purple);
        display: inline-block;
        position: relative;
        text-decoration: none;
        transition: linear .2s;
      }
      #bucketfish:before, .bflink:before {
        background: var(--rainbowright);
        content: '';
        height: 2px;
        position: absolute;
        bottom: -1.5px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        transition: width 0.2s ease-in-out;
      }
      .bflink:hover {
        color: var(--purple);
      }
      #bucketfish:hover:before, .bflink:hover:before {
        width: 0;
      }
      #bucketfish span {
        animation-delay: var(--n);
        animation: wave 1.5s linear var(--n) infinite forwards running, rainbow 3s linear var(--n) infinite forwards running;
        position: relative;
      }

      @media (prefers-reduced-motion) {
        #bubblecolumn {
          display: none;
        }
        #bucketfish span {
          animation: none;
        }
      }
      @media only screen and (hover: none) {
        #rightsidebg {
          box-shadow: none;
        }
        main {
          justify-content: initial;
          height: initial;
        }
        #guys {
          position: initial;
          bottom: initial;
          left: initial;
        }
        body {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }
      }

      @keyframes wave{
        0%    {top: 0px;}
        25%   {top: -1px;}
        50%   {top: 0px;}
        75%  {top: 1px;}
        100% {top: 0px;}
      }

      @keyframes rainbow{
        0% {color: var(--red);}
        17% {color: var(--orange);}
        33% {color: var(--yellow);}
        50% {color: var(--green);}
        67% {color: var(--blue);}
        83% {color: var(--purple);}
        100% {color: var(--red);}
      }
    </style>
    <?php
      include($_SERVER['DOCUMENT_ROOT'] . '/common.php');
      include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php');
    ?>
    <title>isopod.cool v3</title>
    <meta name="description" content="real life isopod">
  </head>
  <body>
  <?php include('nav.php'); bg(true, 11, "Pictured: The eponymous Deep Twisty"); ?>
    <main>
      <img src="images/landing.png" alt="Isopod on her skinkpad (thinkpad but with added skink)" title="replacement image pending"/>
      <?php
        $username = "niceopod"; // Your username here!
        $ch = curl_init("https://status.cafe/users/$username/status.json");

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, 0);

        $str = curl_exec($ch);
        if(curl_error($ch)) {
          //echo curl_error($ch);
          $str = "";
        }
        curl_close($ch);
        $status_data = json_decode($str, true);
        $status_content = $status_data["content"];
        $face = $status_data["face"];
        $timeago = $status_data["timeAgo"];
        if(strlen($status_content) < 1) {
          $status_content = "Something's gone wrong server side...";
        }
        echo "<figure class='quote'><blockquote id='statuscafe'><div id='statuscafe-username'><a href='https://status.cafe/users/$username' target='_blank'>status</a> $face $timeago</div><div id='statuscafe-content'>$status_content</div></blockquote></figure>";
      ?>
      <nav id="webrings">
        <div style="font-family: sans-serif; font-weight: bold;">
          <a href="https://hotlinewebring.club/bathynomus/previous" style="color: white; text-decoration: none;">←</a>
          <a href="https://hotlinewebring.club/" style="color: white; text-decoration: none; font-style: italic;">HOTLINE WEBRING</a>
          <a href="https://hotlinewebring.club/bathynomus/next" style="color: white; text-decoration: none;">→</a>
        </div>
        <div>
          <a href="https://melonland.net/surf-club.html" style="color: #ff74ff;"><span style="color: #e7ad59;">melon</span><span style="color: #c0ea32;">ring</span></a>
          <a href="https://brain.melonking.net/surf-club-random" style="color: #ff74ff;"><span style="color: #864cff;">?</span></a>
        </div>
        <div>
          <a href="https://webring.bucketfish.me/redirect.html?to=prev&name=isopod" class="bflink">⥼</a>
          <a href="https://webring.bucketfish.me" id="bucketfish"><span style="--n:-10000ms;">b</span><span style="--n:-9900ms;">u</span><span style="--n:-9800ms;">c</span><span style="--n:-9700ms;">k</span><span style="--n:-9600ms;">e</span><span style="--n:-9500ms;">t</span><span style="--n:-9400ms;"> </span><span style="--n:-9300ms;">w</span><span style="--n:-9200ms;">e</span><span style="--n:-9100ms;">b</span><span style="--n:-9000ms;">r</span><span style="--n:-8900ms;">i</span><span style="--n:-8800ms;">n</span><span style="--n:-8700ms;">g</span></a>
          <a href="https://webring.bucketfish.me/redirect.html?to=next&name=isopod" class="bflink">⥽</a>
        </div>
        <div>
          <a href="https://fediring.net/previous?host=isopod.cool">←</a>
          <a href="https://fediring.net/">fediring</a>
          <a href="https://fediring.net/random">?</a>
          <a href="https://fediring.net/next?host=isopod.cool">→</a>
        </div>
        <div>
          <a href="https://baccyflap.com/noai/?prv&s=ipd">←</a>
          <a href="https://baccyflap.com/noai">no AI webring</a>
          <a href="https://baccyflap.com/noai/?rnd">?</a>
          <a href="https://baccyflap.com/noai/?nxt&s=ipd">→</a>
        </div>
      </nav>
      <div class="buttons">
        <img src="etc/buttons/isopodhours.png" alt="isopod hours">
        <a target="_blank" href="https://deeptwisty.com/"><img src="etc/buttons/deeptwisty_button.png" alt="deep twisty"></a>
      </div>
      <!--script type="text/javascript">document.write('<a href="desktop.html">$login<span class="blinking" >_</span></a>');</script-->
    </main>
    
    <div id="guys">
      <a target="_blank" href="https://dokodemo.neocities.org/" title="made by Dokodemo"><img alt="An isopod!" src="images/isopod3.png"></a>
      <a target="_blank" href="https://lu.tiny-universes.net" title="hi, i'm kevin!"><img alt="Kevin" src="images/plant1-2.png"></a>
      <a target="_blank" href="https://newlambda.neocities.org/stuff/adopt" title="benlet"><img alt="benlet" src="images/benlet1.png" style="width: 32px; image-rendering: pixelated;"></a>
      <a target="_blank" href="https://www.pixelcatsend.com/profile&id=3734" title="Shadow"><img alt="Shadow" src="images/shadow.png" style="image-rendering: pixelated;"></a>
      <a target="_blank" href="https://tarraxahum.neocities.org/adopt/adopt_center" title="french fry"><img alt="french fry" src="images/fry.png" style="height: 2rem;"></a>
      <a target="_blank" href="https://kelpeater.neocities.org/collections/isopods" title="Another isopod!"><img alt="Another isopod!" src="images/casiopea_isopod.png" style="height: 4rem;"></a>
      <a target="_blank" href="https://shroom.ink/decay/adopt-a-shroom/" title="Ophiocordyceps Unilateralis"><img alt="Ophiocordyceps Unilateralis" src="images/Ophiocordyceps_unilateralis.png" style="height: 4rem;"></a>
    </div>
    <div id="bubblecolumn"></div>
    <?php
      if(date("w") == "5" && rand(0, 9) == 4) {
        $ind = rand(1,2);
        $filename = "images/flatworm friday $ind.mp4";
        echo "<div id='flatwormfriday' style='position: absolute;left: 0;right: 0;top: 0;bottom: 0;background: #000000cc;display: flex;justify-content: center;align-items: center;'><video controls=''><source src='$filename' type='video/mp4'>It's Flatworm Friday! Your browser does not support the video tag.</video><span style='position: absolute; left: 1rem; bottom: 1rem;'>Refresh the page to close this</span></div>";
      }
    ?>
    <script src="wimpod.js"></script>
  </body>
</html>