From 2f3fda9d576506e04a0de040d5b0ce7d2cd1e841 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Fri, 7 Jun 2024 11:28:06 +0200 Subject: [PATCH 1/4] :sparkles: quicklinks embed --- meta.php | 9 +++++++-- page/embed/index.php | 27 +++++++++++++++++++++++++++ page/section_quicklinks.php | 24 ++++++++++++++++++++++++ page/start/index.php | 16 +--------------- page/style.css | 3 +++ 5 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 page/embed/index.php create mode 100644 page/section_quicklinks.php diff --git a/meta.php b/meta.php index 3138396..395f7a2 100644 --- a/meta.php +++ b/meta.php @@ -21,7 +21,12 @@ // pages static::$route["thi-hub.de"] = [ - ["path" => "", "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..71e5faf 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; From e6116e41c3f2432e6b2bdf1c94c52d608b3dd926 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Fri, 7 Jun 2024 11:51:27 +0200 Subject: [PATCH 2/4] :memo: document embed usage --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + +``` From 9a4d003b618a633905056c0d7edb81fee6ffa186 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Fri, 7 Jun 2024 11:54:17 +0200 Subject: [PATCH 3/4] :lipstick: reduce outer page padding --- page/style.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/page/style.css b/page/style.css index 71e5faf..8eeeace 100644 --- a/page/style.css +++ b/page/style.css @@ -159,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; From 0aeb867502d4dd992eff1946dc48f1e0ffb31b49 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Fri, 7 Jun 2024 11:54:43 +0200 Subject: [PATCH 4/4] :bookmark: bump version to v1.0.1 --- meta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.php b/meta.php index 395f7a2..983375d 100644 --- a/meta.php +++ b/meta.php @@ -1,6 +1,6 @@