Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 66 additions & 6 deletions optiblogai-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions optiblogai-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"framer-motion": "^12.23.6",
"lucide-react": "^0.525.0",
"mermaid": "^11.9.0",
"next": "15.4.1",
"react": "19.1.0",
"react-dom": "19.1.0",
"next": "^15.4.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-icons": "^5.5.0",
"react-syntax-highlighter": "^15.6.1",
"tailwind-merge": "^3.3.1"
Expand Down
22 changes: 22 additions & 0 deletions optiblogai-site/src/app/components/ui/input.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import * as React from "react";

import { cn } from "@/app/lib/utils";

const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
className,
)}
ref={ref}
{...props}
/>
);
},
);
Input.displayName = "Input";

export { Input };
44 changes: 44 additions & 0 deletions optiblogai-site/src/app/components/ui/label.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// import * as React from "react";
// import * as LabelPrimitive from "@radix-ui/react-label";
// import { cva, type VariantProps } from "class-variance-authority";
// import { cn } from "@/app/lib/utils";

// const labelVariants = cva(
// "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
// );

// const Label = React.forwardRef<
// React.ElementRef<typeof LabelPrimitive.Root>,
// React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
// VariantProps<typeof labelVariants>
// >(({ className, ...props }, ref) => (
// <LabelPrimitive.Root
// ref={ref}
// className={cn(labelVariants(), className)}
// {...props}
// />
// ));
// Label.displayName = LabelPrimitive.Root.displayName;

// export { Label };
import * as React from "react";
import { cn } from "@/app/lib/utils";

// export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}
export type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>;

const Label = React.forwardRef<HTMLLabelElement, LabelProps>(
({ className, ...props }, ref) => (
<label
ref={ref}
className={cn(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
className
)}
{...props}
/>
)
);
Label.displayName = "Label";

export { Label };
25 changes: 25 additions & 0 deletions optiblogai-site/src/app/components/ui/textarea.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import * as React from "react";

import { cn } from "@/app/lib/utils";

// export interface TextareaProps
// extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
ref={ref}
{...props}
/>
);
},
);
Textarea.displayName = "Textarea";

export { Textarea };
Loading
Loading