From 5595ab76a38202150e2f9db8ec460f0e30b245d1 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 15 Nov 2023 19:04:22 +0100 Subject: [PATCH] feat: add iframe support --- iframe-sega.php | 43 +++++++++++++++++++++++++++++++++++++++++++ iframe-sonic.php | 43 +++++++++++++++++++++++++++++++++++++++++++ iframe.css | 29 +++++++++++++++++++++++++++++ index.php | 24 +++++++++++++++++------- 4 files changed, 132 insertions(+), 7 deletions(-) create mode 100644 iframe-sega.php create mode 100644 iframe-sonic.php create mode 100644 iframe.css diff --git a/iframe-sega.php b/iframe-sega.php new file mode 100644 index 0000000..6ebf826 --- /dev/null +++ b/iframe-sega.php @@ -0,0 +1,43 @@ + + + + + + + + + Press Garden Zone + + + + +
+ + item as $item): ?> + + + + + +
+ + diff --git a/iframe-sonic.php b/iframe-sonic.php new file mode 100644 index 0000000..95b93f6 --- /dev/null +++ b/iframe-sonic.php @@ -0,0 +1,43 @@ + + + + + + + + + Press Garden Zone + + + + +
+ + item as $item): ?> + + + + + +
+ + diff --git a/iframe.css b/iframe.css new file mode 100644 index 0000000..e4301c3 --- /dev/null +++ b/iframe.css @@ -0,0 +1,29 @@ +body { + font-family: Inter, Cantarell, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + margin:0; + padding:0; +} + +article { + display: flex; + justify-content: space-between; + padding: 3px; + background-color: rgba(0,0,255,0.08); + border-radius: 4px; +} + +article:not(:first-child) { + margin-top: 3px; +} + +article div:first-child { + text-overflow: ellipsis; + overflow: hidden; + white-space:nowrap; +} + +article div:last-child { + width:120px; + min-width: 120px; + text-align: right; +} \ No newline at end of file diff --git a/index.php b/index.php index 738cfb2..cb5cf28 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,11 @@ $rssSonic = Feed::loadRss('https://shaarli.kazhnuz.space/feed/rss?&searchtags=Sonic'); $rssSEGA = Feed::loadRss('https://shaarli.kazhnuz.space/feed/rss?&searchtags=SEGA'); + + $showSEGA = false; + if ($_GET != null && $_GET["show"] == "sega") { + $showSEGA = true; + } ?> @@ -30,33 +35,38 @@

Press Garden Zone

-
+
class="shown" id="section-sonic"> item as $item): ?> - -
-
+
class="shown" id="section-sega"> + item as $item): ?> -