Skip to content

Commit 3a81023

Browse files
chmdlnYulikK
andauthored
873-feat: Update jetbrans logo (#878)
* feat: 873 - update jetBrains logo in partners widget * feat: 873 - add link to jetBrains website * feat: 873 - fix typo * feat: 873 - apply grayscale and lower contrast to JetBrains logo * feat: 873 - update logo type to mono black * refactor: 873 - use link-custom component * feat: 873 - add link to aws website * feat: 873 - add link to github website * refactor: 873 - wrap the logos in links inside the Partnered component * Update src/shared/icons/github.tsx Co-authored-by: Yuliya Kursevich <[email protected]> --------- Co-authored-by: Yuliya Kursevich <[email protected]> Co-authored-by: YulikK <[email protected]>
1 parent afb04b4 commit 3a81023

File tree

7 files changed

+43
-36
lines changed

7 files changed

+43
-36
lines changed

src/shared/assets/svg/jetbrains.svg

Lines changed: 4 additions & 27 deletions
Loading

src/shared/icons/aws.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ import Image from 'next/image';
33
import aws from '@/shared/assets/icons/aws-gray.svg';
44

55
export const AwsLogo = () => {
6-
return <Image src={aws} alt="AWS icon" />;
6+
return (
7+
<Image src={aws} alt="AWS icon" />
8+
);
79
};

src/shared/icons/github.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ import Image from 'next/image';
33
import github from '@/shared/assets/svg/github.svg';
44

55
export const GithubLogo = () => {
6-
return <Image src={github} alt=" github icon" />;
6+
return (
7+
<Image src={github} alt="github icon" />
8+
);
79
};

src/shared/icons/jetbrains.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@ import Image from 'next/image';
33
import jetbrains from '@/shared/assets/svg/jetbrains.svg';
44

55
export const JetBrainsLogo = () => {
6-
return <Image src={jetbrains} alt="jetbrains icon" />;
6+
return (
7+
<Image
8+
src={jetbrains}
9+
style={{ filter: 'grayscale(100%) contrast(15%)' }}
10+
width={200}
11+
alt="jetbrains icon"
12+
/>
13+
);
714
};

src/shared/ui/link-custom/link-custom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export const LinkCustom = ({
5555
}: LinkCustomProps) => {
5656
const resolveIcon = (): ReactNode => {
5757
switch (true) {
58-
case external && variant === 'textLink':
59-
return <TextLinkIcon />;
6058
case icon !== undefined:
6159
return icon;
60+
case external && variant === 'textLink':
61+
return <TextLinkIcon />;
6262
case variant === 'secondary':
6363
return <ArrowIcon />;
6464
case variant === 'rounded':

src/widgets/partnered/partnered.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
justify-content: space-between;
2020

2121
width: 100%;
22-
max-width: 500px;
22+
max-width: 600px;
2323
padding: 16px;
2424

2525
.partner-logo-container {

src/widgets/partnered/partnered.tsx

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AwsLogo, GithubLogo, JetBrainsLogo } from '@/shared/icons';
2+
import { LinkCustom } from '@/shared/ui/link-custom';
23
import { WidgetTitle } from '@/shared/ui/widget-title';
34

45
import './partnered.scss';
@@ -9,13 +10,31 @@ export const Partnered = () => (
910
<WidgetTitle size="small">Partnered with</WidgetTitle>
1011
<div className="partners">
1112
<div className="partner-logo-container">
12-
<JetBrainsLogo />
13+
<LinkCustom
14+
href="https://www.jetbrains.com"
15+
external
16+
icon={null}
17+
>
18+
<JetBrainsLogo />
19+
</LinkCustom>
1320
</div>
1421
<div className="partner-logo-container">
15-
<AwsLogo />
22+
<LinkCustom
23+
href="https://aws.amazon.com/"
24+
external
25+
icon={null}
26+
>
27+
<AwsLogo />
28+
</LinkCustom>
1629
</div>
1730
<div className="partner-logo-container">
18-
<GithubLogo />
31+
<LinkCustom
32+
href="https://github.com/"
33+
external
34+
icon={null}
35+
>
36+
<GithubLogo />
37+
</LinkCustom>
1938
</div>
2039
</div>
2140
</div>

0 commit comments

Comments
 (0)