diff --git a/src/components/Header.tsx b/src/components/Header.tsx index eca885b..a9a3dc2 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -23,7 +23,7 @@ export function Header() { src="/logo.png" className="h-16 w-16 transition-all duration-1000 hover:rotate-[360deg]" > -

+

{t("header.title")}

diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index b706589..674d91e 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -10,16 +10,18 @@ export function Home() {
{ + onFocus={() => { setIsFocused(true); }} - onBlur={(e) => { + onBlur={() => { setIsFocused(false); }} type="text" - class="font-roboto h-14 w-80 rounded-2xl border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none" - placeholder={isFocused ? "" : t("home.placeholder")} - > + className={`font-roboto h-14 rounded-2xl border border-input-border-color bg-input p-2 text-center text-xl placeholder:text-input-text focus:outline-none ${ + isFocused ? "w-full md:w-3/12" : "w-full md:w-80" + } transition-all duration-300`} + placeholder={isFocused ? "" : t('home.placeholder')} + />
);