Skip to content

Commit

Permalink
Merge pull request #200 from estartando-devs/develop
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
ramonxm authored May 20, 2024
2 parents 794f6c8 + c79d4ef commit b016398
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 76 deletions.
9 changes: 9 additions & 0 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from 'next/legacy/image';
import { LinkWrapper } from '../LinkWrapper';
import { Logo } from '../Logo';
import { Typography } from '../Typography';
import * as S from './styles';
Expand All @@ -25,6 +26,14 @@ export const Header = () => (
<Typography weight="400">
Transformando o mundo através da tecnologia
</Typography>
<S.ContainerButton>
<LinkWrapper
href={process.env.NEXT_PUBLIC_INSCRICOES_URL || ''}
legacyBehavior
>
<S.BannerButton>Inscreva-se!</S.BannerButton>
</LinkWrapper>
</S.ContainerButton>
</S.ContainerHeading>
</S.SectionHeader>
</S.ContainerHeader>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Header/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ export const ContainerButton = styled.div`
max-width: 100%;
}
`;

export const BannerButton = styled.a`
color: ${({ theme }) => theme.palette.design.white} !important;
max-width: 150px;
padding: 14px 24px !important;
display: flex;
background: ${({ theme }) => theme.palette.primary.main};
border-radius: 4px;
`;
19 changes: 0 additions & 19 deletions src/components/Subscribe/BannerSubscribe/index.tsx

This file was deleted.

55 changes: 0 additions & 55 deletions src/components/Subscribe/BannerSubscribe/styles.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
Subscribe,
WhatWeTeach,
} from '../components';
import { BannerSubscribe } from '../components/Subscribe/BannerSubscribe';
import {
cousesMock,
howWeDoMock,
Expand All @@ -40,7 +39,6 @@ const Home = () => {

return (
<Layout>
<BannerSubscribe />
<Header />
<WhatWeTeach {...whatWeTeachMock} />
<Courses {...cousesMock} />
Expand Down

0 comments on commit b016398

Please sign in to comment.