Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
govinda777 committed Nov 30, 2024
1 parent 8b40d59 commit e5d49e5
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 27 deletions.
6 changes: 6 additions & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Navbar: React.FC = () => {
return (
<Header>
<Logo>
<img src="/assets/logo.jpg" alt="Xperience" />
<img src="assets/logo.svg" alt="Xperience" />
</Logo>
<Nav>
<a href="#">Soluções</a>
Expand Down
98 changes: 72 additions & 26 deletions src/components/Navbar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,67 +5,97 @@ export const Header = styled.header`
display: flex;
justify-content: space-around;
align-items: center;
padding: 0.75rem 1.5rem;
padding: 1.25rem 4.5rem;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
transition: box-shadow 0.3s ease;
&:hover {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
@media (max-width: 1024px) {
padding: 0.75rem;
padding: 1rem;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.75rem;
justify-content: center;
}
`;

export const Logo = styled.div`
flex-shrink: 0;
display: flex;
align-items: center;
img {
height: 35px;
height: 32px;
width: auto;
transition: transform 0.2s ease;
}
&:hover img {
transform: scale(1.02);
}
@media (max-width: 1024px) {
width: 100%;
text-align: center;
justify-content: center;
}
`;

export const Nav = styled.nav`
display: flex;
gap: 1.5rem;
gap: 2.75rem;
align-items: center;
justify-content: center;
margin: 0 1rem;
margin: 0 3rem;
a {
color: #1a1a1a;
color: #1E1E1E;
text-decoration: none;
font-size: 0.95rem;
font-weight: 500;
transition: color 0.2s ease;
font-size: 0.9375rem;
font-weight: 400;
transition: all 0.2s ease;
white-space: nowrap;
position: relative;
letter-spacing: 0.2px;
&:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background-color: #000;
transition: width 0.2s ease;
border-radius: 2px;
}
&:hover {
color: #666;
color: #000;
&:after {
width: 100%;
}
}
}
@media (max-width: 1024px) {
width: 100%;
margin: 0.5rem 0;
margin: 0.75rem 0;
flex-wrap: wrap;
gap: 1rem;
gap: 1.5rem;
}
`;

export const ButtonsContainer = styled.div`
display: flex;
gap: 0.75rem;
gap: 1rem;
align-items: center;
flex-shrink: 0;
Expand All @@ -76,36 +106,52 @@ export const ButtonsContainer = styled.div`
`;

export const LoginButton = styled.a`
padding: 0.5rem 1.25rem;
padding: 0.6875rem 1.625rem;
border: 1.5px solid #000;
border-radius: 50px;
border-radius: 100px;
color: #000;
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
font-size: 0.9375rem;
transition: all 0.2s ease;
white-space: nowrap;
background-color: transparent;
letter-spacing: 0.2px;
&:hover {
background-color: #000;
color: white;
background-color: rgba(0, 0, 0, 0.04);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
&:active {
transform: translateY(0);
}
`;

export const SignUpButton = styled.a`
padding: 0.5rem 1.25rem;
padding: 0.6875rem 1.625rem;
background-color: #000;
border: 1.5px solid #000;
border-radius: 50px;
border-radius: 100px;
color: white;
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
font-size: 0.9375rem;
transition: all 0.2s ease;
white-space: nowrap;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
letter-spacing: 0.2px;
&:hover {
background-color: #333;
border-color: #333;
background-color: #1a1a1a;
border-color: #1a1a1a;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
&:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
`;

0 comments on commit e5d49e5

Please sign in to comment.