Skip to content

Commit

Permalink
add bottom cta to every page
Browse files Browse the repository at this point in the history
  • Loading branch information
bmstefanski committed Oct 11, 2021
1 parent d61a462 commit 6e97192
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ function ListItem({ title, href }: SingleFooterListItem) {
}

const FooterWrapper = styled.div`
margin-top: 10rem;
padding-top: 10rem;
padding-bottom: 4rem;
background: rgb(var(--secondary));
Expand All @@ -128,6 +127,7 @@ const ListWrapper = styled.div`
flex-direction: column;
margin-bottom: 5rem;
margin-right: 5rem;
& > *:not(:first-child) {
margin-top: 1rem;
}
Expand Down Expand Up @@ -167,6 +167,7 @@ const BottomBar = styled.div`
margin-top: 6rem;
display: flex;
justify-content: space-between;
align-items: center;
${media('<=tablet')} {
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion views/ContactPage/Cta.tsx → components/WaveCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Button from 'components/Button';
import styled from 'styled-components';
import { media } from 'utils/media';

export default function Cta() {
export default function WaveCta() {
return (
<>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none">
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { NavItems } from 'types';
import NavigationDrawer from 'components/NavigationDrawer';
import NewsletterModal from 'components/NewsletterModal';
import Footer from 'components/Footer';
import WaveCta from 'components/WaveCta';
import { NewsletterModalContextProvider, useNewsletterModalContext } from 'contexts/newsletter-modal.context';
import { PropsWithChildren } from 'react';

Expand Down Expand Up @@ -46,6 +47,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<Modals />
<Navbar items={navItems} />
{standaloneMarkup}
<WaveCta />
<Footer />
</Providers>
</>
Expand Down
2 changes: 0 additions & 2 deletions pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { media } from 'utils/media';

import FormSection from 'views/ContactPage/FormSection';
import InformationSection from 'views/ContactPage/InformationSection';
import Cta from 'views/ContactPage/Cta';

export default function ContactPage() {
return (
Expand All @@ -18,7 +17,6 @@ export default function ContactPage() {
<InformationSection />
<FormSection />
</ContactContainer>
<Cta />
</div>
);
}
Expand Down
4 changes: 4 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const HomepageWrapper = styled.div`
& > *:not(:first-child) {
margin-top: 15rem;
}
& > :last-child {
margin-bottom: 15rem;
}
`;

export async function getStaticProps() {
Expand Down

0 comments on commit 6e97192

Please sign in to comment.