add: search bar
Add new header and search bar
This commit is contained in:
parent
0aa495e05b
commit
4b07ebb2ec
18 changed files with 206 additions and 71 deletions
|
@ -93,6 +93,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.search-button {
|
||||
--background: var(--color-lightest);
|
||||
--color: var(--color-main-darkest);
|
||||
border-radius: 100%;
|
||||
padding: var(--padding);
|
||||
font-size: 1.1em;
|
||||
|
||||
&:hover {
|
||||
scale: 1.2;
|
||||
--background: var(--color-light);
|
||||
}
|
||||
}
|
||||
|
||||
&.mini-button {
|
||||
padding: .5rem 1.5rem;
|
||||
display: flex;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
.ButtonGroup {
|
||||
display: flex;
|
||||
background: var(--color-main);
|
||||
box-shadow: var(--box-shadow-z2);
|
||||
|
||||
& button {
|
||||
--color: var(--color-light);
|
||||
|
|
24
app/assets/styles/fonts.css
Executable file
24
app/assets/styles/fonts.css
Executable file
|
@ -0,0 +1,24 @@
|
|||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-display: swap;
|
||||
src: url('/fonts/opensans.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('/fonts/roboto_con_reg.woff2') format('woff2');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Condensed';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url('/fonts/roboto_con_bold.woff2') format('woff2');
|
||||
}
|
15
app/assets/styles/form/search.css
Normal file
15
app/assets/styles/form/search.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
.Search {
|
||||
border-radius: 9999px;
|
||||
background: var(--color-lightest);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
|
||||
& > input {
|
||||
all: unset;
|
||||
flex-grow: 1;
|
||||
padding: .5rem 0;
|
||||
}
|
||||
}
|
|
@ -58,6 +58,7 @@ body {
|
|||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
font-family: sans-serif;
|
||||
background: var(--color-main-darkest);
|
||||
}
|
||||
|
||||
.dot {
|
||||
|
@ -103,10 +104,6 @@ body {
|
|||
box-shadow: var(--box-shadow-z2);
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -3,20 +3,20 @@
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--padding-default);
|
||||
background-color: rgba(255 255 255 / .8);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: var(--box-shadow-z2);
|
||||
color: var(--color-darkest);
|
||||
background: var(--color-main-darkest);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: bold;
|
||||
|
||||
& strong {
|
||||
font-size: 2em;
|
||||
& a {
|
||||
text-decoration: none;
|
||||
color: var(--color-lightest);
|
||||
}
|
||||
|
||||
& span {
|
||||
color: var(--color-main-dark);
|
||||
}
|
||||
& .header-text {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
& input[type="checkbox"] {
|
||||
|
|
34
app/assets/styles/page.css
Normal file
34
app/assets/styles/page.css
Normal file
|
@ -0,0 +1,34 @@
|
|||
.filter-bar {
|
||||
background: var(--color-lightest);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 1rem;
|
||||
|
||||
& > button {
|
||||
all: unset;
|
||||
cursor: pointer;
|
||||
color: var(--color-main-darkest);
|
||||
font-weight: bolder;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
|
||||
&.active {
|
||||
color: var(--color-main-darkest);
|
||||
}
|
||||
|
||||
&:not(.active) {
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
padding: 0 1rem 1rem 1rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 100dvh;
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
overflow: hidden;
|
||||
background: var(--color-lightest);
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
width: 100%;
|
||||
color: var(--color-darkest);
|
||||
border-bottom: 1px solid var(--color-light);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
|
||||
.bottom {
|
||||
position: absolute;
|
||||
|
@ -78,6 +79,10 @@
|
|||
margin-right: .5rem;
|
||||
color: var(--color-middle);
|
||||
}
|
||||
|
||||
& > span:nth-child(2) {
|
||||
font-family: 'Roboto Condensed', sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
& .wrapper {
|
||||
|
@ -86,6 +91,7 @@
|
|||
width: 100%;
|
||||
gap: 1rem;
|
||||
justify-content: space-between;
|
||||
font-family: 'Roboto Condensed', sans-serif;
|
||||
|
||||
& > .info {
|
||||
flex-grow: 0;
|
||||
|
@ -104,7 +110,7 @@
|
|||
}
|
||||
|
||||
& > .pro {
|
||||
font-size: .6rem;
|
||||
font-size: .5rem;
|
||||
color: var(--color-middle);
|
||||
font-weight: lighter;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue