v1.0.1 #11
@ -1,2 +1,10 @@
|
|||||||
# www.thi-hub.de
|
# www.thi-hub.de
|
||||||
A simple hub for relevant THI student links
|
A simple hub for relevant THI student links
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Use as Embed
|
||||||
|
The quicklink buttons can be embedded into external tools like this:
|
||||||
|
```html
|
||||||
|
<iframe style="width: 100%; min-height: 300px;" src="http://thi-hub.de/en/embed" scrolling="no"></iframe>
|
||||||
|
```
|
||||||
|
11
meta.php
11
meta.php
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// VERSION //
|
// VERSION //
|
||||||
static::$version = "1.0.0";
|
static::$version = "1.0.1";
|
||||||
|
|
||||||
|
|
||||||
// DEPENDENCIES //
|
// DEPENDENCIES //
|
||||||
@ -21,7 +21,12 @@
|
|||||||
|
|
||||||
// pages
|
// pages
|
||||||
static::$route["thi-hub.de"] = [
|
static::$route["thi-hub.de"] = [
|
||||||
["path" => "", "target" => "page/start"],
|
// start
|
||||||
["path" => ":lang", "target" => "page/start"],
|
["path" => "", "target" => "page/start"],
|
||||||
|
["path" => ":lang", "target" => "page/start"],
|
||||||
|
|
||||||
|
// embed
|
||||||
|
["path" => "embed", "target" => "page/embed"],
|
||||||
|
["path" => ":lang/embed", "target" => "page/embed"],
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
|
27
page/embed/index.php
Normal file
27
page/embed/index.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types = 1);
|
||||||
|
namespace Kimendisch\Thi_Hub;
|
||||||
|
use Flake\Page;
|
||||||
|
|
||||||
|
// AUTOSELECT LANGUAGE //
|
||||||
|
require("./page/lang_autoselect.php");
|
||||||
|
|
||||||
|
|
||||||
|
// PAGE INIT //
|
||||||
|
require("./page/page_base.php");
|
||||||
|
|
||||||
|
Page::title(Data::$dict->get("title"));
|
||||||
|
Page::description(Data::$dict->get("description"));
|
||||||
|
|
||||||
|
Page::robots(index: false, follow: false);
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="page-container sparse">
|
||||||
|
<div class="page">
|
||||||
|
<?php require("./page/section_quicklinks.php"); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
24
page/section_quicklinks.php
Normal file
24
page/section_quicklinks.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types = 1);
|
||||||
|
namespace Kimendisch\Thi_Hub;
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="section quicklinks">
|
||||||
|
<div class="content">
|
||||||
|
<div class="button-list">
|
||||||
|
<?php foreach(Data::$dict->get("quicklink_list") as $one_quicklink){ ?>
|
||||||
|
<a href="<?= $one_quicklink["url"] ?>" target="_blank" class="button big <?= $one_quicklink["color"] ?>">
|
||||||
|
<span class="icon big ti ti-<?= $one_quicklink["icon"] ?>"></span>
|
||||||
|
<div class="text">
|
||||||
|
<span><?= $one_quicklink["name"] ?></span>
|
||||||
|
<span class="gray-dark"><?= $one_quicklink["extra"] ?></span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -23,21 +23,7 @@
|
|||||||
|
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="section quicklinks">
|
<?php require("./page/section_quicklinks.php"); ?>
|
||||||
<div class="content">
|
|
||||||
<div class="button-list">
|
|
||||||
<?php foreach(Data::$dict->get("quicklink_list") as $one_quicklink){ ?>
|
|
||||||
<a href="<?= $one_quicklink["url"] ?>" target="_blank" class="button big <?= $one_quicklink["color"] ?>">
|
|
||||||
<span class="icon big ti ti-<?= $one_quicklink["icon"] ?>"></span>
|
|
||||||
<div class="text">
|
|
||||||
<span><?= $one_quicklink["name"] ?></span>
|
|
||||||
<span class="gray-dark"><?= $one_quicklink["extra"] ?></span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section about">
|
<div class="section about">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
@ -145,6 +145,9 @@ button:focus {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
.page-container.sparse {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
.page {
|
.page {
|
||||||
max-width: 60vw;
|
max-width: 60vw;
|
||||||
|
|
||||||
@ -156,6 +159,9 @@ button:focus {
|
|||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.page-container.sparse .page {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
@media only screen and (max-width: 1600px) {
|
@media only screen and (max-width: 1600px) {
|
||||||
.page {
|
.page {
|
||||||
max-width: 75vw;
|
max-width: 75vw;
|
||||||
|
Loading…
Reference in New Issue
Block a user