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.

style: update mobile styles for website (#134)

Brad Barbin3ec5346a7a74
diff --git a/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx b/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
index 2b5827ba6d..81c3f0343c 100644
--- a/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
+++ b/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
@@ -14,7 +14,7 @@ const HelpMenu = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<IconButton
- className="hidden sm:block"
+ className="hidden sm:flex"
aria-label="Help"
icon={<BiHelpCircle />}
variant="ghost"
diff --git a/apps/website/src/app/page.tsx b/apps/website/src/app/page.tsx
index 218310143e..2c10532850 100644
--- a/apps/website/src/app/page.tsx
+++ b/apps/website/src/app/page.tsx
@@ -1,7 +1,6 @@
"use client";
import ContactForm from "@/components/ContactForm";
-import { MobileTabs } from "@/components/MobileTabs";
import { Tabs } from "@/components/Tabs";
import { Button, cn } from "@carbon/react";
import Image from "next/image";
@@ -123,69 +122,11 @@ function ProductViews() {
content: <ImageContainer imagePath={"/carbon-dark-mode-documents.jpg"} />,
},
];
- const mobileTabs = [
- {
- id: 0,
- title: "Manufacturing",
- description:
- "Infinitely nestable, infinitely customizable bill of materials",
- content: (
- <Image
- src="/carbon-dark-mode-manufacturing.jpg"
- className="rounded"
- width={1209}
- height={903}
- alt={""}
- />
- ),
- },
- {
- id: 1,
- title: "Manufacturing",
- content: (
- <Image
- src="/carbon-dark-mode-accounting.jpg"
- width={1209}
- height={903}
- alt={""}
- />
- ),
- },
- {
- id: 2,
- title: "Search",
- content: (
- <Image
- src="/carbon-dark-mode-search.jpg"
- width={1209}
- height={903}
- alt={""}
- />
- ),
- },
- {
- id: 3,
- title: "Permissions",
- content: (
- <Image
- src="/carbon-dark-mode-permissions.jpg"
- width={1209}
- height={903}
- alt={""}
- />
- ),
- },
- ];
return (
- <>
- <div className="h-[20rem] md:h-[40rem] [perspective:1000px] relative b flex-col max-w-5xl mx-auto w-full items-start justify-start my-40 hidden md:flex">
- <Tabs tabs={tabs} />
- </div>
- <div className="flex sm:hidden mx-auto">
- <MobileTabs items={mobileTabs} />
- </div>
- </>
+ <div className="h-[20rem] md:h-[40rem] [perspective:1000px] relative b flex-col max-w-5xl mx-auto w-full items-start justify-start my-40 hidden md:flex">
+ <Tabs tabs={tabs} />
+ </div>
);
}
@@ -260,11 +201,14 @@ function OpenCore() {
{features.map(({ icon: Icon, ...feature }, i) => (
<div
className={cn(
- "row-span-1 group/bento items-start p-8 space-y-4 bg-black/[0.03] dark:bg-zinc-900 round transition-all duration-300 ease-in-out rounded-lg shadow group ring-2 ring-transparent hover:ring-white/10 cursor-pointer text-left"
+ "row-span-1 group/bento items-start p-8 space-y-4 bg-black/[0.03] dark:bg-zinc-900 round transition-all duration-300 ease-in-out rounded-lg shadow group ring-2 ring-transparent hover:ring-white/10 text-left"
)}
key={feature.name.split(" ").join("-")}
>
- <Icon className="text-primary w-10 h-10" aria-hidden="true" />
+ <Icon
+ className="text-primary dark:text-zinc-900 w-10 h-10 dark:p-2 dark:bg-[#3ECF8E] rounded-full glow-green"
+ aria-hidden="true"
+ />
<h2 className="font-semibold text-foreground text-xl md:text-2xl lg:text-3xl tracking-tight">
{feature.name}
</h2>
diff --git a/apps/website/src/components/ContactForm.tsx b/apps/website/src/components/ContactForm.tsx
index b07182103e..49634da3ca 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 sm:flex-row flex-col space-x-2 items-start"
+ className="flex sm:flex-row flex-col gap-2 sm:items-start items-center"
>
<FormField
control={form.control}
@@ -53,7 +53,7 @@ export default function ContactForm() {
<FormItem>
<FormControl>
<Input
- className="border-border"
+ className="border-border w-full sm:w-fit"
size="lg"
type="email"
placeholder="Company email"
@@ -64,7 +64,7 @@ export default function ContactForm() {
</FormItem>
)}
/>
- <Button size="lg" type="submit">
+ <Button size="lg" className="w-full sm:w-fit" type="submit">
Subscribe
</Button>
</form>
diff --git a/apps/website/src/styles/tailwind.css b/apps/website/src/styles/tailwind.css
index e79b1e510f..f785413d91 100644
--- a/apps/website/src/styles/tailwind.css
+++ b/apps/website/src/styles/tailwind.css
@@ -111,7 +111,7 @@
#02fcf1,
#02defc,
#0fc576,
- #15c892,
+ #3ecf8e,
#02fcb1
);
z-index: -1;
@@ -124,3 +124,7 @@
transparent 200px
);
}
+
+.dark .glow-green {
+ box-shadow: 0 0 40px -3px #3ecf8e;
+}