aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 16:11:50 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 16:15:08 +0100
commit73a5c7fae9ffbe9ada721148c8c454a643aceebe (patch)
treec8fad013ed9b5dd589add87f8d45cf02bbfc6e91 /public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
parentb01239fbdcc5bbc5921f73ec0e8fee7bedd5c8e8 (diff)
chore!: restructure repo
I separated public files from the config/dev files. It improves repo readability. I also moved dotenv helper to public/inc directory and extract the Matomo tracker in the same directory.
Diffstat (limited to 'public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html')
-rw-r--r--public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html b/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
new file mode 100644
index 0000000..8854d5d
--- /dev/null
+++ b/public/projects/angular-small-apps/apps/recipes/src/app/components/search/search.component.html
@@ -0,0 +1,30 @@
+<form [formGroup]="searchForm" (ngSubmit)="onSubmit()" class="form">
+ <fieldset class="form__fieldset">
+ <legend class="form__legend">Search a new recipe</legend>
+ <div class="form__item">
+ <label for="search-by" class="form__label">By</label>
+ <select
+ id="search-by"
+ name="search-by"
+ class="form__select"
+ formControlName="by"
+ >
+ <option value="name" selected>Name</option>
+ <option value="ingredient">Ingredient</option>
+ <option value="category">Category</option>
+ </select>
+ </div>
+ <div class="form__item">
+ <label for="search-query" class="form__label">Query</label>
+ <input
+ type="search"
+ name="search-query"
+ id="search-query"
+ formControlName="query"
+ class="form__input"
+ placeholder="Keywords..."
+ />
+ </div>
+ <button class="btn" type="submit">Search</button>
+ </fieldset>
+</form>