diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3d04939add..a9024676ef 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,7 +5,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${NODE_VERSION} # VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version. ARG VARIANT=hugo_extended # VERSION can be either 'latest' or a specific version number -ARG VERSION=latest +ARG VERSION=0.128.0 # Download Hugo RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 35a38bfecc..6220dfa341 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,7 +12,7 @@ // Update VERSION to pick a specific hugo version. // Example versions: latest, 0.73.0, 0,71.1 // Rebuild the container if it already exists to update. - "VERSION": "latest", + "VERSION": "0.128.0", // Update NODE_VERSION to pick the Node.js version: 12, 14 "NODE_VERSION": "14" } diff --git a/assets/scss/_components.scss b/assets/scss/_components.scss index bffe19ae22..7cd444751c 100644 --- a/assets/scss/_components.scss +++ b/assets/scss/_components.scss @@ -4,6 +4,7 @@ @import "components/button"; @import "components/candidates"; @import "components/event"; +@import "components/upcoming-events"; @import "components/faq"; @import "components/faq-question"; @import "components/faq-topic"; diff --git a/assets/scss/components/_upcoming-events.scss b/assets/scss/components/_upcoming-events.scss new file mode 100644 index 0000000000..428d932a09 --- /dev/null +++ b/assets/scss/components/_upcoming-events.scss @@ -0,0 +1,29 @@ +.no-events-fallback { + min-height: 60vh; + display: flex; + align-items: center; + justify-content: center; + padding: 2rem 1rem; +} + +.no-events-card { + background-color: #ffffff; + border-radius: 1rem; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); + padding: 3rem 2.5rem; + max-width: 32rem; + width: 100%; + text-align: center; + + h2 { + margin: 0 0 0.75rem; + font-size: 1.75rem; + } + + p { + margin: 0 0 1.75rem; + color: #555; + font-size: 1.05rem; + line-height: 1.5; + } +} diff --git a/content/events/upcoming/_index.md b/content/events/upcoming/_index.md new file mode 100644 index 0000000000..087af975d7 --- /dev/null +++ b/content/events/upcoming/_index.md @@ -0,0 +1,7 @@ +--- +title: "Upcoming Events" +date: 2020-01-25T23:11:13Z +draft: false + +layout: upcoming-events +--- diff --git a/layouts/_default/upcoming-events.html b/layouts/_default/upcoming-events.html new file mode 100644 index 0000000000..ff7a1f0251 --- /dev/null +++ b/layouts/_default/upcoming-events.html @@ -0,0 +1,52 @@ +{{ define "main" }} + {{- partial "navbar_temp.html" . -}} +