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.

docs: remove www directory

Brad Barbin43dcee05ddd6
diff --git a/www/components/Home/Home.tsx b/www/components/Home/Home.tsx
deleted file mode 100644
index d3f9d4077f..0000000000
--- a/www/components/Home/Home.tsx
+++ /dev/null
@@ -1,130 +0,0 @@
-"use client";
-
-import { clamp, motion, useMotionValueEvent, useScroll } from "framer-motion";
-import Head from "next/head";
-import React, { useState } from "react";
-import { Features, MacbookScroll } from "./components";
-
-function Gradient() {
- const { scrollYProgress } = useScroll();
-
- const [progress, setProgress] = useState(0);
- useMotionValueEvent(scrollYProgress, "change", (latest) => {
- setProgress(latest);
- });
-
- const style = {
- opacity: clamp(0, 1, progress * 4),
- };
-
- return (
- <div className="background" style={style}>
- <div className="gradient" />
- </div>
- );
-}
-
-function Hero() {
- return (
- <section className="overflow-hidden">
- <MacbookScroll showGradient={true} />
- </section>
- );
-}
-
-function Overview() {
- return (
- <motion.section id="overview" className="relative" {...fadeIn}>
- <div className="px-4 py-16 mx-auto sm:pt-20 sm:pb-24 lg:max-w-7xl lg:pt-24">
- <h2 className="nx-text-4xl font-semibold tracking-tighter lg:nx-text-5xl xl:nx-text-6xl lg:text-center dark:text-white">
- The{" "}
- <span className="bg-gradient-to-r from-purple-600 to-pink-600 dark:from-white dark:to-white bg-clip-text text-transparent">
- open core
- </span>{" "}
- for your digital operations
- </h2>
- <p className="mx-auto mt-4 text-lg font-medium text-black/60 dark:text-white/60 lg:max-w-3xl lg:text-xl lg:text-center">
- Every business is unique. Carbon gives you the basic building blocks
- to build your own proprietary business systems with the best in
- modern, open-source software.
- </p>
- <Features showIcons />
- </div>
- </motion.section>
- );
-}
-
-function OpenSource() {
- return (
- <section id="open-source" className="relative">
- <div className="relative mt-20 border-t border-zinc-200 dark:border-zinc-900 bg-white/10 dark:bg-black/10 py-20 shadow-[inset_10px_-50px_94px_0_rgb(199,199,199,0.2)] dark:shadow-[inset_10px_-50px_94px_0_rgb(50,50,50,0.2)] backdrop-blur">
- <div className="mx-auto w-full lg:max-w-7xl px-2.5">
- <div className="mx-auto text-center">
- <h2 className="text-zinc-800 dark:text-white font-display text-4xl font-semibold leading-tight sm:text-5xl sm:leading-tight tracking-tighter">
- Proudly Open Source
- </h2>
- <p className="mt-5 text-zinc-600 dark:text-zinc-300 sm:text-lg font-medium">
- Our source code is available on GitHub - feel free to use, modify,
- or contribute!
- </p>
- </div>
- <div className="flex items-center justify-center py-10">
- <a
- href="https://github.com/barbinbrad/carbon"
- target="_blank"
- rel="noreferrer"
- >
- <div className="flex items-center">
- <div className="flex h-10 items-center space-x-2 rounded-md border border-zinc-600 dark:border-none bg-zinc-800 dark:bg-black p-6">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="20"
- height="20"
- fill="currentColor"
- viewBox="0 0 24 24"
- className="h-5 w-5 text-white"
- >
- <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"></path>
- </svg>
- <p className="font-medium text-white">Star</p>
- </div>
- </div>
- </a>
- </div>
- </div>
- </div>
- </section>
- );
-}
-
-export default function Home() {
- return (
- <>
- <Head>
- <title>Carbon ERP</title>
- <meta
- name="og:description"
- content="Carbon is an open-source, high-performance ERP"
- />
- </Head>
-
- <section>
- <Gradient />
- <Hero />
- <Overview />
- <OpenSource />
- </section>
- </>
- );
-}
-
-const fadeIn = {
- initial: {
- opacity: 0,
- scale: 0.9,
- },
- animate: {
- opacity: 1,
- scale: 1,
- },
-};
diff --git a/www/components/Home/components/macbook.tsx b/www/components/Home/components/macbook.tsx
deleted file mode 100644
index c19988227d..0000000000
--- a/www/components/Home/components/macbook.tsx
+++ /dev/null
@@ -1,717 +0,0 @@
-import { zodResolver } from "@hookform/resolvers/zod";
-import {
- IconBrightnessDown,
- IconBrightnessUp,
- IconCaretDownFilled,
- IconCaretLeftFilled,
- IconCaretRightFilled,
- IconCaretUpFilled,
- IconChevronUp,
- IconCommand,
- IconMicrophone,
- IconMoon,
- IconPlayerSkipForward,
- IconPlayerTrackNext,
- IconPlayerTrackPrev,
- IconSearch,
- IconTable,
- IconVolume,
- IconVolume2,
- IconVolume3,
- IconWorld,
-} from "@tabler/icons-react";
-import type { MotionValue } from "framer-motion";
-import { motion, useScroll, useTransform } from "framer-motion";
-import Image from "next/image";
-import React, { useEffect, useRef, useState } from "react";
-import { useForm } from "react-hook-form";
-import { z } from "zod";
-import { cn } from "../../../utils/cn";
-import { supabase } from "../../../utils/supabase";
-import { Button } from "../../ui/button";
-import {
- Form,
- FormControl,
- FormField,
- FormItem,
- FormMessage,
-} from "../../ui/form";
-import { Input } from "../../ui/input";
-
-const MacbookScroll = ({
- showGradient,
-}: {
- showGradient?: boolean;
- title?: string | React.ReactNode;
- badge?: React.ReactNode;
-}) => {
- const [showForm, setShowForm] = useState(true);
- const formSchema = z.object({
- email: z.string().email(),
- });
-
- const form = useForm<z.infer<typeof formSchema>>({
- resolver: zodResolver(formSchema),
- defaultValues: {
- email: "",
- },
- });
-
- async function onSubmit(values: z.infer<typeof formSchema>) {
- try {
- const response = await supabase
- .from("leads")
- .insert({ email: values.email });
-
- if (response.error) {
- form.setError("email", {
- type: "manual",
- message: "Failed to insert email",
- });
- console.error(response.error.message);
- } else {
- form.reset();
- form.clearErrors();
- setShowForm(false);
- }
-
- // const data = await response.json();
- } catch (error) {
- console.error("Failed to submit email:", error);
- }
- }
- const ref = useRef<HTMLDivElement>(null);
- const { scrollYProgress } = useScroll({
- target: ref,
- offset: ["start start", "end start"],
- });
-
- const [isMobile, setIsMobile] = useState(false);
-
- useEffect(() => {
- if (window && window.innerWidth < 768) {
- setIsMobile(true);
- }
- }, []);
-
- const scaleX = useTransform(
- scrollYProgress,
- [0, 0.3],
- [1.2, isMobile ? 1 : 1.5]
- );
- const scaleY = useTransform(
- scrollYProgress,
- [0, 0.3],
- [0.6, isMobile ? 1 : 1.5]
- );
- const translate = useTransform(scrollYProgress, [0, 1], [0, 1500]);
- const rotate = useTransform(scrollYProgress, [0.1, 0.12, 0.3], [-28, -28, 0]);
-
- return (
- <motion.div
- initial={{ opacity: 0, y: -10 }}
- animate={{ opacity: 1, y: 0 }}
- transition={{ duration: 0.4, delay: 0.1 }}
- ref={ref}
- className="min-h-[200vh] flex flex-col items-center py-0 md:py-[12rem] justify-start flex-shrink-0 [perspective:800px] transform md:scale-100 scale-[0.75] sm:scale-[0.9] text-center"
- >
- <h1 className="max-w-5xl mx-auto text-7xl font-extrabold tracking-tighter leading-tighter sm:text-7xl lg:text-6xl xl:text-7xl">
- <span className="dark:bg-clip-text dark:text-transparent dark:bg-gradient-to-b dark:from-white dark:to-zinc-400">
- ERP for
- </span>{" "}
- <span className="bg-gradient-to-r bg-clip-text text-transparent dark:bg-gradient-to-b dark:from-[#3ECF8E] dark:via-[#3ECF8E] dark:to-[#3ecfb2] from-black to-black">
- the builders
- </span>
- </h1>
- <div className="flex flex-col gap-6 items-center mt-6 mb-20">
- <p className="max-w-lg nx-text-2xl font-medium leading-tight text-black/80 dark:text-white/80 sm:nx-text-2xl md:nx-text-3xl lg:nx-text-4xl">
- Carbon is an open-source ERP to meet your exact manufacturing needs
- </p>
- {showForm && (
- <Form {...form}>
- <form
- onSubmit={form.handleSubmit(onSubmit)}
- className="flex w-full max-w-sm items-start space-x-2"
- >
- <FormField
- control={form.control}
- name="email"
- render={({ field }) => (
- <FormItem>
- <FormControl>
- <Input
- className="w-60"
- type="email"
- placeholder="Email"
- {...field}
- />
- </FormControl>
- <FormMessage />
- </FormItem>
- )}
- />
- <Button type="submit">Get early access</Button>
- </form>
- </Form>
- )}
- </div>
- <Lid
- scaleX={scaleX}
- scaleY={scaleY}
- rotate={rotate}
- translate={translate}
- />
- {/* Base area */}
- <div className="h-[22rem] w-[32rem] bg-gray-200 dark:bg-[#272729] rounded-2xl overflow-hidden relative -z-10">
- {/* above keyboard bar */}
- <div className="h-10 w-full relative">
- <div className="absolute inset-x-0 mx-auto w-[80%] h-4 bg-[#050505]" />
- </div>
- <div className="flex relative">
- <div className="mx-auto w-[10%] overflow-hidden h-full">
- <SpeakerGrid />
- </div>
- <div className="mx-auto w-[80%] h-full">
- <Keypad />
- </div>
- <div className="mx-auto w-[10%] overflow-hidden h-full">
- <SpeakerGrid />
- </div>
- </div>
- <Trackpad />
- <div className="h-2 w-20 mx-auto inset-x-0 absolute bottom-0 bg-gradient-to-t from-[#272729] to-[#050505] rounded-tr-3xl rounded-tl-3xl" />
- {showGradient && (
- <div className="h-40 w-full absolute bottom-0 inset-x-0 bg-gradient-to-t dark:from-black from-white via-white dark:via-black to-transparent z-50"></div>
- )}
- </div>
- </motion.div>
- );
-};
-
-export default MacbookScroll;
-
-export const Lid = ({
- scaleX,
- scaleY,
- rotate,
- translate,
-}: {
- scaleX: MotionValue<number>;
- scaleY: MotionValue<number>;
- rotate: MotionValue<number>;
- translate: MotionValue<number>;
-}) => {
- return (
- <div className="relative [perspective:800px]">
- <div
- style={{
- transform: "perspective(800px) rotateX(-25deg) translateZ(0px)",
- transformOrigin: "bottom",
- transformStyle: "preserve-3d",
- }}
- className="h-[12rem] w-[32rem] bg-[#010101] rounded-2xl p-2 relative"
- >
- <div
- style={{
- boxShadow: "0px 2px 0px 2px var(--neutral-900) inset",
- }}
- className="absolute inset-0 bg-[#010101] rounded-lg flex items-center justify-center"
- ></div>
- </div>
- <motion.div
- style={{
- scaleX: scaleX,
- scaleY: scaleY,
- rotateX: rotate,
- translateY: translate,
- transformStyle: "preserve-3d",
- transformOrigin: "top",
- }}
- className="h-96 w-[32rem] absolute inset-0 bg-[#010101] rounded-2xl p-2"
- >
- <div className="absolute inset-0 bg-[#272729] rounded-lg" />
- <Image
- src={"/carbon-dark.jpg"}
- alt="Carbon Screenshot"
- fill
- className="object-cover object-left-top absolute rounded-lg inset-0 h-full w-full hidden dark:block"
- />
- <Image
- src={"/carbon-light.jpg"}
- alt="Carbon Screenshot"
- fill
- className="object-cover object-left-top absolute rounded-lg inset-0 h-full w-full dark:hidden"
- />
- </motion.div>
- </div>
- );
-};
-
-export const Trackpad = () => {
- return (
- <div
- className="w-[40%] mx-auto h-32 rounded-xl my-1"
- style={{
- boxShadow: "0px 0px 1px 1px #00000020 inset",
- }}
- ></div>
- );
-};
-
-export const Keypad = () => {
- return (
- <div className="h-full rounded-md bg-[#050505] mx-1 p-1">
- {/* First Row */}
- <Row>
- <KBtn
- className="w-10 items-end justify-start pl-[4px] pb-[2px]"
- childrenClassName="items-start"
- >
- esc
- </KBtn>
- <KBtn>
- <IconBrightnessDown className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F1</span>
- </KBtn>
-
- <KBtn>
- <IconBrightnessUp className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F2</span>
- </KBtn>
- <KBtn>
- <IconTable className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F3</span>
- </KBtn>
- <KBtn>
- <IconSearch className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F4</span>
- </KBtn>
- <KBtn>
- <IconMicrophone className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F5</span>
- </KBtn>
- <KBtn>
- <IconMoon className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F6</span>
- </KBtn>
- <KBtn>
- <IconPlayerTrackPrev className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F7</span>
- </KBtn>
- <KBtn>
- <IconPlayerSkipForward className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F8</span>
- </KBtn>
- <KBtn>
- <IconPlayerTrackNext className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F8</span>
- </KBtn>
- <KBtn>
- <IconVolume3 className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F10</span>
- </KBtn>
- <KBtn>
- <IconVolume2 className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F11</span>
- </KBtn>
- <KBtn>
- <IconVolume className="h-[6px] w-[6px]" />
- <span className="inline-block mt-1">F12</span>
- </KBtn>
- <KBtn>
- <div className="h-4 w-4 rounded-full bg-gradient-to-b from-20% from-neutral-900 via-black via-50% to-neutral-900 to-95% p-px">
- <div className="bg-black h-full w-full rounded-full" />
- </div>
- </KBtn>
- </Row>
-
- {/* Second row */}
- <Row>
- <KBtn>
- <span className="block">~</span>
- <span className="block mt-1">`</span>
- </KBtn>
-
- <KBtn>
- <span className="block ">!</span>
- <span className="block">1</span>
- </KBtn>
- <KBtn>
- <span className="block">@</span>
- <span className="block">2</span>
- </KBtn>
- <KBtn>
- <span className="block">#</span>
- <span className="block">3</span>
- </KBtn>
- <KBtn>
- <span className="block">$</span>
- <span className="block">4</span>
- </KBtn>
- <KBtn>
- <span className="block">%</span>
- <span className="block">5</span>
- </KBtn>
- <KBtn>
- <span className="block">^</span>
- <span className="block">6</span>
- </KBtn>
- <KBtn>
- <span className="block">&</span>
- <span className="block">7</span>
- </KBtn>
- <KBtn>
- <span className="block">*</span>
- <span className="block">8</span>
- </KBtn>
- <KBtn>
- <span className="block">(</span>
- <span className="block">9</span>
- </KBtn>
- <KBtn>
- <span className="block">)</span>
- <span className="block">0</span>
- </KBtn>
- <KBtn>
- <span className="block">&mdash;</span>
- <span className="block">_</span>
- </KBtn>
- <KBtn>
- <span className="block">+</span>
- <span className="block"> = </span>
- </KBtn>
- <KBtn
- className="w-10 items-end justify-end pr-[4px] pb-[2px]"
- childrenClassName="items-end"
- >
- delete
- </KBtn>
- </Row>
-
- {/* Third row */}
- <Row>
- <KBtn
- className="w-10 items-end justify-start pl-[4px] pb-[2px]"
- childrenClassName="items-start"
- >
- tab
- </KBtn>
- <KBtn>
- <span className="block">Q</span>
- </KBtn>
-
- <KBtn>
- <span className="block">W</span>
- </KBtn>
- <KBtn>
- <span className="block">E</span>
- </KBtn>
- <KBtn>
- <span className="block">R</span>
- </KBtn>
- <KBtn>
- <span className="block">T</span>
- </KBtn>
- <KBtn>
- <span className="block">Y</span>
- </KBtn>
- <KBtn>
- <span className="block">U</span>
- </KBtn>
- <KBtn>
- <span className="block">I</span>
- </KBtn>
- <KBtn>
- <span className="block">O</span>
- </KBtn>
- <KBtn>
- <span className="block">P</span>
- </KBtn>
- <KBtn>
- <span className="block">{`{`}</span>
- <span className="block">{`[`}</span>
- </KBtn>
- <KBtn>
- <span className="block">{`}`}</span>
- <span className="block">{`]`}</span>
- </KBtn>
- <KBtn>
- <span className="block">{`|`}</span>
- <span className="block">{`\\`}</span>
- </KBtn>
- </Row>
-
- {/* Fourth Row */}
- <Row>
- <KBtn
- className="w-[2.8rem] items-end justify-start pl-[4px] pb-[2px]"
- childrenClassName="items-start"
- >
- caps lock
- </KBtn>
- <KBtn>
- <span className="block">A</span>
- </KBtn>
-
- <KBtn>
- <span className="block">S</span>
- </KBtn>
- <KBtn>
- <span className="block">D</span>
- </KBtn>
- <KBtn>
- <span className="block">F</span>
- </KBtn>
- <KBtn>
- <span className="block">G</span>
- </KBtn>
- <KBtn>
- <span className="block">H</span>
- </KBtn>
- <KBtn>
- <span className="block">J</span>
- </KBtn>
- <KBtn>
- <span className="block">K</span>
- </KBtn>
- <KBtn>
- <span className="block">L</span>
- </KBtn>
- <KBtn>
- <span className="block">{`:`}</span>
- <span className="block">{`;`}</span>
- </KBtn>
- <KBtn>
- <span className="block">{`"`}</span>
- <span className="block">{`'`}</span>
- </KBtn>
- <KBtn
- className="w-[2.85rem] items-end justify-end pr-[4px] pb-[2px]"
- childrenClassName="items-end"
- >
- return
- </KBtn>
- </Row>
-
- {/* Fifth Row */}
- <Row>
- <KBtn
- className="w-[3.65rem] items-end justify-start pl-[4px] pb-[2px]"
- childrenClassName="items-start"
- >
- shift
- </KBtn>
- <KBtn>
- <span className="block">Z</span>
- </KBtn>
- <KBtn>
- <span className="block">X</span>
- </KBtn>
- <KBtn>
- <span className="block">C</span>
- </KBtn>
- <KBtn>
- <span className="block">V</span>
- </KBtn>
- <KBtn>
- <span className="block">B</span>
- </KBtn>
- <KBtn>
- <span className="block">N</span>
- </KBtn>
- <KBtn>
- <span className="block">M</span>
- </KBtn>
- <KBtn>
- <span className="block">{`<`}</span>
- <span className="block">{`,`}</span>
- </KBtn>
- <KBtn>
- <span className="block">{`>`}</span>
- <span className="block">{`.`}</span>
- </KBtn>{" "}
- <KBtn>
- <span className="block">{`?`}</span>
- <span className="block">{`/`}</span>
- </KBtn>
- <KBtn
- className="w-[3.65rem] items-end justify-end pr-[4px] pb-[2px]"
- childrenClassName="items-end"
- >
- shift
- </KBtn>
- </Row>
-
- {/* sixth Row */}
- <Row>
- <KBtn className="" childrenClassName="h-full justify-between py-[4px]">
- <div className="flex justify-end w-full pr-1">
- <span className="block">fn</span>
- </div>
- <div className="flex justify-start w-full pl-1">
- <IconWorld className="h-[6px] w-[6px]" />
- </div>
- </KBtn>
- <KBtn className="" childrenClassName="h-full justify-between py-[4px]">
- <div className="flex justify-end w-full pr-1">
- <IconChevronUp className="h-[6px] w-[6px]" />
- </div>
- <div className="flex justify-start w-full pl-1">
- <span className="block">control</span>
- </div>
- </KBtn>
- <KBtn className="" childrenClassName="h-full justify-between py-[4px]">
- <div className="flex justify-end w-full pr-1">
- <OptionKey className="h-[6px] w-[6px]" />
- </div>
- <div className="flex justify-start w-full pl-1">
- <span className="block">option</span>
- </div>
- </KBtn>
- <KBtn
- className="w-8"
- childrenClassName="h-full justify-between py-[4px]"
- >
- <div className="flex justify-end w-full pr-1">
- <IconCommand className="h-[6px] w-[6px]" />
- </div>
- <div className="flex justify-start w-full pl-1">
- <span className="block">command</span>
- </div>
- </KBtn>
- <KBtn className="w-[8.2rem]"></KBtn>
- <KBtn
- className="w-8"
- childrenClassName="h-full justify-between py-[4px]"
- >
- <div className="flex justify-start w-full pl-1">
- <IconCommand className="h-[6px] w-[6px]" />
- </div>
- <div className="flex justify-start w-full pl-1">
- <span className="block">command</span>
- </div>
- </KBtn>
- <KBtn className="" childrenClassName="h-full justify-between py-[4px]">
- <div className="flex justify-start w-full pl-1">
- <OptionKey className="h-[6px] w-[6px]" />
- </div>
- <div className="flex justify-start w-full pl-1">
- <span className="block">option</span>
- </div>
- </KBtn>
- <div className="w-[4.9rem] mt-[2px] h-6 p-[0.5px] rounded-[4px] flex flex-col justify-end items-center">
- <KBtn className="w-6 h-3">
- <IconCaretUpFilled className="h-[6px] w-[6px]" />
- </KBtn>
- <div className="flex">
- <KBtn className="w-6 h-3">
- <IconCaretLeftFilled className="h-[6px] w-[6px]" />
- </KBtn>
- <KBtn className="w-6 h-3">
- <IconCaretDownFilled className="h-[6px] w-[6px]" />
- </KBtn>
- <KBtn className="w-6 h-3">
- <IconCaretRightFilled className="h-[6px] w-[6px]" />
- </KBtn>
- </div>
- </div>
- </Row>
- </div>
- );
-};
-export const KBtn = ({
- className,
- children,
- childrenClassName,
- backlit = true,
-}: {
- className?: string;
- children?: React.ReactNode;
- childrenClassName?: string;
- backlit?: boolean;
-}) => {
- return (
- <div
- className={cn(
- "p-[0.5px] rounded-[4px]",
- backlit && "bg-white/[0.2] shadow-xl shadow-white"
- )}
- >
- <div
- className={cn(
- "h-6 w-6 bg-[#0A090D] rounded-[3.5px] flex items-center justify-center",
- className
- )}
- style={{
- boxShadow:
- "0px -0.5px 2px 0 #0D0D0F inset, -0.5px 0px 2px 0 #0D0D0F inset",
- }}
- >
- <div
- className={cn(
- "text-neutral-200 text-[5px] w-full flex justify-center items-center flex-col",
- childrenClassName,
- backlit && "text-white"
- )}
- >
- {children}
- </div>
- </div>
- </div>
- );
-};
-
-export const Row = ({ children }: { children: React.ReactNode }) => {
- return (
- <div className="flex gap-[2px] mb-[2px] w-full flex-shrink-0">
- {children}
- </div>
- );
-};
-
-export const SpeakerGrid = () => {
- return (
- <div
- className="flex px-[0.5px] gap-[2px] mt-2 h-40"
- style={{
- backgroundImage:
- "radial-gradient(circle, #08080A 0.5px, transparent 0.5px)",
- backgroundSize: "3px 3px",
- }}
- ></div>
- );
-};
-
-export const OptionKey = ({ className }: { className: string }) => {
- return (
- <svg
- fill="none"
- version="1.1"
- id="icon"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 32 32"
- className={className}
- >
- <rect
- stroke="currentColor"
- strokeWidth={2}
- x="18"
- y="5"
- width="10"
- height="2"
- />
- <polygon
- stroke="currentColor"
- strokeWidth={2}
- points="10.6,5 4,5 4,7 9.4,7 18.4,27 28,27 28,25 19.6,25 "
- />
- <rect
- id="_Transparent_Rectangle_"
- className="st0"
- width="32"
- height="32"
- stroke="none"
- />
- </svg>
- );
-};