From 8318d8dca55312de0fc1f42ba24f35bedf353698 Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Wed, 31 Aug 2022 12:57:24 +0900 Subject: [PATCH] PUBLISH: Improved Homepage --- docs/404.html | 1 + docs/about/index.html | 1 + docs/card.css | 4 +- docs/home.css | 40 ++++++++++++++ docs/index.html | 58 +++++++++++++++++---- docs/review.css | 3 +- docs/reviews/index.html | 1 + docs/reviews/no-reservations/index.html | 1 + docs/reviews/the-french-dispatch/index.html | 1 + docs/search.js | 13 +++++ docs/style.css | 22 +++++++- static/home.css | 1 + 12 files changed, 130 insertions(+), 16 deletions(-) create mode 100644 docs/home.css create mode 100644 docs/search.js diff --git a/docs/404.html b/docs/404.html index 8385f62..418c698 100644 --- a/docs/404.html +++ b/docs/404.html @@ -14,6 +14,7 @@ + diff --git a/docs/about/index.html b/docs/about/index.html index b63b9ec..2ba4321 100644 --- a/docs/about/index.html +++ b/docs/about/index.html @@ -16,6 +16,7 @@ + diff --git a/docs/card.css b/docs/card.css index 27ff1d9..57727ed 100644 --- a/docs/card.css +++ b/docs/card.css @@ -5,8 +5,8 @@ border-radius: 10px; background: var(--color-primary); aspect-ratio: 2 / 3; - width: 280px; - max-height: 380px; + flex-basis: 280px; + max-width: 300px; padding: 10px; } diff --git a/docs/home.css b/docs/home.css new file mode 100644 index 0000000..81f22fe --- /dev/null +++ b/docs/home.css @@ -0,0 +1,40 @@ +.home-page-header { + display: flex; + flex-direction: column; + text-align: center; + gap: 10px; +} + +.home-page-header p { + text-align: center; + margin: 0; +} + +.search-bar { + display: flex; + background: white; + padding: 10px; + border-radius: 8px; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + gap: 10px; + align-items: center; + cursor: pointer; +} + +.search-bar input { + flex-grow: 1; + flex-basis: 600px; + background: inherit; + outline: none; + border: none; + font-size: 16px; + font-family: var(--body-font-family) +} + +.cards { + display: flex; + flex-wrap: wrap; + padding: 10px; + gap: 10px; + justify-content: center; +} diff --git a/docs/index.html b/docs/index.html index cc606b4..3f274f0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -17,6 +17,7 @@ + @@ -36,15 +37,48 @@
-
-

This site is under construction. Please excuse the mess.

+
+
+
+

Movie Recommendations

A collection of quick recommendations and thoughts on movies

+
+ -
- - - -
+ + + + + + + + + + + + + + + +
+
+ Genres + A-Z + Favorites +
+
+
+
+

Recent

+
+
+ + + +
No Reservations
@@ -87,9 +121,11 @@
- - - + + + +
+