Skip to content

Commit 2fefe8c

Browse files
committed
fix: stuff and patreon designs + bound by conviction SRD
1 parent 71dcae4 commit 2fefe8c

18 files changed

Lines changed: 867 additions & 190 deletions

File tree

src/components/client/MDX/MDX.tsx

Lines changed: 16 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ import { MDXStack } from "./mdx-components/ui/MDXStack";
2222

2323
export const TEXT_CLASSES = "text-[1.2rem] leading-[1.5em] tracking-normal";
2424

25-
export function MDXWrapper(props: { children: React.ReactNode }) {
26-
return (
27-
<div className="prose prose-base md:prose-lg lg:prose-xl dark:prose-invert w-full max-w-full">
28-
{props.children}
29-
</div>
30-
);
25+
const proseClassName = `
26+
prose prose-base md:prose-lg lg:prose-xl dark:prose-invert
27+
w-full max-w-full
28+
[&_h1>a]:font-bold
29+
[&_h2>a]:font-bold
30+
[&_h3>a]:font-bold
31+
[&_h4>a]:font-bold
32+
[&_h5>a]:font-bold
33+
[&_h6>a]:font-bold
34+
`;
35+
36+
export function MDXProseWrapper(props: { children: React.ReactNode }) {
37+
return <div className={proseClassName}>{props.children}</div>;
3138
}
32-
export function MDXSheetWrapper(props: { children: React.ReactNode }) {
33-
return (
34-
<div className="prose prose-base md:prose-lg lg:prose-xl dark:prose-invert w-full max-w-full">
35-
{props.children}
36-
</div>
37-
);
39+
export function MDXProseSheetWrapper(props: { children: React.ReactNode }) {
40+
return <div className={proseClassName}>{props.children}</div>;
3841
}
3942

4043
export function Fields(props: { children: React.ReactNode }) {
@@ -241,18 +244,6 @@ function MDXH6(props: UI.HeadingProps) {
241244
);
242245
}
243246

244-
function MDXA(props: any) {
245-
return (
246-
<UI.Link
247-
data-mdx-type="a"
248-
weight={"medium"}
249-
underline="always"
250-
{...props}
251-
className={clsx(props.className, TEXT_CLASSES)}
252-
/>
253-
);
254-
}
255-
256247
function MDXBlockquote(props: any) {
257248
return (
258249
<UI.Blockquote
@@ -263,88 +254,11 @@ function MDXBlockquote(props: any) {
263254
}}
264255
{...props}
265256
>
266-
<MDXWrapper>{props.children}</MDXWrapper>
257+
<MDXProseWrapper>{props.children}</MDXProseWrapper>
267258
</UI.Blockquote>
268259
);
269260
}
270261

271-
function MDXEm(props: any) {
272-
return (
273-
<UI.Em
274-
data-mdx-type="em"
275-
{...props}
276-
className={clsx(props.className, TEXT_CLASSES)}
277-
/>
278-
);
279-
}
280-
281-
function MDXStrong(props: any) {
282-
return (
283-
<UI.Strong
284-
data-mdx-type="strong"
285-
{...props}
286-
className={clsx(props.className, TEXT_CLASSES)}
287-
/>
288-
);
289-
}
290-
291-
function MDXPre(props: any) {
292-
return (
293-
<UI.Card>
294-
<pre
295-
data-mdx-type="pre"
296-
{...props}
297-
className={clsx(
298-
props.className,
299-
"p-2",
300-
TEXT_CLASSES,
301-
"whitespace-pre-wrap",
302-
)}
303-
/>
304-
</UI.Card>
305-
);
306-
}
307-
308-
function MDXUl(props: any) {
309-
return (
310-
<ul
311-
data-mdx-type="ul"
312-
{...props}
313-
className={clsx(props.className, "list-disc")}
314-
/>
315-
);
316-
}
317-
318-
function MDXOl(props: any) {
319-
return (
320-
<ol
321-
data-mdx-type="ol"
322-
{...props}
323-
className={clsx(props.className, "list-decimal")}
324-
/>
325-
);
326-
}
327-
328-
function MDXLi(props: any) {
329-
return (
330-
<li
331-
data-mdx-type="li"
332-
{...props}
333-
className={clsx(props.className, "ml-4")}
334-
/>
335-
);
336-
}
337-
338-
function MDXCode(props: any) {
339-
return (
340-
<code
341-
data-mdx-type="code"
342-
{...props}
343-
className={clsx(props.className, TEXT_CLASSES)}
344-
/>
345-
);
346-
}
347-
348262
export function MDXP(props: any) {
349263
return (
350264
<UI.Text
@@ -356,27 +270,3 @@ export function MDXP(props: any) {
356270
/>
357271
);
358272
}
359-
360-
function MDXTable(props: any) {
361-
return <UI.Table.Root data-mdx-type="table" variant="surface" {...props} />;
362-
}
363-
364-
function MDXTHead(props: any) {
365-
return <UI.Table.Header data-mdx-type="thead" {...props} />;
366-
}
367-
368-
function MDXTBody(props: any) {
369-
return <UI.Table.Body data-mdx-type="tbody" {...props} />;
370-
}
371-
372-
function MDXTr(props: any) {
373-
return <UI.Table.Row data-mdx-type="tr" {...props} />;
374-
}
375-
376-
function MDXTh(props: any) {
377-
return <UI.Table.ColumnHeaderCell data-mdx-type="th" {...props} />;
378-
}
379-
380-
function MDXTd(props: any) {
381-
return <UI.Table.Cell data-mdx-type="td" {...props} />;
382-
}

src/components/server/Footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function Footer(props: {
152152
</Link>
153153
</Text>
154154
</div>
155-
{renderThemeToggleButton()}
155+
<div>{renderThemeToggleButton()}</div>
156156
</div>
157157
</UI.Container>
158158
</Theme>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
name: W.H. Arthur
3+
---

src/content/resources/bastionland-press/mark-of-the-odd/es.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ Continúe leyendo para obtener la información completa sobre licencias y SRD.
2727
2828
# Licencia
2929

30-
![](/catalog/creators/bastionland-press/mark-of-the-odd/logos/mark-of-the-odd.jpg)
31-
3230
¿Quieres utilizar las reglas de _Into the Odd_ en tu propio juego o módulo de aventura?
3331

3432
Puedes añadirle la _Mark of the odd_ a lo que hagas, solo ten en cuenta las siguientes directrices:

src/content/resources/bastionland-press/mark-of-the-odd/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ Continue for the full licensing info and SRD.
2626
2727
# Licence
2828

29-
![](/catalog/creators/bastionland-press/mark-of-the-odd/logos/mark-of-the-odd.jpg)
30-
3129
Want to use Into the Odd as a base for your game or module?
3230

3331
Anybody can give their game the Mark of the Odd by adhering to these guidelines:

src/content/resources/bastionland-press/mark-of-the-odd/it.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ Traduzione a cura di **Simone Peruzzi**, basata sull'edizione italiana di _Into
2828

2929
# Licenza
3030

31-
![](/catalog/creators/bastionland-press/mark-of-the-odd/logos/mark-of-the-odd.jpg)
32-
3331
Vuoi usare _Into the Odd_ come base per il tuo gioco o per la tua avventura?
3432

3533
Chiunque può assegnare al proprio gioco il **Mark of the Odd** ("Marchio del Bizzarro") attenendosi alle seguenti linee guida:

src/content/resources/bastionland-press/mark-of-the-odd/ua.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ links:
2626
2727
# Licence
2828

29-
![](/catalog/creators/bastionland-press/mark-of-the-odd/logos/mark-of-the-odd.jpg)
30-
3129
Хочете використати Into the Odd як базу для своєї гри або модуля?
3230

3331
Кожен може дати своїй грі Знак Дивини (Mark of the Odd) дотримуючись наступних правил:
143 KB
Loading

0 commit comments

Comments
 (0)