diff --git a/README.md b/README.md index 4eb31eb..978753a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # www.thi-hub.de A simple hub for relevant THI student links + + + +### Use as Embed +The quicklink buttons can be embedded into external tools like this: +```html + +``` diff --git a/meta.php b/meta.php index 3138396..983375d 100644 --- a/meta.php +++ b/meta.php @@ -1,6 +1,6 @@ "", "target" => "page/start"], - ["path" => ":lang", "target" => "page/start"], + // start + ["path" => "", "target" => "page/start"], + ["path" => ":lang", "target" => "page/start"], + + // embed + ["path" => "embed", "target" => "page/embed"], + ["path" => ":lang/embed", "target" => "page/embed"], ]; ?> diff --git a/page/embed/index.php b/page/embed/index.php new file mode 100644 index 0000000..b460655 --- /dev/null +++ b/page/embed/index.php @@ -0,0 +1,27 @@ +get("title")); + Page::description(Data::$dict->get("description")); + + Page::robots(index: false, follow: false); +?> + + + + + +
+
+ +
+
diff --git a/page/section_quicklinks.php b/page/section_quicklinks.php new file mode 100644 index 0000000..5d40929 --- /dev/null +++ b/page/section_quicklinks.php @@ -0,0 +1,24 @@ + + + + + + + diff --git a/page/start/index.php b/page/start/index.php index 48f1ec0..383fc64 100644 --- a/page/start/index.php +++ b/page/start/index.php @@ -23,21 +23,7 @@
- +
diff --git a/page/style.css b/page/style.css index 6ea50fa..8eeeace 100644 --- a/page/style.css +++ b/page/style.css @@ -145,6 +145,9 @@ button:focus { align-items: center; justify-content: flex-start; } +.page-container.sparse { + justify-content: center; +} .page { max-width: 60vw; @@ -156,6 +159,9 @@ button:focus { text-align: center; } +.page-container.sparse .page { + padding: 2rem; +} @media only screen and (max-width: 1600px) { .page { max-width: 75vw;