Skip to content

Commit 6674601

Browse files
committed
Commit1
1 parent 422b73c commit 6674601

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

public/language.svg

Lines changed: 3 additions & 2 deletions
Loading

public/lecode-logo.svg

Lines changed: 5 additions & 5 deletions
Loading

src/components/NavbarMobile/header-mobile.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use client';
2-
import Image from 'next/image';
32
import Link from 'next/link';
43
import { useTranslation } from 'react-i18next';
54
import { ContactButton } from '@/components/ContactButton';
65
import lecodeLogo from '../../../public/lecode-logo.svg';
76
import { InternalLinks } from '../InternalLinks';
87
import { Language } from '../Language';
9-
import { NavbarContainer, NavbarContentContainer,ContactTraslate } from './styles';
8+
import { NavbarContainer, NavbarContentContainer,ContactTraslate, LecodeLogo } from './styles';
109

1110

1211
export const HeaderMobile = () => {
@@ -15,7 +14,7 @@ export const HeaderMobile = () => {
1514
<NavbarContainer>
1615
<NavbarContentContainer>
1716
<InternalLinks />
18-
<Image
17+
<LecodeLogo
1918
alt='LeCode logo: green triangle with white Le and black code'
2019
src={lecodeLogo}
2120
/>

src/components/NavbarMobile/styles.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Image from 'next/image';
12
import styled from 'styled-components';
23

34

@@ -24,7 +25,7 @@ export const NavbarContainer = styled.header`
2425
z-index: 1000;
2526
padding: 0.625rem;
2627
27-
@media ( min-width: 768px){
28+
@media (min-width: 768px){
2829
padding-right: 0.625rem;
2930
}
3031
`;
@@ -33,10 +34,16 @@ export const NavbarContentContainer = styled.div`
3334
display: flex;
3435
justify-content: space-between;
3536
align-items: center;
36-
width: 100%;
37+
width: 98%;
3738
3839
@media (min-width: 1440px) {
3940
width: 90rem;
4041
}
4142
`;
4243

44+
export const LecodeLogo = styled(Image) `
45+
@media (max-width: 501px) {
46+
width: 50px;
47+
}
48+
`;
49+

0 commit comments

Comments
 (0)