footer desktop

This commit is contained in:
2025-05-13 11:43:16 +03:00
parent a5ffa7ae13
commit 837c0f1fb6
8 changed files with 339 additions and 21 deletions

View File

@@ -1,11 +1,5 @@
import React from 'react'
interface ButtonProps {
onClick?: () => void
className?: string
text?: string
type?: 'button'
}
import { ButtonProps } from '@/app/types'
const Button = ({ onClick, className, text, type }: ButtonProps) => {
return (

View File

@@ -0,0 +1,39 @@
import React from 'react'
import { TextInputProps } from '@/app/types'
const TextInput = ({
value,
handleChange,
label,
placeholder,
name,
type = 'text',
className = '',
maxLength,
}: TextInputProps) => {
return (
<div className={className}>
{label && (
<label
className="block my-2 font-medium text-sm text-gray-500"
htmlFor={name}
>
{label}
</label>
)}
<input
type={type}
id={name}
name={name}
placeholder={placeholder}
value={value || ''}
onChange={handleChange}
className="w-full px-4 py-4 border bg-gray-100 text-black rounded-xl focus:outline-none focus:ring-2 focus:ring-mainblocks focus:bg-white"
autoComplete={name}
maxLength={maxLength}
/>
</div>
)
}
export default TextInput