From 4ec258cfd89325f41d458dfa1f72b279090d3ba1 Mon Sep 17 00:00:00 2001 From: rathi Date: Fri, 22 Nov 2024 00:22:44 -0500 Subject: [PATCH] added highlight to add habit text box --- src/App.tsx | 53 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 05f25bc..99556c0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { ChevronLeft, ChevronRight, Sun, Moon } from 'lucide-react'; +import { ChevronLeft, ChevronRight, Sun, Moon, Plus } from 'lucide-react'; import { HabitList } from './components/HabitList'; import { Calendar } from './components/Calendar'; import { Sidebar } from './components/Sidebar'; @@ -89,21 +89,50 @@ function HabitTrackerContent() { const renderHabitsView = () => (
-
-
- setNewHabit(e.target.value)} - placeholder="Add a new habit" - className={`flex-1 px-4 py-2 rounded-lg ${theme.input}`} - /> +
+ +
+ + setNewHabit(e.target.value)} + placeholder="Add a new habit" + className={` + w-full px-12 py-3 + rounded-lg + transition-all duration-200 + ${theme.input} + focus:ring-2 focus:ring-blue-500/20 focus:outline-none + placeholder:opacity-50 + `} + /> +