Add preliminay search bar

This commit is contained in:
schriefer 2024-06-14 13:28:22 +02:00
parent cc0653d78c
commit 96efd6085a
3 changed files with 28 additions and 6 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea/
.vscode/

View File

@ -12,11 +12,13 @@
<h1>Welcome to DataDash</h1>
<p>The place to launch and discover datasets and API endpoints.</p>
</header>
<div id="functionBar">
<div id="searchBar">
<p>lilalu</p>
<section id="tool-bar">
<div id="search-bar">
<input type="search" name="query" id="search-entry" placeholder="Search">
</div>
</div>
</section>
<section id="recents">
<h2>Recently added:</h2>
<ul class="datasets">

View File

@ -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;