Skip to content

Commit

Permalink
Merge pull request #5224 from layer5io/ritiksaxena124/new-section
Browse files Browse the repository at this point in the history
[Section]New section for AWS and GCP on hompage
  • Loading branch information
ritiksaxena124 authored Dec 22, 2023
2 parents 4e392fc + 51d3f66 commit b12cbfc
Show file tree
Hide file tree
Showing 8 changed files with 706 additions and 20 deletions.
14 changes: 11 additions & 3 deletions src/components/Features/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ const Features = (props) => {
<ContentWrapper>
<h2>{props.title}</h2>
<p className="text">{props.desc}</p>
<Link to={props.redirectLink}>Learn more &rarr;</Link>
{props.redirectLink ? <Link to={props.redirectLink}>Learn more &rarr;</Link>
: (<div className="small-card-container">
{props.redirectLinkWithImage.map((item) => (
<Link key={item.text} className="small-card" to={item.redirect}>
<img src={item.image} width={40} />
<span>{item.text}</span>
</Link>
))}
</div>)}
</ContentWrapper>
{props.animationOne ? (
<ImageWrapper ref={containerRef}>
Expand All @@ -117,7 +125,7 @@ const Features = (props) => {
>
<img src={getPerson(props.cursor * 2 + 1)} alt="" />
</SvgRandomWrapper>
<Link to={props.redirectLink}>
<Link to={props.redirectLink ? props.redirectLink : props.redirectLinkWithImage[0].redirect}>
<img src={props.imgLink} alt="image" />
</Link>
</ImageWrapper>
Expand All @@ -143,7 +151,7 @@ const Features = (props) => {
>
<img src={getPerson(props.cursor * 2 + 1)} alt="" />
</SvgRandomWrapper>
<Link to={props.redirectLink}>
<Link to={props.redirectLink ? props.redirectLink : props.redirectLinkWithImage[0].redirect}>
<img src={props.imgLink} alt="image" />
</Link>
</ImageWrapperTwo>
Expand Down
24 changes: 24 additions & 0 deletions src/components/Features/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,30 @@ export const Container = styled.div`
animation-timing-function: ease-in-out;
-webkit-animation-timing-function: ease-in-out;
}
.small-card-container {
display: flex;
gap: 1rem;
}
.small-card {
padding: 0.75rem 1.25rem;
display: flex;
gap: 0.75rem;
align-items: center;
width: fit-content;
border-radius: 0.25rem;
cursor: pointer;
color: ${(props) => props.theme.text};
border: 2px solid ${(props) => props.theme.whiteZeroEightToBlackZeroEight};
&:hover {
background-color: ${(props) => props.theme.whiteZeroEightToBlackZeroEight};
}
@media screen and (max-width: 500px) {
flex-direction: column;
justify-content: center;
text-align: center;
}
}
`;
export const SvgRandomWrapper = styled.div`
position: absolute;
Expand Down
292 changes: 292 additions & 0 deletions src/sections/Home/FeaturesContainer/images/aws-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/sections/Home/FeaturesContainer/images/aws-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/sections/Home/FeaturesContainer/images/aws-logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b12cbfc

Please sign in to comment.