diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 22:36:59 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 22:36:59 -0600 |
commit | edf53abbe793681715a86634574beeff99fa5883 (patch) | |
tree | a01095f0a920a34bd25448f44adca7ed845d851f /templates/components/section.html | |
parent | 2e2943c27176d8ddbfbc551632e4f9d0e86cb41e (diff) |
created components
Diffstat (limited to 'templates/components/section.html')
-rw-r--r-- | templates/components/section.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/components/section.html b/templates/components/section.html new file mode 100644 index 0000000..563a6a9 --- /dev/null +++ b/templates/components/section.html @@ -0,0 +1,45 @@ +{{define "hero-small"}} +<section class="hero is-small is-primary"> + <div class="hero-body"> + <h1 class="title"> + {{.GlobalVars.Name}} + </h1> + <p class="subtitle"> + Full-text search FDA 510(k) database + </p> + </div> +</section> +{{end}} + +{{define "hero-medium"}} +<section class="hero is-medium is-primary"> + <div class="hero-body"> + <h1 class="title"> + {{ .GlobalVars.Name }} + </h1> + <p class="subtitle"> + Full-text search FDA 510(k) database + </p> + </div> +</section> +{{end}} + +{{define "search-bar-small"}} +<div class="container"> + <div class="container"> + <form action="/search" method="GET"> + <div class="field has-addons"> + <div class="control is-expanded has-icons-left"> + <input class="input" type="text" name="query" placeholder="Query" spellcheck="false"> + <span class="icon is-left"> + <i class="fa-regular fa-magnifying-glass"></i> + </span> + </div> + <div class="control"> + <input class="button is-primary" type="submit" value="Search"> + </div> + </div> + </form> + </div> + </div> +{{end}}
\ No newline at end of file |