mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
build(website): build site from db data
This commit is contained in:
@@ -48,18 +48,18 @@ export function Alert({ title, type, children }: PropsWithChildren<IAlert>) {
|
||||
const { text, border, icon } = resolveType(type);
|
||||
|
||||
return (
|
||||
<div className="mt-6 mb-4">
|
||||
<div className="mb-4 mt-6">
|
||||
<div className="relative flex">
|
||||
<div className="p-4">{children}</div>
|
||||
<div className="pointer-events-none absolute flex h-full w-full">
|
||||
<div className={`rounded-tl-1.5 rounded-bl-1.5 w-4 shrink-0 border-t-2 border-b-2 border-l-2 ${border}`} />
|
||||
<div className={`rounded-tl-1.5 rounded-bl-1.5 w-4 shrink-0 border-b-2 border-l-2 border-t-2 ${border}`} />
|
||||
<div className={`relative border-b-2 ${border}`}>
|
||||
<div className={`-translate-y-50% pointer-events-auto flex place-items-center gap-2 px-2 ${text}`}>
|
||||
{icon}
|
||||
<span className={`font-semibold ${text}`}>{title}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div className={`rounded-tr-1.5 rounded-br-1.5 flex-1 border-t-2 border-b-2 border-r-2 ${border}`} />
|
||||
<div className={`rounded-tr-1.5 rounded-br-1.5 flex-1 border-b-2 border-r-2 border-t-2 ${border}`} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@ export function DiscordMessageBaseReply({
|
||||
}: PropsWithChildren<{ author?: IDiscordMessageAuthorReply | undefined; authorNode?: ReactNode | undefined }>) {
|
||||
return (
|
||||
<div
|
||||
className="before:rounded-tl-1.5 relative mb-1 flex place-items-center before:absolute before:left-[-36px] before:right-full before:top-[50%] before:bottom-0 before:mr-1 before:block before:border-l-2 before:border-t-2 before:border-[rgb(79_84_92)] before:content-none"
|
||||
className="before:rounded-tl-1.5 relative mb-1 flex place-items-center before:absolute before:bottom-0 before:left-[-36px] before:right-full before:top-[50%] before:mr-1 before:block before:border-l-2 before:border-t-2 before:border-[rgb(79_84_92)] before:content-none"
|
||||
id="reply-wrapper"
|
||||
>
|
||||
<div className="flex place-items-center [&>span]:opacity-60">
|
||||
|
||||
@@ -25,7 +25,7 @@ export function DiscordMessageEmbed({
|
||||
<div className="py-0.5" id="outer-embed-wrapper">
|
||||
<div className="border-l-blurple grid max-w-max rounded border-l-4 bg-[rgb(47_49_54)]" id="embed-wrapper">
|
||||
<div className="max-w-128">
|
||||
<div className="pt-2 pr-4 pb-4 pl-3">
|
||||
<div className="pb-4 pl-3 pr-4 pt-2">
|
||||
{author ? <DiscordMessageEmbedAuthor {...author} /> : authorNode ?? null}
|
||||
{title ? <DiscordMessageEmbedTitle {...title} /> : titleNode ?? null}
|
||||
{children ? <div className="mt-2 text-sm">{children}</div> : null}
|
||||
|
||||
Reference in New Issue
Block a user