From a086cf9c7778851a8cc5a166819239c382c9cef0 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 7 Oct 2026 11:23:31 -0400 Subject: added support for discord component embed --- public/discord/downloads.json | 25 +++++++++++++++++++++++++ public/discord/history.json | 25 +++++++++++++++++++++++++ public/discord/index.json | 39 +++++++++++++++++++++++++++++++++++++++ public/logo.png | Bin 0 -> 10181 bytes public/shiftos.png | Bin 10181 -> 0 bytes src/layouts/Layout.astro | 7 +++++-- src/layouts/Page.astro | 2 +- src/pages/downloads.md | 1 + src/pages/history.md | 1 + src/pages/index.astro | 2 +- 10 files changed, 98 insertions(+), 4 deletions(-) create mode 100644 public/discord/downloads.json create mode 100644 public/discord/history.json create mode 100644 public/discord/index.json create mode 100755 public/logo.png delete mode 100755 public/shiftos.png diff --git a/public/discord/downloads.json b/public/discord/downloads.json new file mode 100644 index 0000000..3ea669c --- /dev/null +++ b/public/discord/downloads.json @@ -0,0 +1,25 @@ +{ + "component": { + "type": 17, + "accent_color": 0, + "components": [ + { + "type": 9, + "components": [ + { + "type": 10, + "content": "# ShiftOS: Downloads" + }, + { + "type": 10, + "content": "Download ShiftOS here! This contains the ShiftOS source code and ShiftOS binary files." + } + ] + } + ], + "accessory": { + "type": 11, + "media": { "url": "https://shiftos.dev/shiftos.png" } + } + } +} diff --git a/public/discord/history.json b/public/discord/history.json new file mode 100644 index 0000000..360000b --- /dev/null +++ b/public/discord/history.json @@ -0,0 +1,25 @@ +{ + "component": { + "type": 17, + "accent_color": 0, + "components": [ + { + "type": 9, + "components": [ + { + "type": 10, + "content": "# ShiftOS: History" + }, + { + "type": 10, + "content": "ShiftOS started back in November 2013 when Philip Adams wanted to make a game based on Arch Linux. He originally wanted ShiftOS to be a Linux distro based on Arch Linux but then gave up on that idea due to it not being possible, so he started his own VB.NET program instead." + } + ] + } + ], + "accessory": { + "type": 11, + "media": { "url": "https://shiftos.dev/shiftos.png" } + } + } +} diff --git a/public/discord/index.json b/public/discord/index.json new file mode 100644 index 0000000..83124dd --- /dev/null +++ b/public/discord/index.json @@ -0,0 +1,39 @@ +{ + "component": { + "type": 17, + "accent_color": 0, + "components": [ + { + "type": 9, + "components": [ + { + "type": 10, + "content": "# ShiftOS: The Archive" + }, + { + "type": 10, + "content": "ShiftOS was a game developed by Philip Adams and other developers. The original goal was to go from a bare terminal to a graphical user interface with full desktop features." + } + ] + }, + { + "type": 14, + "divider": true, + "spacing": 1 + }, + { + "type": 1, + "components": [ + { "type": 2, "style": 5, "url": "https://shiftos.dev/history", "label": "History" }, + { "type": 2, "style": 5, "url": "https://shiftos.dev/downloads", "label": "Downlaods" }, + { "type": 2, "style": 5, "url": "https://wiki.shiftos.dev", "label": "Wiki" }, + { "type": 2, "style": 5, "url": "https://www.youtube.com/@ShiftOS", "label": "Videos" } + ] + } + ], + "accessory": { + "type": 11, + "media": { "url": "https://shiftos.dev/shiftos.png" } + } + } +} diff --git a/public/logo.png b/public/logo.png new file mode 100755 index 0000000..c6235db Binary files /dev/null and b/public/logo.png differ diff --git a/public/shiftos.png b/public/shiftos.png deleted file mode 100755 index c6235db..0000000 Binary files a/public/shiftos.png and /dev/null differ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 471756c..14741bb 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -2,9 +2,10 @@ interface Props { title: string; description: string; + discord: string; } -const { title = "ShiftOS: The Archive", description } = Astro.props; +const { title = "ShiftOS: The Archive", description, discord } = Astro.props; import '../styles/style.css'; import '../styles/window.css'; --- @@ -24,9 +25,11 @@ import '../styles/window.css'; - + + + diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index 1d6573f..0580cca 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -3,7 +3,7 @@ import Layout from "../layouts/Layout.astro"; const { frontmatter } = Astro.props; --- - +
diff --git a/src/pages/downloads.md b/src/pages/downloads.md index ba7f094..12342f7 100644 --- a/src/pages/downloads.md +++ b/src/pages/downloads.md @@ -1,6 +1,7 @@ --- title: "ShiftOS: Downloads" description: Download ShiftOS here! This contains the ShiftOS source code and ShiftOS binary files. +discord: https://shiftos.dev/discord/downloads.json layout: ../layouts/Page.astro --- # Download ShiftOS here! diff --git a/src/pages/history.md b/src/pages/history.md index aa42101..5b715b0 100644 --- a/src/pages/history.md +++ b/src/pages/history.md @@ -1,6 +1,7 @@ --- title: "ShiftOS: History" description: ShiftOS started back in November 2013 when Philip Adams wanted to make a game based on Arch Linux. He originally wanted ShiftOS to be a Linux distro based on Arch Linux but then gave up on that idea due to it not being possible, so he started his own VB.NET program instead. +discord: https://shiftos.dev/discord/history.json layout: ../layouts/Page.astro --- # What was ShiftOS? diff --git a/src/pages/index.astro b/src/pages/index.astro index b156389..dfab327 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,7 +6,7 @@ import NoJSWarning from '../components/NoJSWarning.astro'; import Slideshow from '../components/Slideshow.tsx'; --- - +
-- cgit v1.2.3