Skip to content

Commit

Permalink
style: improve login responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
james-hinton committed Nov 22, 2023
1 parent 3a8ae7e commit 68a36ee
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
7 changes: 5 additions & 2 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ const Header = () => {
</div>

{/* Button for login */}
<div>
<div
className="header__mobile-menu"
>
<a
href="https://portal.staging.stac.spatialdays.com/explorer"
className="header__link header__mobile-login"
target="_blank"
className="header__link header__mobile-login"

>
Login
</a>
Expand Down
36 changes: 22 additions & 14 deletions src/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,31 @@
}
}

&__mobile-login {
background-color: rgb(41, 80, 212);
color: white;
padding: 0.5rem 5rem;
border-radius: 5px;
font-weight: 500;
transition: all 0.3s ease-in-out;
margin-top: 2rem;

&:hover {
background-color: rgb(41, 80, 212, 0.8);
transform: scale(1.05);
&__mobile {
&-login {
background-color: rgb(41, 80, 212);
color: white;
padding: 0.5rem 5rem;
border-radius: 5px;
font-weight: 500;
transition: all 0.3s ease-in-out;
margin-top: 2rem;

&:hover {
background-color: rgb(41, 80, 212, 0.8);
transform: scale(1.05);
color: white;
}

@media (min-width: 600px) {
display: none;
}
}

@media (min-width: 600px) {
display: none;
&-menu {
@media (min-width: 600px) {
display: none;
}
}
}

Expand Down

0 comments on commit 68a36ee

Please sign in to comment.