Skip to content

Commit b016398

Browse files
authored
Merge pull request #200 from estartando-devs/develop
merge
2 parents 794f6c8 + c79d4ef commit b016398

File tree

5 files changed

+18
-76
lines changed

5 files changed

+18
-76
lines changed

src/components/Header/index.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Image from 'next/legacy/image';
2+
import { LinkWrapper } from '../LinkWrapper';
23
import { Logo } from '../Logo';
34
import { Typography } from '../Typography';
45
import * as S from './styles';
@@ -25,6 +26,14 @@ export const Header = () => (
2526
<Typography weight="400">
2627
Transformando o mundo através da tecnologia
2728
</Typography>
29+
<S.ContainerButton>
30+
<LinkWrapper
31+
href={process.env.NEXT_PUBLIC_INSCRICOES_URL || ''}
32+
legacyBehavior
33+
>
34+
<S.BannerButton>Inscreva-se!</S.BannerButton>
35+
</LinkWrapper>
36+
</S.ContainerButton>
2837
</S.ContainerHeading>
2938
</S.SectionHeader>
3039
</S.ContainerHeader>

src/components/Header/styles.ts

+9
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ export const ContainerButton = styled.div`
7575
max-width: 100%;
7676
}
7777
`;
78+
79+
export const BannerButton = styled.a`
80+
color: ${({ theme }) => theme.palette.design.white} !important;
81+
max-width: 150px;
82+
padding: 14px 24px !important;
83+
display: flex;
84+
background: ${({ theme }) => theme.palette.primary.main};
85+
border-radius: 4px;
86+
`;

src/components/Subscribe/BannerSubscribe/index.tsx

-19
This file was deleted.

src/components/Subscribe/BannerSubscribe/styles.ts

-55
This file was deleted.

src/pages/index.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
Subscribe,
1414
WhatWeTeach,
1515
} from '../components';
16-
import { BannerSubscribe } from '../components/Subscribe/BannerSubscribe';
1716
import {
1817
cousesMock,
1918
howWeDoMock,
@@ -40,7 +39,6 @@ const Home = () => {
4039

4140
return (
4241
<Layout>
43-
<BannerSubscribe />
4442
<Header />
4543
<WhatWeTeach {...whatWeTeachMock} />
4644
<Courses {...cousesMock} />

0 commit comments

Comments
 (0)