diff --git a/views/edit.ejs b/views/edit.ejs index 0b498e5..8674ee2 100644 --- a/views/edit.ejs +++ b/views/edit.ejs @@ -4,15 +4,44 @@ Edit Poem - + - -

Edit Poem

-
- - - - -
+ + +
+

Edit Poem

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ + + + diff --git a/views/search.ejs b/views/search.ejs index 769be7a..f343ebf 100644 --- a/views/search.ejs +++ b/views/search.ejs @@ -4,38 +4,71 @@ Search Results - + + -

Search Results for "<%= query %>"

-

Search by Titles

- - -

Search by Authors

- + + + +
+

Search Results for "<%= query %>"

+

Search by Titles

+
+ <% poemsByTitle.forEach(poem => { %> +
+

<%= poem.title %>

+

<%= poem.body %>

+

By <%= poem.author %>

+ Edit +
+ +
+
+ <% }) %> +
+

Search by Authors

+
+ <% poemsByAuthor.forEach(poem => { %> +
+

<%= poem.title %>

+

<%= poem.body %>

+

By <%= poem.author %>

+ Edit +
+ +
+
+ <% }) %> +
+
+ + +