From 1948d2c67fd4c0b1319c267d117c9b3c54591db5 Mon Sep 17 00:00:00 2001 From: boboiazumi Date: Mon, 7 Apr 2025 20:40:58 +0700 Subject: [PATCH] feat: responsive --- apps/dimentorin/src/app/auth/login/page.tsx | 10 +++++----- libs/ui/src/atoms/input/input.tsx | 5 ++++- libs/ui/src/organisms/auth-banner/auth-banner.tsx | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/dimentorin/src/app/auth/login/page.tsx b/apps/dimentorin/src/app/auth/login/page.tsx index fe113e4..98877d1 100644 --- a/apps/dimentorin/src/app/auth/login/page.tsx +++ b/apps/dimentorin/src/app/auth/login/page.tsx @@ -10,12 +10,12 @@ export const Components: FC = (): ReactElement => { return (
-
+
-
-
-

Hallo Minna-san

-
Welcome to Dimentorin by IMPHNEN
+
+
+

Hallo Minna-san

+
Welcome to Dimentorin by IMPHNEN
diff --git a/libs/ui/src/atoms/input/input.tsx b/libs/ui/src/atoms/input/input.tsx index ae0e849..427b4fc 100644 --- a/libs/ui/src/atoms/input/input.tsx +++ b/libs/ui/src/atoms/input/input.tsx @@ -11,6 +11,7 @@ import { Button } from '../button'; type TInputType = 'text' | 'email' | 'password' | 'file'; type TInputSize = 'sm' | 'md' | 'lg'; +type Width = 'standard' | 'custom' type TInputProps = Omit< DetailedHTMLProps, HTMLInputElement>, @@ -18,6 +19,7 @@ type TInputProps = Omit< > & { type?: TInputType; size?: TInputSize; + widthform?: Width; disabled?: boolean; }; @@ -34,6 +36,7 @@ export const Input: FC = ({ type = 'text', size = 'md', placeholder = 'Placeholder', + widthform='standard', disabled, className, ...rest @@ -45,7 +48,7 @@ export const Input: FC = ({ }; const mergedClassName = cn( - 'px-[12px] py-[8px] text-neutral-800 bg-white placeholder:text-neutral-300 border border-neutral-200 hover:border-blue-300 focus:outline-1 focus:outline-blue-500 rounded-md font-bai-jamjuree min-w-70', + `px-[12px] py-[8px] text-neutral-800 bg-white placeholder:text-neutral-300 border border-neutral-200 hover:border-blue-300 focus:outline-1 focus:outline-blue-500 rounded-md font-bai-jamjuree ${widthform === "standard" ? "min-w-70" : ""}`, sizeClasses[size].textSize, disabled && disabledClass, className diff --git a/libs/ui/src/organisms/auth-banner/auth-banner.tsx b/libs/ui/src/organisms/auth-banner/auth-banner.tsx index fbd5927..8b230b4 100644 --- a/libs/ui/src/organisms/auth-banner/auth-banner.tsx +++ b/libs/ui/src/organisms/auth-banner/auth-banner.tsx @@ -5,7 +5,7 @@ import { FC, ReactElement } from "react"; function AuthBanner({text, href}: {text: string, href: string}){ return ( -
+
Banner