Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

styles: responsive and fix mdx video (#132)

Neil Kanakia12626f1a7292
diff --git a/apps/website/src/app/page.tsx b/apps/website/src/app/page.tsx
index 0ccc30ca7c..c00f8e195d 100644
--- a/apps/website/src/app/page.tsx
+++ b/apps/website/src/app/page.tsx
@@ -26,7 +26,7 @@ export default function Page() {
function Hero() {
return (
<>
- <div className="my-12 flex flex-col space-y-8 max-w-2xl mx-auto text-center">
+ <div className="my-24 sm:my-12 flex flex-col space-y-8 max-w-2xl mx-auto text-center">
<p className="text-center mb-4">
<Button
className="border-border rounded-full"
diff --git a/apps/website/src/app/updates/[slug]/page.tsx b/apps/website/src/app/updates/[slug]/page.tsx
index 4218ff4526..fae238bc0c 100644
--- a/apps/website/src/app/updates/[slug]/page.tsx
+++ b/apps/website/src/app/updates/[slug]/page.tsx
@@ -25,15 +25,15 @@ export default function Page({
</h2>
{post.metadata.image ? (
post.metadata.link ? (
- <iframe
- width="640"
- height="360"
- src={post.metadata.link}
- title="youtube video player"
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
- referrerPolicy="strict-origin-when-cross-origin"
- allowFullScreen
- />
+ <Link href={post.metadata.link}>
+ <Image
+ src={post.metadata.image}
+ alt={post.metadata.title}
+ width={680}
+ height={442}
+ className="my-8 cusor-pointer"
+ />
+ </Link>
) : (
<Image
src={post.metadata.image}
diff --git a/apps/website/src/app/updates/page.tsx b/apps/website/src/app/updates/page.tsx
index 87bca27573..dbd6b30a2b 100644
--- a/apps/website/src/app/updates/page.tsx
+++ b/apps/website/src/app/updates/page.tsx
@@ -54,6 +54,7 @@ type ArticleProps = {
title: string;
image?: string;
publishedAt?: string;
+ link?: string;
};
content: string;
};
@@ -78,15 +79,26 @@ export function Article({ data }: ArticleProps) {
<h2 className="font-medium text-3xl ">{data.metadata.title}</h2>
<div className="text-muted-foreground">{formattedDate}</div>
</Link>
- {data.metadata.image && (
- <Image
- src={data.metadata.image}
- alt={data.metadata.title}
- width={680}
- height={442}
- className="my-8"
- />
- )}
+ {data.metadata.image &&
+ (data.metadata.link ? (
+ <Link href={data.metadata.link}>
+ <Image
+ src={data.metadata.image}
+ alt={data.metadata.title}
+ width={680}
+ height={442}
+ className="my-8 cusor-pointer"
+ />
+ </Link>
+ ) : (
+ <Image
+ src={data.metadata.image}
+ alt={data.metadata.title}
+ width={680}
+ height={442}
+ className="my-8"
+ />
+ ))}
<div>
<div className="prose prose-lg dark:prose-invert">
<MDXRemote source={data.content} />
diff --git a/apps/website/src/app/updates/posts/manufacturing-data-problem.mdx b/apps/website/src/app/updates/posts/manufacturing-data-problem.mdx
index a2b52d0347..75f4f796e6 100644
--- a/apps/website/src/app/updates/posts/manufacturing-data-problem.mdx
+++ b/apps/website/src/app/updates/posts/manufacturing-data-problem.mdx
@@ -4,7 +4,7 @@ publishedAt: "2024-04-22"
summary: ""
tag: "Design"
image: "/material-problem.jpg"
-link: "https://www.youtube.com/embed/rpx6giq9nyq?si=cvc05yjg2jurjyq4"
+link: "https://www.youtube.com/watch?v=RPx6giq9nYQ"
---
On a scale of 1 to 10, how messy is your materials database in your ERP?
diff --git a/apps/website/src/components/ContactForm.tsx b/apps/website/src/components/ContactForm.tsx
index c26e2a0f3c..a0278f7e9a 100644
--- a/apps/website/src/components/ContactForm.tsx
+++ b/apps/website/src/components/ContactForm.tsx
@@ -44,7 +44,7 @@ export default function ContactForm() {
<Form {...form}>
<form
onSubmit={form.handleSubmit(handleSubmit)}
- className="flex space-x-2 items-start"
+ className="flex sm:flex-row flex-col space-x-2 space-y-2 items-center"
>
<FormField
control={form.control}