From c67566a9103084c4b6fb8979043a3eca43f019d6 Mon Sep 17 00:00:00 2001 From: ramprasathmk Date: Wed, 27 Nov 2024 09:55:49 +0545 Subject: [PATCH] style(ui): improve button styles and layout Signed-off-by: ramprasathmk --- views/edit.ejs | 47 +++++++++++++++++++----- views/search.ejs | 93 ++++++++++++++++++++++++++++++++---------------- 2 files changed, 101 insertions(+), 39 deletions(-) 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 +
+ +
+
+ <% }) %> +
+
+ + +