-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ff2b0d
commit e6c9fe5
Showing
4 changed files
with
116 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import { media } from '../lib/responsive'; | ||
|
||
export function Streamline() { | ||
return ( | ||
<a href="https://bit.ly/3SNgpKo" style={{ textDecoration: 'none' }}> | ||
<PromoContainer> | ||
<PromoContent> | ||
<PromoInfo> | ||
<PromoLogo /> | ||
<PromoTitle>Expand Your Icon Collection</PromoTitle> | ||
<PromoSub>with Streamline</PromoSub> | ||
<PromoImage src="./streamline-ad.png" /> | ||
<PromoDescription>170,000 Vector Icons</PromoDescription> | ||
<SponsorLabel>Our sponsor</SponsorLabel> | ||
</PromoInfo> | ||
</PromoContent> | ||
</PromoContainer> | ||
</a> | ||
); | ||
} | ||
|
||
// Styled components go here | ||
|
||
const PromoContainer = styled.div` | ||
border-radius: 12px; | ||
border: 1px solid var(--g6); | ||
text-align: center; | ||
margin-top: 24px; | ||
text-decoration: none; | ||
&:hover { | ||
background-color: var(--g7); | ||
} | ||
`; | ||
const SponsorLabel = styled.div` | ||
font-size: 12px; | ||
font-weight: 400; | ||
color: var(--g4); | ||
margin: 10px 0; | ||
`; | ||
|
||
const PromoContent = styled.div` | ||
// Your content styles here, similar to SponsorText | ||
`; | ||
|
||
const PromoLogo = styled.div` | ||
@keyframes my-animation { | ||
0% { | ||
transform: scale(1); | ||
} | ||
45% { | ||
transform: scale(1); | ||
} | ||
50% { | ||
transform: scale(1.2); | ||
} | ||
55% { | ||
transform: scale(1); | ||
} | ||
90% { | ||
transform: scale(1); | ||
} | ||
95% { | ||
transform: scale(1.2); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} | ||
background-image: url('./streamline-ad-logo.png'); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
background-size: 100% 100%; | ||
width: 32px; | ||
height: 32px; | ||
border-radius: 50%; | ||
margin: 14px auto; | ||
animation-name: my-animation; | ||
animation-duration: 5s; | ||
animation-timing-function: ease; | ||
animation-iteration-count: infinite; | ||
animation-delay: 5s; | ||
`; | ||
|
||
const PromoImage = styled.img` | ||
width: 70%; | ||
`; | ||
|
||
const PromoInfo = styled.div` | ||
// Styles for the text container, similar to SponsorRight | ||
`; | ||
|
||
const PromoTitle = styled.h2` | ||
font-size: 16px; | ||
font-weight: 600; | ||
margin: 0 auto; | ||
`; | ||
|
||
const PromoSub = styled.h2` | ||
font-size: 14px; | ||
margin: 0 auto 30px auto; | ||
`; | ||
|
||
const PromoDescription = styled.p` | ||
border: 1px solid var(--g6); | ||
margin: 6%; | ||
border-radius: 8px; | ||
font-size: 12px; | ||
padding: 10px 0; | ||
font-weight: 600; | ||
`; |
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.