-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikhil-Ladha <[email protected]>
- Loading branch information
1 parent
87cc057
commit a5b0044
Showing
6 changed files
with
221 additions
and
3 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
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,84 @@ | ||
import React from "react"; | ||
import image_src from "../../../assets/images/callout/callout.png"; | ||
import styled from "styled-components"; | ||
import Button from "../../../reusecore/Button"; | ||
|
||
const CTA_BottomWrapper = styled.div` | ||
display: flex; | ||
flex: 0 0 100%; | ||
width: 98%; | ||
height: 16rem; | ||
margin: 2rem auto 1.5rem; | ||
box-shadow: 0px 0px 16px 4px rgba(0, 0, 0, 0.1); | ||
a { | ||
display: block; | ||
} | ||
img { | ||
width: 16rem; | ||
height: 16rem; | ||
object-fit: cover; | ||
pointer-events: none; | ||
} | ||
.cta-content { | ||
padding: 0.5rem; | ||
display: flex; | ||
flex: auto; | ||
background: rgba(201, 252, 246, 0.3); | ||
text-align: center; | ||
align-items: center; | ||
height: 100%; | ||
p { | ||
flex: 0 0 75%; | ||
} | ||
a { | ||
flex: 0 0 25%; | ||
} | ||
} | ||
@media screen and (max-width: 500px) { | ||
display: block; | ||
width: 18rem; | ||
height: 18rem; | ||
margin: 1.5rem auto; | ||
img { | ||
width: 18rem; | ||
height: 18rem; | ||
position: absolute; | ||
filter: brightness(0.5); | ||
} | ||
.cta-content { | ||
position: absolute; | ||
height: 18rem; | ||
display: block; | ||
width: 18rem; | ||
background: none; | ||
padding: 4rem 1rem; | ||
z-index: 1; | ||
p { | ||
color: white; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
const defaultContent = "Join the Layer5 community and explore the world of service meshes!"; | ||
const defaultURL = "https://slack.layer5.io"; | ||
|
||
export const CTA_Bottom = ({ alt, button_text, content, image, url }) => { | ||
return ( | ||
<CTA_BottomWrapper> | ||
<div className="cta-content"> | ||
<p>{content ? content : defaultContent}</p> | ||
<Button primary title={button_text ? button_text : "Join Us"} url={url ? url : defaultURL} /> | ||
</div> | ||
<img src={image ? image : image_src} alt={alt ? alt : "Alt Text"} /> | ||
</CTA_BottomWrapper> | ||
); | ||
}; |
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,83 @@ | ||
import React from "react"; | ||
import image_src from "../../../assets/images/callout/callout.png"; | ||
import styled from "styled-components"; | ||
import Button from "../../../reusecore/Button"; | ||
|
||
const CTA_FullWidthWrapper = styled.div` | ||
display: flex; | ||
flex: 0 0 100%; | ||
width: 98%; | ||
height: 16rem; | ||
margin: 1.5rem auto; | ||
box-shadow: 0px 0px 16px 4px rgba(0, 0, 0, 0.1); | ||
a { | ||
display: block; | ||
} | ||
img { | ||
width: 16rem; | ||
height: 16rem; | ||
object-fit: cover; | ||
pointer-events: none; | ||
} | ||
.cta-content { | ||
padding: 0.5rem; | ||
display: flex; | ||
flex: auto; | ||
background: rgba(201, 252, 246, 0.3); | ||
text-align: center; | ||
align-items: center; | ||
height: 100%; | ||
p { | ||
flex: 0 0 75%; | ||
} | ||
a { | ||
flex: 0 0 25%; | ||
} | ||
} | ||
@media screen and (max-width: 500px) { | ||
display: block; | ||
width: 18rem; | ||
height: 18rem; | ||
margin: 1.5rem auto; | ||
img { | ||
width: 18rem; | ||
height: 18rem; | ||
position: absolute; | ||
filter: brightness(0.5); | ||
} | ||
.cta-content { | ||
position: absolute; | ||
height: 18rem; | ||
display: block; | ||
width: 18rem; | ||
background: none; | ||
padding: 4rem 1rem; | ||
p { | ||
color: white; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
const defaultContent = "Join the Layer5 community and explore the world of service meshes!"; | ||
const defaultURL = "https://slack.layer5.io"; | ||
|
||
export const CTA_FullWidth = ({ alt, button_text, content, image, url }) => { | ||
return ( | ||
<CTA_FullWidthWrapper> | ||
<img src={image ? image : image_src} alt={alt ? alt : "Alt Text"} /> | ||
<div className="cta-content"> | ||
<p>{content ? content : defaultContent}</p> | ||
<Button primary title={button_text ? button_text : "Join Us"} url={url ? url : defaultURL} external ={true} /> | ||
</div> | ||
</CTA_FullWidthWrapper> | ||
); | ||
}; |
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,43 @@ | ||
import React from "react"; | ||
import { Link } from "gatsby"; | ||
import image_src from "../../../assets/images/callout/callout.png"; | ||
import styled from "styled-components"; | ||
|
||
const CTA_ImageOnlyWrapper = styled.div` | ||
float: right; | ||
margin-left: 0.5rem; | ||
a { | ||
display: block; | ||
height: 15rem; | ||
background: rgb(201, 252, 246); | ||
} | ||
img { | ||
width: 20rem; | ||
height: 15rem; | ||
pointer-events: none; | ||
} | ||
@media screen and (max-width: 500px) { | ||
float: none; | ||
width: 20rem; | ||
margin: 1.5rem auto; | ||
} | ||
`; | ||
|
||
const defaultURL = "https://slack.layer5.io"; | ||
|
||
export const CTA_ImageOnly = ({ alt, image, url, blend }) => { | ||
return ( | ||
<CTA_ImageOnlyWrapper> | ||
<Link to={url ? url : defaultURL}> | ||
<img | ||
src={image ? image : image_src} | ||
alt={alt ? alt : "Alt Text"} | ||
style={{opacity: blend ? "0.7" : "1"}} | ||
/> | ||
</Link> | ||
</CTA_ImageOnlyWrapper> | ||
); | ||
}; |
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