Skip to content

Commit 22b32a7

Browse files
committed
Corrige erros de responsividade e altera o tamanho da ClientSection
1 parent f3f64ac commit 22b32a7

4 files changed

Lines changed: 30 additions & 9 deletions

File tree

src/components/Clients/clients.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use client'
22
import { Trans } from 'react-i18next';
3+
import styled from 'styled-components';
4+
import {Styles} from '@/styles';
35
import { Carousel } from '../Carousel';
46
import {
57
ComponentContainer,
@@ -21,15 +23,25 @@ import scouthubLogo from '../../../public/clients/scouthubLogo.svg';
2123
import workStory from '../../../public/clients/workStory.svg';
2224
import synergyLogo from '../../../public/clients/synergyLogo.svg';
2325

26+
const ResponsiveImage = styled(Image) `
27+
width: 200px;
28+
height: 200px;
29+
30+
@media (${Styles.devices.tablet}) {
31+
width: 150px;
32+
height: 150px
33+
}
34+
`;
35+
2436
export const Clients = () => {
2537
const clients: Record<string, JSX.Element> = {
26-
client1: <Image src={novoLogo} alt='client1' width={200} height={200} />,
27-
client2: <Image src={autonomyLogo} alt='client2' width={200} height={200} />,
28-
client3: <Image src={ethicsNetLogo} alt='client3' width={200} height={200} />,
29-
client4: <Image src={falconsLogo} alt='client4' width={200} height={200} />,
30-
client5: <Image src={scouthubLogo} alt='client5' width={200} height={200} />,
31-
client6: <Image src={workStory} alt='client6' width={200} height={200} />,
32-
client7: <Image src={synergyLogo} alt='client7' width={200} height={200} />,
38+
client1: <ResponsiveImage src={novoLogo} alt="client1" />,
39+
client2: <ResponsiveImage src={autonomyLogo} alt="client2" />,
40+
client3: <ResponsiveImage src={ethicsNetLogo} alt="client3" />,
41+
client4: <ResponsiveImage src={falconsLogo} alt="client4" />,
42+
client5: <ResponsiveImage src={scouthubLogo} alt="client5" />,
43+
client6: <ResponsiveImage src={workStory} alt="client6" />,
44+
client7: <ResponsiveImage src={synergyLogo} alt="client7" />,
3345
};
3446

3547

src/components/Clients/styles.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export const ComponentContainer = styled.div`
99
align-items: center;
1010
padding-top: 8rem;
1111
background-color: ${({ theme }) => theme.colors.gray};
12+
@media (${Styles.devices.tablet}) {
13+
padding-top: 4rem;
14+
}
1215
`;
1316

1417
export const TitleContainer = styled.div`
@@ -34,7 +37,6 @@ export const ClientsContainer = styled.div`
3437
max-width: 1200px;
3538
padding: 48px 101px 25px 48px;
3639
gap: 59px;
37-
3840
@media (${Styles.devices.tablet}) {
3941
display: none;
4042
}
@@ -43,7 +45,6 @@ export const ClientsContainer = styled.div`
4345
export const ClientsCarouselContainer = styled.div`
4446
padding: 48px 101px 101px 48px;
4547
display: none;
46-
4748
@media (${Styles.devices.tablet}) {
4849
display: block;
4950
}
@@ -54,4 +55,8 @@ export const ClientCard = styled.div`
5455
height: 200px;
5556
border-radius: 50%;
5657
background-color: #D6D6D6;
58+
@media (${Styles.devices.tablet}) {
59+
width: 150px;
60+
height: 150px
61+
}
5762
`;

src/components/Form/styles.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export const Container = styled.div`
1414
padding-top: 8rem; // 128px
1515
padding-bottom: 2rem; // 10px
1616
background: ${({ theme }) => theme.colors.white};
17+
@media (${Styles.devices.tablet}) {
18+
padding-top: 0rem;
19+
}
1720
`;
1821

1922
export const FormContainer = styled.div`

src/components/HeroSection/styles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export const CardsContainer = styled(motion.div)`
242242
flex-direction: column;
243243
align-items: center;
244244
top: 0;
245+
padding-bottom: 40px;
245246
}
246247
`;
247248

0 commit comments

Comments
 (0)