0.2.0 add footer, flag image and date updated
This commit is contained in:
parent
3a74901fb8
commit
7b41a1d395
6 changed files with 68 additions and 6 deletions
BIN
caluta_flag.png
Normal file
BIN
caluta_flag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "yusurko/caluta7",
|
||||
"type": "project",
|
||||
"version": "0.1.3",
|
||||
"version": "0.2.0",
|
||||
"require": {
|
||||
"league/commonmark": "^2.8",
|
||||
"symfony/yaml": "^7.0",
|
||||
|
|
|
|||
39
index.php
39
index.php
|
|
@ -7,13 +7,18 @@ $link = $_GET['link'] ?? 'index';
|
|||
$pl = new PageLoader();
|
||||
$pl->load($link);
|
||||
|
||||
if ($pl->getError() !== false) {
|
||||
$error = $pl->getError();
|
||||
http_response_code($error['status']);
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Caluta, Inc.</title>
|
||||
<title><?= htmlspecialchars($pl->getTitle()); ?> | Caluta, Inc.</title>
|
||||
<style>
|
||||
:root {
|
||||
--fg-main: #e8eef2;
|
||||
|
|
@ -42,19 +47,49 @@ $pl->load($link);
|
|||
margin: auto;
|
||||
max-width: 1000px;
|
||||
}
|
||||
|
||||
article header :is(h1, h2, .meta) {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img.logo {
|
||||
height: 1em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#site__footer {
|
||||
text-align: center;
|
||||
font-size: 85%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header id="site__header">
|
||||
<h1><img src="/caluta_flag.png" alt="" /> Caluta, Inc.</h1>
|
||||
<h1><img src="/caluta_flag.png" alt="" class="logo" /> Caluta, Inc.</h1>
|
||||
</header>
|
||||
<main>
|
||||
<article>
|
||||
<header>
|
||||
<?php if($pl->getError() === false): ?>
|
||||
<h1><?= htmlspecialchars($pl->getTitle()); ?></h1>
|
||||
<?php if($pl->getUpdatedAt() !== false): ?>
|
||||
<p class="meta">Last update: <?= htmlspecialchars(date('F j, Y', $pl->getUpdatedAt())); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<h1><?= "{$pl->getError()['status']}" ?></h1>
|
||||
<h2><?= "{$pl->getError()['message']}" ?></h2>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
<?php if($pl->getError() === false): ?>
|
||||
<?= $pl->getHtml(); ?>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
</main>
|
||||
<footer id="site__footer">
|
||||
<p>© 2026 yusurko</p>
|
||||
<p>Engine is licensed under GNU Affero General Public License (<a href="https://nekode.yusur.moe/yusur/caluta7">source code</a>)</p>
|
||||
<p>Content is licensed under CC BY-NC-SA 4.0.</p>
|
||||
<p>Caluta, Inc. does not store your information nor use cookies.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -2,18 +2,28 @@ Jytky Kalpy: Lemeryj
|
|||
|
||||
(r9: dictionary for the language of Jytlynd)
|
||||
|
||||
* **-ady** / part. / nominalizer (for words of HkM origin)
|
||||
* **-s** / part. / suffix for genitive
|
||||
* **-tza** / part. / suffix for past
|
||||
* **-tzu** / part. / suffix for continuous or te-form
|
||||
* **am** / pp. / by, to (dative)
|
||||
* **amgwan** / v. / to remember (used at past tense)
|
||||
* **atempty** / v. / to attempt
|
||||
* **barasjky** / a. / Maraśań
|
||||
* **cjat** / n. / chat, conversation
|
||||
* **cjendy** / n. / estrogen
|
||||
* **dœd** / a., n. / dead
|
||||
* **em** / v. / to be
|
||||
* **ersjalky** / a. / Imerchali
|
||||
* **fysj** / n. / fish
|
||||
* **fytt** / a., n. / fat, fatty acid
|
||||
* **galagy** / n. / south
|
||||
* **galutky** / a. / Calutan
|
||||
* **gryvary** / n. / script, alphabet
|
||||
* **gryvy** / v. / to grief, vandalize
|
||||
* **hynd** / n. / dog
|
||||
* **i** / pp. / in
|
||||
* **iglisy** / n. / north
|
||||
* **je** / p. / I
|
||||
* **jotky** / a. / Jutish (of Jotlond)
|
||||
* **jytky** / a. / Jutish (of Jytlynd)
|
||||
|
|
@ -28,11 +38,15 @@ Jytky Kalpy: Lemeryj
|
|||
* **nym** / n. / name
|
||||
* **oj** / p. / it
|
||||
* **oksygyn** / n. / oxygen
|
||||
* **pastynagy** / n. / carrot
|
||||
* **pergwan** / v. / to forget (used at past tense)
|
||||
* **pyjpa** / n. / paper
|
||||
* **som** / a. / some
|
||||
* **supry** / a. / good, super
|
||||
* **trok** / n. / crime
|
||||
* **tzyjar** / n. / animal (also as insult)
|
||||
* **vatry** / a. / bad, gross, not aight
|
||||
* **vy** / c. / why
|
||||
* **yky** / v. / to go
|
||||
* **yvyly** / a. / evil, silly
|
||||
* **zajady** / n. / cut
|
||||
|
|
|
|||
|
|
@ -1,4 +1,12 @@
|
|||
Caluta, Inc.
|
||||
|
||||
Caluta, Inc. is an evil corporation selling vegetables, paper and pharmauceuticals to the rest of the Ŋorld.
|
||||
|
||||
Lorem ipsum dolor sit amet
|
||||
|
||||
## Languages
|
||||
|
||||
* [Jytky Kalpy](https://mc.nguh.org/wiki/Jytky_Kalpy)
|
||||
* *other languages*
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,10 @@ define('PAGES_PATH', dirname(__DIR__) . '/pages');
|
|||
|
||||
|
||||
class PageLoader {
|
||||
protected string $name, $title;
|
||||
protected mixed $error;
|
||||
protected $updatedAt;
|
||||
protected string $name;
|
||||
protected string $title = '';
|
||||
protected mixed $error = false;
|
||||
protected mixed $updatedAt = false;
|
||||
protected string $raw_content;
|
||||
|
||||
public function __construct() {
|
||||
|
|
@ -129,4 +130,8 @@ class PageLoader {
|
|||
public function isIndex () {
|
||||
return $this->name === 'index';
|
||||
}
|
||||
|
||||
public function getUpdatedAt () {
|
||||
return $this->updatedAt;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue