-
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.
Merge pull request #5225 from iArchitSharma/mod
AWS page hero image size and transition update
- Loading branch information
Showing
9 changed files
with
230 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { Container, Wrapper, CardWrapper, CardImageContainer, Image, CardTitle } from "./style"; | ||
|
||
import { Link } from "gatsby"; | ||
|
||
const Card = ({ title, imgSrc, redirectLink }) => { | ||
return ( | ||
<> | ||
<Link to={redirectLink}> | ||
<CardWrapper> | ||
<CardImageContainer> | ||
<Image src={imgSrc} alt="gcp architecture diagram" /> | ||
</CardImageContainer> | ||
<CardTitle>{title}</CardTitle> | ||
</CardWrapper> | ||
</Link> | ||
</> | ||
); | ||
}; | ||
|
||
const RelatedPicks = ({ content }) => { | ||
|
||
return ( | ||
<> | ||
<Container> | ||
<h2>You may also like</h2> | ||
<Wrapper> | ||
{ | ||
content.map(item => ( | ||
<Card key={item.id} title={item.title} imgSrc={item.imgSrc} redirectLink={item.redirectLink}/> | ||
)) | ||
} | ||
</Wrapper> | ||
</Container> | ||
</> | ||
); | ||
}; | ||
|
||
export default RelatedPicks; |
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,31 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled("div")` | ||
max-width: 1170px; | ||
margin: 0 auto; | ||
padding: 0 1rem; | ||
`; | ||
|
||
export const Wrapper = styled("div")` | ||
padding: 2rem 0; | ||
display: flex; | ||
gap: 1.5rem; | ||
flex-wrap: wrap; | ||
`; | ||
|
||
export const CardWrapper = styled("div")` | ||
max-width: 365px; | ||
background: ${props => props.theme.grey212121ToLinear2}; | ||
border-radius: 0.25rem; | ||
box-shadow: 0px 0px ${props => props.theme.projectShadowsize} ${props => props.theme.green00D3A9ToGreyE6E6E6}; | ||
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); | ||
&:hover { | ||
box-shadow: 0px 0px 5px ${props => props.theme.whiteToGreen3C494F}; | ||
} | ||
`; | ||
export const CardImageContainer = styled("div")``; | ||
export const Image = styled("img")``; | ||
export const CardTitle = styled("h4")` | ||
text-align: center; | ||
padding: 2rem 1rem; | ||
`; |
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
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
Oops, something went wrong.