tweak to copyedit and full string search

This commit is contained in:
fred 2025-08-05 08:42:36 -07:00
parent 9656888cb7
commit 9aac6e0eff
3 changed files with 2 additions and 4 deletions

View file

@ -3,8 +3,6 @@ function About() {
return ( return (
<div className="about page-outer"> <div className="about page-outer">
<div> <div>
<h2 className="text-xl">Hi,</h2>
<h2 className="text-xl">I am Fred.</h2>
<h2 className="text-xl">I made this app using the following components:</h2> <h2 className="text-xl">I made this app using the following components:</h2>
<h2 className="mt-4 font-bold text-xl">Frontend:</h2> <h2 className="mt-4 font-bold text-xl">Frontend:</h2>
<ul><li>React</li><li>TypeScript</li><li>Vite</li></ul> <ul><li>React</li><li>TypeScript</li><li>Vite</li></ul>

View file

@ -93,7 +93,7 @@ function AddRecipe() {
<div> <div>
<label htmlFor="cookTime" className="mr-2 font-bold">Cook Time:</label> <label htmlFor="cookTime" className="mr-2 font-bold">Cook Time:</label>
<input <input
type="text" type="number"
placeholder="cook time in minutes" placeholder="cook time in minutes"
className="recipe-cusine p-2 border border-gray-300 rounded w-24" className="recipe-cusine p-2 border border-gray-300 rounded w-24"
value={cookMinutes} value={cookMinutes}

View file

@ -73,7 +73,7 @@ function AllRecipes() {
<div className="recipe-outer bg-amber-100 p-4 md:p-8 lg:p-12"> <div className="recipe-outer bg-amber-100 p-4 md:p-8 lg:p-12">
<div className="recipes-grid grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8"> <div className="recipes-grid grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8">
{filteredRecipes.map((recipe) => ( {filteredRecipes.map((recipe) => (
recipe.name.toLowerCase().startsWith(searchQuery) && recipe.name.toLowerCase().includes(searchQuery.toLowerCase()) &&
<CookbookRecipeTile recipe={recipe} key={recipe.id} handleDelete={handleDelete} /> <CookbookRecipeTile recipe={recipe} key={recipe.id} handleDelete={handleDelete} />
))} ))}
</div> </div>