-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sponsors to landing page (#1104)
* add sponsors to landing page * fix: add more gap between the sponsors --------- Co-authored-by: ollibowers <[email protected]>
- Loading branch information
1 parent
e2fb6e6
commit 01fa866
Showing
7 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
frontend/src/pages/LandingPage/SponsorSection/SponsorSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import SponsorSection from './SponsorSection'; | ||
|
||
export default SponsorSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}; |