diff options
| author | Andrew Lee <andrew@alee14.me> | 2026-10-07 11:23:31 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2026-10-07 11:23:31 -0400 |
| commit | a086cf9c7778851a8cc5a166819239c382c9cef0 (patch) | |
| tree | 09cd0883dd6895792789171823d5e6c26342bf3f | |
| parent | 83c51d8d98111cde12a419544c8e2d61b804c85f (diff) | |
| download | shiftos-archive-website-a086cf9c7778851a8cc5a166819239c382c9cef0.tar.gz shiftos-archive-website-a086cf9c7778851a8cc5a166819239c382c9cef0.tar.bz2 shiftos-archive-website-a086cf9c7778851a8cc5a166819239c382c9cef0.zip | |
added support for discord component embed
| -rw-r--r-- | public/discord/downloads.json | 25 | ||||
| -rw-r--r-- | public/discord/history.json | 25 | ||||
| -rw-r--r-- | public/discord/index.json | 39 | ||||
| -rwxr-xr-x | public/logo.png (renamed from public/shiftos.png) | bin | 10181 -> 10181 bytes | |||
| -rw-r--r-- | src/layouts/Layout.astro | 7 | ||||
| -rw-r--r-- | src/layouts/Page.astro | 2 | ||||
| -rw-r--r-- | src/pages/downloads.md | 1 | ||||
| -rw-r--r-- | src/pages/history.md | 1 | ||||
| -rw-r--r-- | src/pages/index.astro | 2 |
9 files changed, 98 insertions, 4 deletions
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/shiftos.png b/public/logo.png Binary files differindex c6235db..c6235db 100755 --- a/public/shiftos.png +++ b/public/logo.png 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'; <!-- Open Graph Metadata --> <meta property="og:title" content={title} /> <meta property="og:description" content={description} /> - <meta property="og:image" content="https://shiftos.dev/shiftos.png" /> + <meta property="og:image" content="https://shiftos.dev/logo.png" /> <meta property="og:type" content="website" /> + <link rel="discord:component-embed" type="application/json" href={discord} /> + <meta name="theme-color" content="#000000"/> <meta name="generator" content={Astro.generator} /> 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; --- -<Layout title={frontmatter.title} description={frontmatter.description}> +<Layout title={frontmatter.title} description={frontmatter.description} discord={frontmatter.discord}> <div class="window-container"> <div class="window"> <div class="titlebar"> 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'; --- -<Layout title="ShiftOS: The Archive" description="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."> +<Layout title="ShiftOS: The Archive" description="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." discord="https://shiftos.dev/discord/index.json"> <div class="center"> <Image src={logo} alt="ShiftOS Logo" class="logo" width={logo.width} height={logo.height} /> <NoJSWarning /> |
