Skip to content

Commit

Permalink
style: improve login button responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
james-hinton committed Nov 22, 2023
1 parent 7dce90c commit 3a8ae7e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 6 deletions.
25 changes: 23 additions & 2 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,33 @@ const Header = () => {
<a href="/about" className="header__link">
Details
</a>
<a href="https://spatialdays.com/" target="_blank" className="header__link">
<a
href="https://spatialdays.com/"
target="_blank"
className="header__link"
>
Who We Are
</a>

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

{/* Button for login */}
<div>
<a
href="https://portal.staging.stac.spatialdays.com/explorer"
className="header__link header__mobile-login"
target="_blank"
>
Login
</a>
</div>
Expand Down
36 changes: 32 additions & 4 deletions src/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
height: 100px;
padding: 0 2rem;

@media (max-width: 600px) {
height: 150px;
}

@media (max-width: 1200px) {
margin: 0 6%;
}
Expand All @@ -27,7 +31,6 @@
&__links {
display: flex;
align-items: center;

}

&__link {
Expand All @@ -37,26 +40,51 @@
margin: 0 1.5rem;
transition: all 0.3s ease-in-out;
font-weight: 300;
min-width: 50px;
&:hover {
color: var(--color-link-hover-light);
}

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

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

&__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 (max-width: 768px) {
@media (max-width: 900px) {
flex-direction: column;
padding-bottom: 1.5rem;
&__logo {
Expand Down

0 comments on commit 3a8ae7e

Please sign in to comment.