Skip to content

Commit

Permalink
add sponsors to landing page (#1104)
Browse files Browse the repository at this point in the history
* add sponsors to landing page

* fix: add more gap between the sponsors

---------

Co-authored-by: ollibowers <80164276+ollibowers@users.noreply.github.com>
  • Loading branch information
martanman and ollibowers authored Feb 13, 2024
1 parent e2fb6e6 commit 01fa866
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 1 deletion.
Binary file added frontend/src/assets/LandingPage/janestreet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/src/assets/LandingPage/tiktok.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const FeatureTitle = styled.h1`
position: relative;
margin-bottom: 75px;
font-weight: 650;
margin-top: 200px;
margin-top: 90px;
`;

const CardsSection = styled.div`
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import Hero from './Hero';
import HowToUse from './HowToUse';
import InteractiveViewSection from './InteractiveViewSection';
import KeyFeaturesSection from './KeyFeaturesSection';
import SponsorSection from './SponsorSection';

const LandingPage = () => (
<>
<Hero />
<SponsorSection />
<KeyFeaturesSection />
{inDev && <InteractiveViewSection />}
<HowToUse />
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/pages/LandingPage/SponsorSection/SponsorSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from 'react';
import PageContainer from 'styles/PageContainer';
import janestreetLogo from 'assets/LandingPage/janestreet.png';
import tiktokLogo from 'assets/LandingPage/tiktok.svg';
import S from './styles';

type LogoProps = { src: string; href: string };

const Logo = ({ src, href }: LogoProps) => (
<a href={href} target="_blank" rel="noopener noreferrer">
<S.LogoImg src={src} />
</a>
);

const SponsorSection = () => (
<PageContainer>
<S.SponsorsText>Our sponsors</S.SponsorsText>
<S.LogosWrapper>
<Logo href="https://www.janestreet.com" src={janestreetLogo} />
<Logo href="https://www.tiktok.com" src={tiktokLogo} />
</S.LogosWrapper>
</PageContainer>
);

export default SponsorSection;
3 changes: 3 additions & 0 deletions frontend/src/pages/LandingPage/SponsorSection/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import SponsorSection from './SponsorSection';

export default SponsorSection;
28 changes: 28 additions & 0 deletions frontend/src/pages/LandingPage/SponsorSection/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import styled from 'styled-components';

const SponsorsText = styled.h1`
font-size: 2rem;
background: -webkit-linear-gradient(30deg, #9f62de, #b77eff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
position: relative;
margin-bottom: 1rem;
font-weight: 650;
`;

const LogosWrapper = styled.div`
display: flex;
justify-content: center;
gap: 4rem;
`;

const LogoImg = styled.img`
height: 100px;
`;

export default {
SponsorsText,
LogosWrapper,
LogoImg
};

0 comments on commit 01fa866

Please sign in to comment.