Skip to content

Commit 3a42482

Browse files
Merge pull request #395 from basementstudio/revert-394-canary
Revert "Website Polish & content"
2 parents c82b509 + 8864a69 commit 3a42482

File tree

76 files changed

+301
-1092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+301
-1092
lines changed

apps/website/.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,4 @@ yarn-error.log*
4141
next-env.d.ts
4242
.env*.local
4343
xmcp-adapter
44-
/.source/
45-
# xmcp
46-
.xmcp
47-
xmcp-env.d.ts
44+
/.source/

apps/website/app/api/og/[...path]/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export async function GET(
269269
<div
270270
style={{
271271
position: "absolute",
272-
bottom: "108px",
272+
bottom: "64px",
273273
left: "64px",
274274
right: "64px",
275275
display: "flex",

apps/website/app/blog/[...slug]/page.tsx

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,25 @@
1-
import { blogSource } from "@/lib/source";
1+
import { blogSource } from "../../../lib/source";
22
import { DocsBody, DocsTitle } from "@/components/layout/page";
33
import { notFound } from "next/navigation";
44
import { getMDXComponents } from "@/components/mdx-components";
55
import type { Metadata } from "next";
66
import { createRelativeLink } from "fumadocs-ui/mdx";
77
import { CodeBlock } from "@/components/codeblock";
88
import { BlogPage } from "@/components/layout/blog";
9-
import { getBlogMetadata, resolveAuthors } from "@/utils/blog";
10-
import { PostAuthors } from "@/components/blog/post-authors";
9+
import { getBlogMetadata } from "@/utils/blog";
1110
import { getBaseUrl } from "@/lib/base-url";
1211

1312
export default async function Page(props: PageProps<"/blog/[...slug]">) {
1413
const params = await props.params;
1514
const page = blogSource.getPage(params.slug);
1615
if (!page) notFound();
1716

18-
const slug = Array.isArray(params.slug) ? params.slug.join("/") : params.slug;
1917
const MDX = page.data.body;
20-
const authors = resolveAuthors(page.data.authors);
2118

2219
return (
23-
<BlogPage toc={page.data.toc} slug={slug}>
24-
<div className="flex flex-col gap-4">
25-
{page.data.date && (
26-
<time
27-
dateTime={page.data.date}
28-
className="text-xs uppercase tracking-wide text-brand-neutral-50"
29-
>
30-
{new Date(page.data.date).toLocaleDateString("en-US", {
31-
month: "short",
32-
day: "numeric",
33-
year: "numeric",
34-
})}
35-
</time>
36-
)}
37-
<DocsTitle>{page.data.title}</DocsTitle>
38-
{page.data.description && (
39-
<p className="text-base text-brand-neutral-50 max-w-3xl pb-1">
40-
{page.data.description}
41-
</p>
42-
)}
43-
<PostAuthors authors={authors} />
44-
</div>
45-
<DocsBody className="w-full border-t border-white/20 pt-4">
20+
<BlogPage toc={page.data.toc}>
21+
<DocsTitle>{page.data.title}</DocsTitle>
22+
<DocsBody className="w-full">
4623
<MDX
4724
components={getMDXComponents({
4825
// this allows you to link to other pages with relative file paths

apps/website/app/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
2020
if (!page) notFound();
2121

2222
const MDX = page.data.body;
23-
const displayTitle =
24-
(page.data as { displayTitle?: string })?.displayTitle || page.data.title;
2523

2624
return (
2725
<DocsPage
2826
toc={page.data.toc}
2927
pageActions={<PageActions markdownUrl={`${page.url}.mdx`} />}
3028
>
31-
<DocsTitle>{displayTitle}</DocsTitle>
29+
<DocsTitle>{page.data.title}</DocsTitle>
3230
<DocsDescription>{page.data.description}</DocsDescription>
3331
<DocsBody className="border-t border-white/20 pt-4">
3432
<MDX

apps/website/app/mcp/route.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

apps/website/components/blog/copy-url.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

apps/website/components/blog/hero.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@ export function BlogHero({ featuredPost }: BlogHeroProps) {
1313
return (
1414
<Link href={`/blog/${featuredPost.slug}`} className="block col-span-12">
1515
<section className="relative group overflow-visible mb-2">
16-
<div className="relative border border-brand-neutral-500 group-hover:border-brand-neutral-300 transition-colors duration-200 w-full flex flex-col md:flex-row">
17-
<div className="w-full md:w-1/2 md:border-r border-brand-neutral-500 overflow-hidden mb-4 md:mb-0 group-hover:border-brand-neutral-300 transition-colors duration-200 relative aspect-video">
16+
<div className="relative border border-brand-neutral-500 group-hover:border-brand-neutral-300 w-full flex flex-col md:flex-row">
17+
<div className="w-full md:w-1/2 md:border-r border-brand-neutral-500 overflow-hidden mb-4 md:mb-0 group-hover:border-brand-neutral-300">
1818
{image ? (
1919
<Image
2020
src={image}
2121
alt={featuredPost.title}
22-
fill
22+
width={0}
23+
height={0}
2324
sizes="(max-width: 768px) 100vw, 50vw"
24-
className="object-cover"
25+
className="w-full h-auto"
2526
/>
2627
) : (
27-
<div className="w-full h-full flex items-center justify-center text-brand-neutral-200 text-sm">
28+
<div className="w-full aspect-video flex items-center justify-center text-brand-neutral-200 text-sm">
2829
No preview image
2930
</div>
3031
)}

apps/website/components/blog/post-authors.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

apps/website/components/home/blog/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ export const BlogCard = ({ post }: { post: BlogPost }) => {
4444
post.textureImage ||
4545
TEXTURE_IMAGES[
4646
Math.abs(
47-
Array.from(post.slug).reduce(
48-
(hash, char) => hash + char.charCodeAt(0),
49-
0
50-
)
47+
Array.from(post.slug).reduce((hash, char) => hash + char.charCodeAt(0), 0)
5148
) % TEXTURE_IMAGES.length
5249
];
5350

0 commit comments

Comments
 (0)