From 96efd6085a26022a1fdaa880d5bd6515bf728ed2 Mon Sep 17 00:00:00 2001 From: schriefer Date: Fri, 14 Jun 2024 13:28:22 +0200 Subject: [PATCH] Add preliminay search bar --- .gitignore | 2 ++ html/index.html | 10 ++++++---- html/main.css | 22 ++++++++++++++++++++-- 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..66f8fb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +.vscode/ diff --git a/html/index.html b/html/index.html index 7b7a3f1..5975884 100644 --- a/html/index.html +++ b/html/index.html @@ -12,11 +12,13 @@

Welcome to DataDash

The place to launch and discover datasets and API endpoints.

-
- + +

Recently added:

    diff --git a/html/main.css b/html/main.css index 2efda1f..df0f484 100644 --- a/html/main.css +++ b/html/main.css @@ -5,6 +5,7 @@ --pad-datasets: 1rem; --pad-main: 2rem; --min-card-size: 60ch; + --corner-radius: 1rem; font-size: 12pt; } @@ -25,6 +26,23 @@ header { margin-inline: .75rem; } +#tool-bar { + display: flex; + flex-direction: row; +} + +#search-bar { + background-color: var(--fg-color, darkgrey); + padding: .5rem 1rem; + width: 100%; +} + +#search-entry { + background: none; + border: none; + color: var(--text-color); +} + .datasets { padding-inline: var(--pad-datasets); display: grid; @@ -38,10 +56,10 @@ header { } } -.dataset, #functionBar { +.dataset { padding: 1rem 2rem; background-color: var(--fg-color, darkgrey); - border-radius: 1rem; + border-radius: var(--corner-radius); list-style: none; display: inline-flex; align-items: center;