aboutsummaryrefslogtreecommitdiffstats
path: root/guestbook-comments.php
blob: 4901df973512f87fd7b957e67208cc22bfd58c42 (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
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
<?php $light = isset($_GET['theme']) && $_GET['theme'] === 'light'; ?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Guestbook Comments — SillyLaird</title>
  <link rel="stylesheet" href="assets/css/site.css">
  <style>
    :root {
      --bg: <?= $light ? '#ffffff' : '#000000' ?>;
      --surface: <?= $light ? '#ffffff' : '#000000' ?>;
      --ink: <?= $light ? '#260600' : '#8b0000' ?>;
      --border: <?= $light ? '#d8d8d8' : '#2a1010' ?>;
    }

    html,
    body {
      background-color: var(--bg) !important;
      background: var(--bg) !important;
      margin: 0;
      padding: 10px;
      color: var(--ink) !important;
      overflow-y: auto;
    }

    * {
      background-color: var(--surface) !important;
      color: var(--ink) !important;
    }

    .anonymous {
      color: var(--ink) !important;
    }

    .guestbook-entry {
      background-color: transparent !important;
      border: 1px solid var(--border) !important;
      border-radius: 6px;
      padding: 15px;
      margin-bottom: 15px;
    }

    .guestbook-entry strong {
      color: <?= $light ? '#b01616' : '#cc0000' ?> !important;
    }

    .guestbook-entry time {
      color: <?= $light ? '#714039' : '#8b0000' ?> !important;
      opacity: <?= $light ? '0.85' : '0.7' ?>;
    }

    .guestbook-entry p {
      color: var(--ink) !important;
    }

    body::-webkit-scrollbar {
      display: block;
      width: 8px;
    }

    body::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 4px;
    }
  </style>
</head>

<body>
  <div id="comments" class="stack" style="gap: var(--space-md);">Loading comments...</div>

  <script src="/assets/js/pages/guestbook-comments.js" defer></script>
</body>

</html>