docs: add new tools

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-10 13:20:28 +01:00
parent 9bedd39e48
commit ae383001bc
14 changed files with 3116 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
import { TOOLS } from '@/app/tools/tools';
import { baseOptions } from '@/lib/layout.shared';
import { articleSource, compareSource } from '@/lib/source';
import { MailIcon } from 'lucide-react';
@@ -39,6 +40,14 @@ export async function Footer() {
{ title: 'Compare', url: '/compare' },
]}
/>
<div className="h-5" />
<h3 className="font-medium">Tools</h3>
<Links
data={TOOLS.map((tool) => ({
title: tool.name,
url: tool.url,
}))}
/>
</div>
<div className="col gap-3">

View File

@@ -0,0 +1,39 @@
import { type VariantProps, cva } from 'class-variance-authority';
import type * as React from 'react';
import { cn } from '@/lib/utils';
const inputVariants = cva(
'flex w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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 transition-colors',
{
variants: {
size: {
default: 'h-10',
sm: 'h-8 text-xs',
lg: 'h-12 text-base',
},
},
defaultVariants: {
size: 'default',
},
},
);
export interface InputProps
extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>,
VariantProps<typeof inputVariants> {
ref?: React.RefObject<HTMLInputElement>;
}
const Input = ({ className, type, size, ref, ...props }: InputProps) => {
return (
<input
type={type}
className={cn(inputVariants({ size, className }))}
ref={ref}
{...props}
/>
);
};
export { Input, inputVariants };