mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
fix: fix images on prod build, add src path alias
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { Markdown } from "@astropub/md";
|
||||
import PluginModal from "./PluginModal.astro";
|
||||
import DeprecatedIcon from "./DeprecatedIcon.astro";
|
||||
import type { Plugin } from "../utils/types";
|
||||
import type { Plugin } from "~/utils/types";
|
||||
|
||||
type Props = Plugin;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import { Code } from "@astrojs/starlight/components";
|
||||
import { Markdown } from "@astropub/md";
|
||||
import type { Plugin } from "../utils/types";
|
||||
import type { Plugin } from "~/utils/types";
|
||||
import Modal from "./Modal.astro";
|
||||
|
||||
type Props = Plugin;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import type { Contributor } from "../utils/types";
|
||||
import type { Contributor } from "~/utils/types";
|
||||
|
||||
type Props = Contributor;
|
||||
|
||||
|
||||
@@ -16,17 +16,26 @@ And here we are!
|
||||
|
||||
# Who did our new branding?
|
||||
|
||||
import { Image } from 'astro:assets';
|
||||
import paperPrototypes from '~/assets/blog/paper-prototypes.jpg';
|
||||
import paperLogo from '~/assets/blog/paper-logo.png';
|
||||
import serenTried from '~/assets/blog/seren-tried.png';
|
||||
import sernLogo from '~/assets/logo/sern-logo.png';
|
||||
|
||||
[Ropox](https://github.com/Murtatrxx)!
|
||||
|
||||
Bro's the GOAT. This website is maintained by him, the domain costs are funded by him and also he started brainstorming how the logo would be on paper:
|
||||

|
||||
<Image src={paperPrototypes} alt="paper prototypes" />
|
||||
|
||||
And there it all clicked:
|
||||

|
||||
<Image src={paperLogo} alt="paper logo" />
|
||||
|
||||
seren tried by the way!
|
||||

|
||||
<Image src={serenTried} alt="seren tried" />
|
||||
|
||||
# Anyways, here it is:
|
||||
|
||||

|
||||
<Image src={sernLogo} alt="sern logo" />
|
||||
|
||||
Pretty nice!
|
||||
|
||||
@@ -34,7 +34,10 @@ If you do not know how to obtain either of these credentials, [click here](https
|
||||
|
||||
## Usage
|
||||
|
||||

|
||||
import { Image } from 'astro:assets';
|
||||
import sernPublish from '~/assets/docs/sern-publish.gif';
|
||||
|
||||
<Image src={sernPublish} alt="usage" />
|
||||
|
||||
## Features
|
||||
|
||||
@@ -29,7 +29,7 @@ import { ownerOnly } from '../plugins'
|
||||
|
||||
export default commandModule({
|
||||
type: CommandType.Both,
|
||||
plugins: [ownerOnly(['182326315813306368')],
|
||||
plugins: [ownerOnly(['182326315813306368'])],
|
||||
description: 'ping command',
|
||||
execute: (ctx) => {
|
||||
ctx.reply('hello, owner');
|
||||
@@ -80,7 +80,10 @@ Above, this simple plugin logs that the module has been loaded along with a time
|
||||
|
||||
## Event Plugins
|
||||
|
||||

|
||||
import { Image } from 'astro:assets';
|
||||
import eventPlugins from '~/assets/docs/event-plugins.png';
|
||||
|
||||
<Image src={eventPlugins} alt="control plugins" />
|
||||
|
||||
- An event is emitted by discord.js.
|
||||
- This event is passed to all plugins (**in order!!**),
|
||||
@@ -5,7 +5,7 @@ description: With the support of the community made plugins and a powerful CLI,
|
||||
hero:
|
||||
tagline: With the support of the community made plugins and a powerful CLI, it's more than just a handler.
|
||||
image:
|
||||
file: ../../assets/logo/sern-logo.png
|
||||
file: ~/assets/logo/sern-logo.png
|
||||
actions:
|
||||
- text: <b>npm create @sern/bot</b>
|
||||
link: /guide/walkthrough/new-project
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
---
|
||||
import type { Props } from "@astrojs/starlight/props";
|
||||
import DefaultHead from "@astrojs/starlight/components/Head.astro";
|
||||
|
||||
const logo = new URL("/sern-logo.png", Astro.url);
|
||||
---
|
||||
|
||||
<DefaultHead {...Astro.props}><slot /></DefaultHead>
|
||||
@@ -14,7 +12,7 @@ const logo = new URL("/sern-logo.png", Astro.url);
|
||||
<meta property="og:url" content="https://sern.dev" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image:alt" content="sern logo" />
|
||||
<meta property="og:image" content={logo} />
|
||||
<meta property="og:image" content="/sern-logo.png" />
|
||||
<meta property="og:image:height" content="512" />
|
||||
<meta property="og:image:width" content="1024" />
|
||||
<meta name="theme-color" content="#F25186" />
|
||||
@@ -27,6 +25,6 @@ const logo = new URL("/sern-logo.png", Astro.url);
|
||||
name="twitter:description"
|
||||
content="A modular, customizable, fast Discord.js framework to streamline bot development"
|
||||
/>
|
||||
<meta name="twitter:image" content={logo} />
|
||||
<meta name="twitter:image" content="/sern-logo.png" />
|
||||
<meta name="twitter:url" content="https://sern.dev" />
|
||||
<meta property="twitter:site" content="@sern-handler" />
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
|
||||
import { CardGrid } from "@astrojs/starlight/components";
|
||||
import { z } from "astro/zod";
|
||||
import PluginCard from "../components/PluginCard.astro";
|
||||
import { PluginSchema } from "../utils/types";
|
||||
import { zodFetch } from "../utils/fetch";
|
||||
import PluginCard from "~/components/PluginCard.astro";
|
||||
import { PluginSchema } from "~/utils/types";
|
||||
import { zodFetch } from "~/utils/fetch";
|
||||
|
||||
const pluginResponse = await zodFetch(
|
||||
z.array(PluginSchema),
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
|
||||
import { z } from "astro/zod";
|
||||
import SponsorCard from "../components/SponsorCard.astro";
|
||||
import { zodFetch } from "../utils/fetch";
|
||||
import { OpenCollectiveAccountSchema } from "../utils/types";
|
||||
import SponsorCard from "~/components/SponsorCard.astro";
|
||||
import { zodFetch } from "~/utils/fetch";
|
||||
import { OpenCollectiveAccountSchema } from "~/utils/types";
|
||||
|
||||
const sponsorResponse = await zodFetch(
|
||||
z.object({
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"exclude": ["sern-handler"]
|
||||
"exclude": [
|
||||
"sern-handler"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": [
|
||||
"src/*"
|
||||
]
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user