diff --git a/content/_index.md b/content/_index.md
index 6d19f7a..bd0d579 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -2,4 +2,4 @@
title: "CaAlden: Films"
description: A blog about movies and my opinions of them
---
-This site is under construction. Please excuse the mess.
+A collection of quick recommendations and thoughts on movies
diff --git a/layouts/index.html b/layouts/index.html
index 9713f92..2f4f6d4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,12 +1,41 @@
{{ define "main" }}
-
- {{ range (where .Site.Pages "Section" "reviews") }}
- {{ range .Pages }}
- {{- .Render "summary" -}}
- {{ end }}
- {{ end }}
+
+
+
+
+
+ {{ range (where .Site.Pages "Section" "reviews") }}
+ {{ range .Pages }}
+ {{- .Render "summary" -}}
+ {{ end }}
+ {{ end }}
+
+
{{end}}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b389358..0f8f1dc 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -5,6 +5,7 @@
+
diff --git a/layouts/partials/magnifying_glass.html b/layouts/partials/magnifying_glass.html
new file mode 100644
index 0000000..2cce2d4
--- /dev/null
+++ b/layouts/partials/magnifying_glass.html
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/layouts/partials/search.html b/layouts/partials/search.html
new file mode 100644
index 0000000..e69de29
diff --git a/static/card.css b/static/card.css
index 27ff1d9..57727ed 100644
--- a/static/card.css
+++ b/static/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/static/home.css b/static/home.css
new file mode 100644
index 0000000..301b380
--- /dev/null
+++ b/static/home.css
@@ -0,0 +1,39 @@
+.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;
+}
diff --git a/static/review.css b/static/review.css
index e1924c6..529a2c4 100644
--- a/static/review.css
+++ b/static/review.css
@@ -1,5 +1,6 @@
.review {
- max-width: 800px;
+ max-width: calc(70ch + 60px);
+ margin: auto;
display: flex;
flex-direction: column;
align-items: center;
diff --git a/static/search.js b/static/search.js
new file mode 100644
index 0000000..0d5bec5
--- /dev/null
+++ b/static/search.js
@@ -0,0 +1,13 @@
+const searchInput = document.getElementById('movie-search');
+const datalist = document.getElementById('movies');
+const dataitems = new Map();
+Array.from(datalist.children).forEach(function (ch) {
+ dataitems.set(ch.value, ch.getAttribute('data-value'));
+});
+
+searchInput.addEventListener('change', function(e) {
+ const targetLocation = dataitems.get(e.target.value);
+ if (targetLocation) {
+ window.location.href = targetLocation;
+ }
+});
diff --git a/static/style.css b/static/style.css
index d7a7c77..d56b255 100644
--- a/static/style.css
+++ b/static/style.css
@@ -75,6 +75,10 @@ p {
text-align: justify;
}
+.text-align\:center {
+ text-align: center !important;
+}
+
html, body {
background: var(--color-light-background);
color: var(--color-secondary);
@@ -86,7 +90,7 @@ main {
display: flex;
flex-direction: column;
justify-content: center;
- max-width: calc(70ch + 60px);
+ max-width: 900px;
}
.title, h1 {
@@ -208,12 +212,20 @@ a:hover {
.cluster {
display: flex;
}
+.stack {
+ display: flex;
+ flex-direction: column;
+}
+
.spacing\:between {
justify-content: space-between;
}
.align\:center {
align-items: center;
}
+.justify\:center {
+ justify-content: center;
+}
.icon {
width: 24px;
@@ -225,6 +237,12 @@ a:hover {
.s1 {
gap: 10px;
}
+.s2 {
+ gap: 20px;
+}
+.s3 {
+ gap: 30px;
+}
.p1 {
padding: 10px;
@@ -264,5 +282,5 @@ a:hover {
}
.http-header {
- margin-top: 10vh;
+ class="home-page-header" margin-top: 10vh;
}