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",
|
"name": "yusurko/caluta7",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"version": "0.1.3",
|
"version": "0.2.0",
|
||||||
"require": {
|
"require": {
|
||||||
"league/commonmark": "^2.8",
|
"league/commonmark": "^2.8",
|
||||||
"symfony/yaml": "^7.0",
|
"symfony/yaml": "^7.0",
|
||||||
|
|
|
||||||
39
index.php
39
index.php
|
|
@ -7,13 +7,18 @@ $link = $_GET['link'] ?? 'index';
|
||||||
$pl = new PageLoader();
|
$pl = new PageLoader();
|
||||||
$pl->load($link);
|
$pl->load($link);
|
||||||
|
|
||||||
|
if ($pl->getError() !== false) {
|
||||||
|
$error = $pl->getError();
|
||||||
|
http_response_code($error['status']);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Caluta, Inc.</title>
|
<title><?= htmlspecialchars($pl->getTitle()); ?> | Caluta, Inc.</title>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--fg-main: #e8eef2;
|
--fg-main: #e8eef2;
|
||||||
|
|
@ -42,19 +47,49 @@ $pl->load($link);
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1000px;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header id="site__header">
|
<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>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
|
<?php if($pl->getError() === false): ?>
|
||||||
<h1><?= htmlspecialchars($pl->getTitle()); ?></h1>
|
<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>
|
</header>
|
||||||
|
<?php if($pl->getError() === false): ?>
|
||||||
<?= $pl->getHtml(); ?>
|
<?= $pl->getHtml(); ?>
|
||||||
|
<?php endif; ?>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -2,18 +2,28 @@ Jytky Kalpy: Lemeryj
|
||||||
|
|
||||||
(r9: dictionary for the language of Jytlynd)
|
(r9: dictionary for the language of Jytlynd)
|
||||||
|
|
||||||
|
* **-ady** / part. / nominalizer (for words of HkM origin)
|
||||||
* **-s** / part. / suffix for genitive
|
* **-s** / part. / suffix for genitive
|
||||||
* **-tza** / part. / suffix for past
|
* **-tza** / part. / suffix for past
|
||||||
* **-tzu** / part. / suffix for continuous or te-form
|
* **-tzu** / part. / suffix for continuous or te-form
|
||||||
* **am** / pp. / by, to (dative)
|
* **am** / pp. / by, to (dative)
|
||||||
* **amgwan** / v. / to remember (used at past tense)
|
* **amgwan** / v. / to remember (used at past tense)
|
||||||
* **atempty** / v. / to attempt
|
* **atempty** / v. / to attempt
|
||||||
|
* **barasjky** / a. / Maraśań
|
||||||
|
* **cjat** / n. / chat, conversation
|
||||||
|
* **cjendy** / n. / estrogen
|
||||||
|
* **dœd** / a., n. / dead
|
||||||
* **em** / v. / to be
|
* **em** / v. / to be
|
||||||
* **ersjalky** / a. / Imerchali
|
* **ersjalky** / a. / Imerchali
|
||||||
|
* **fysj** / n. / fish
|
||||||
|
* **fytt** / a., n. / fat, fatty acid
|
||||||
|
* **galagy** / n. / south
|
||||||
|
* **galutky** / a. / Calutan
|
||||||
* **gryvary** / n. / script, alphabet
|
* **gryvary** / n. / script, alphabet
|
||||||
* **gryvy** / v. / to grief, vandalize
|
* **gryvy** / v. / to grief, vandalize
|
||||||
* **hynd** / n. / dog
|
* **hynd** / n. / dog
|
||||||
* **i** / pp. / in
|
* **i** / pp. / in
|
||||||
|
* **iglisy** / n. / north
|
||||||
* **je** / p. / I
|
* **je** / p. / I
|
||||||
* **jotky** / a. / Jutish (of Jotlond)
|
* **jotky** / a. / Jutish (of Jotlond)
|
||||||
* **jytky** / a. / Jutish (of Jytlynd)
|
* **jytky** / a. / Jutish (of Jytlynd)
|
||||||
|
|
@ -28,11 +38,15 @@ Jytky Kalpy: Lemeryj
|
||||||
* **nym** / n. / name
|
* **nym** / n. / name
|
||||||
* **oj** / p. / it
|
* **oj** / p. / it
|
||||||
* **oksygyn** / n. / oxygen
|
* **oksygyn** / n. / oxygen
|
||||||
|
* **pastynagy** / n. / carrot
|
||||||
* **pergwan** / v. / to forget (used at past tense)
|
* **pergwan** / v. / to forget (used at past tense)
|
||||||
|
* **pyjpa** / n. / paper
|
||||||
* **som** / a. / some
|
* **som** / a. / some
|
||||||
* **supry** / a. / good, super
|
* **supry** / a. / good, super
|
||||||
* **trok** / n. / crime
|
* **trok** / n. / crime
|
||||||
* **tzyjar** / n. / animal (also as insult)
|
* **tzyjar** / n. / animal (also as insult)
|
||||||
* **vatry** / a. / bad, gross, not aight
|
* **vatry** / a. / bad, gross, not aight
|
||||||
|
* **vy** / c. / why
|
||||||
* **yky** / v. / to go
|
* **yky** / v. / to go
|
||||||
* **yvyly** / a. / evil, silly
|
* **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
|
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 {
|
class PageLoader {
|
||||||
protected string $name, $title;
|
protected string $name;
|
||||||
protected mixed $error;
|
protected string $title = '';
|
||||||
protected $updatedAt;
|
protected mixed $error = false;
|
||||||
|
protected mixed $updatedAt = false;
|
||||||
protected string $raw_content;
|
protected string $raw_content;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
@ -129,4 +130,8 @@ class PageLoader {
|
||||||
public function isIndex () {
|
public function isIndex () {
|
||||||
return $this->name === 'index';
|
return $this->name === 'index';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getUpdatedAt () {
|
||||||
|
return $this->updatedAt;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue