From edf53abbe793681715a86634574beeff99fa5883 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 17 Oct 2022 22:36:59 -0600 Subject: created components --- templates/components/header.html | 6 ++++ templates/components/section.html | 45 ++++++++++++++++++++++++ templates/document_details.html | 35 ++----------------- templates/home.html | 16 ++------- templates/search_results.html | 73 +++++++++++++++++---------------------- 5 files changed, 87 insertions(+), 88 deletions(-) create mode 100644 templates/components/header.html create mode 100644 templates/components/section.html diff --git a/templates/components/header.html b/templates/components/header.html new file mode 100644 index 0000000..60d5657 --- /dev/null +++ b/templates/components/header.html @@ -0,0 +1,6 @@ +{{ define "header" }} + + + + +{{ end }} \ No newline at end of file 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"}} +
+
+

+ {{.GlobalVars.Name}} +

+

+ Full-text search FDA 510(k) database +

+
+
+{{end}} + +{{define "hero-medium"}} +
+
+

+ {{ .GlobalVars.Name }} +

+

+ Full-text search FDA 510(k) database +

+
+
+{{end}} + +{{define "search-bar-small"}} +
+
+
+
+
+ + + + +
+
+ +
+
+
+
+
+{{end}} \ No newline at end of file diff --git a/templates/document_details.html b/templates/document_details.html index a078e46..9e98879 100644 --- a/templates/document_details.html +++ b/templates/document_details.html @@ -1,24 +1,11 @@ - - + {{ template "header" . }} {{.SearchResults.id}} - {{.GlobalVars.Name}} - - - -
-
-

- DogeKnows -

-

- Full-text search FDA 510(k) database -

-
-
+ {{template "hero-small" .}}
-
-
-
-
-
- - - - -
-
- -
-
-
-
-
+ {{ template "search-bar-small" . }}
diff --git a/templates/home.html b/templates/home.html index ab185d4..31de085 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,23 +1,11 @@ - - + {{ template "header" . }} {{.GlobalVars.Name}} - - -
-
-

- {{ .GlobalVars.Name }} -

-

- Full-text search FDA 510(k) database -

-
-
+ {{ template "hero-medium" . }}
diff --git a/templates/search_results.html b/templates/search_results.html index dba3362..28b7b24 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -1,23 +1,11 @@ - - + {{ template "header" . }} {{.OriginalQuery.Query}} - {{.GlobalVars.Name}} - - -
-
-

- {{.GlobalVars.Name}} -

-

- Full-text search FDA 510(k) database -

-
-
+ {{ template "hero-medium" . }}
{{ end }} -
{{ if .MoreResults }} -

Previous Page

-

Next Page

+
+
+
+
+
+ + +
+
+ +
+
+ {{ end }} \ No newline at end of file -- cgit v1.2.3