topbar improvements
This commit is contained in:
parent
87ca027277
commit
e4821889d2
2 changed files with 66 additions and 67 deletions
|
@ -27,11 +27,11 @@ const TopBar = ({ search, setSearch, absolute }) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${styles.Container} ${
|
className={`${styles.Container} ${
|
||||||
absolute && width > 1000 ? styles.Absolute : ""
|
absolute ? styles.Absolute : ""
|
||||||
} ${setSearch ? styles.HasSearch : ""}`}
|
} ${setSearch ? styles.HasSearch : ""}`}
|
||||||
>
|
>
|
||||||
<Link to="/">
|
<Link to="/" className={styles.Title}>
|
||||||
<h1 className={styles.Title}>React Movie Finder</h1>
|
<h1>React Movie Finder</h1>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{setSearch && width > 1000 && Search}
|
{setSearch && width > 1000 && Search}
|
||||||
|
|
|
@ -33,16 +33,11 @@
|
||||||
|
|
||||||
.Container.Absolute {
|
.Container.Absolute {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: linear-gradient(to bottom, #00000090, #00000010);
|
background: linear-gradient(to bottom, #00000099, #00000050);
|
||||||
}
|
}
|
||||||
|
|
||||||
.Container a {
|
.Container a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Container a::hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.Search {
|
.Search {
|
||||||
|
@ -55,3 +50,7 @@
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: var(--secondary);
|
background-color: var(--secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Title {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
Reference in a new issue