Skip to content

Commit cfdcd9a

Browse files
committed
Commit4
1 parent 2df128b commit cfdcd9a

3 files changed

Lines changed: 39 additions & 17 deletions

File tree

src/app/[locale]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TestimonyContainer } from '@/app/(components)/(testimony)/testimony-container';
2-
import { TestimonyData } from '@/app/(data)/(mock)/testimonies';
1+
// import { TestimonyContainer } from '@/app/(components)/(testimony)/testimony-container';
2+
// import { TestimonyData } from '@/app/(data)/(mock)/testimonies';
33
import { Content, ScrollbarWrapper } from '@/app/(components)/(body)/body';
44
import { Form } from '@/components/Form';
55
import { Navbar } from '@/components/Navbar';
@@ -27,7 +27,7 @@ export default function Home() {
2727
/>
2828
<ProcessProgress/>
2929
<Clients />
30-
<TestimonyContainer testimonies={TestimonyData} />
30+
{/* <TestimonyContainer testimonies={TestimonyData} /> */}
3131
<Form />
3232
<Footer />
3333
</Content>

src/components/Clients/clients.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
Title,
1111
} from './styles';
1212
import Image from 'next/image';
13+
import LecodeLogoBackground from '@/images/lecode-logo-background.svg';
14+
import {LogoBackground} from '../../app/(components)/(testimony)/styles';
1315

1416
import novoLogo from '../../../public/clients/novoLogo.svg';
1517
import autonomyLogo from '../../../public/clients/autonomyLogo.svg';
@@ -30,6 +32,14 @@ export const Clients = () => {
3032
client7: <Image src={synergyLogo} alt='client7' width={200} height={200} />,
3133
};
3234

35+
36+
const BackgroundLogo = [
37+
{ $top: '-3px', $right: '-50px' },
38+
{ $top: '300px', $left: '-30px', $opacity: '10%' },
39+
{ $bottom: '450px', $right: '100px' },
40+
{ $bottom: '100px', $left: '90px', $opacity: '10%' },
41+
]
42+
3343
return (
3444
<ComponentContainer id='clients'>
3545
<TitleContainer>
@@ -38,6 +48,14 @@ export const Clients = () => {
3848
</Title>
3949
</TitleContainer>
4050
<ClientsContainer>
51+
{BackgroundLogo.map((props, index) => (
52+
<LogoBackground
53+
key={`logo-background-${index}`}
54+
src={LecodeLogoBackground}
55+
alt={`lecode-logo-background-${index}`}
56+
{...props}
57+
/>
58+
))}
4159
{Object.values(clients).map((client, index) => (
4260
<ClientCard key={index}>{client}</ClientCard>
4361
))}

src/components/Language/language.tsx

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import euaFlag from '../../../public/eua-flag.svg';
99
import { SelectContainer, OptionsContainer, Option, ContainerLanguage } from './styles';
1010

1111
const languageNames: Record<string, ReactNode> = {
12-
pt: <Image src={brazilFlag} alt='PT-BR' width={24} height={24} />,
13-
en: <Image src={euaFlag} alt='EN-US' width={24} height={24} />,
12+
pt: <Image src={brazilFlag} alt="PT-BR" width={24} height={24} />,
13+
en: <Image src={euaFlag} alt="EN-US" width={24} height={24} />,
1414
};
1515

1616
export const Language: React.FC = () => {
@@ -37,6 +37,7 @@ export const Language: React.FC = () => {
3737
}
3838

3939
router.refresh();
40+
setShowOptions(false);
4041
},
4142
[currentLocale, currentPathname, router],
4243
);
@@ -52,26 +53,29 @@ export const Language: React.FC = () => {
5253
onClick={handleIconClick}
5354
>
5455
<Image
55-
src={currentLocale === 'pt' ? brazilFlag : euaFlag}
56-
alt='language icon in black'
56+
src={currentLocale === "pt" ? brazilFlag : euaFlag}
57+
alt="language icon in black"
5758
width={24}
5859
height={24}
5960
/>
6061
</SelectContainer>
6162
{showOptions ? (
6263
<OptionsContainer>
63-
{languages.map((lang) => (
64-
<Option
65-
key={lang}
66-
onClick={() => {
67-
handleChange(lang);
68-
}}
69-
>
70-
<Paragraph1>{languageNames[lang]}</Paragraph1>
71-
</Option>
72-
))}
64+
{languages
65+
.filter((lang) => lang !== currentLocale)
66+
.map((lang) => (
67+
<Option
68+
key={lang}
69+
onClick={() => {
70+
handleChange(lang);
71+
}}
72+
>
73+
<Paragraph1>{languageNames[lang]}</Paragraph1>
74+
</Option>
75+
))}
7376
</OptionsContainer>
7477
) : null}
7578
</ContainerLanguage>
7679
);
7780
};
81+

0 commit comments

Comments
 (0)