Skip to content

Commit

Permalink
Add carousel to hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
blindaa121 committed Jan 7, 2025
1 parent 39672e2 commit df84d35
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 17 deletions.
55 changes: 41 additions & 14 deletions src/pages/strata-cloud-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React from "react";
// components
import Layout from "@theme/Layout";
import SCMCard from "./SCMCard";
import Slider from "../../components/Slider/Slider";
import "./scm.scss";

export default function SCMLandingPage() {
const heroHeader = "Strata Cloud Manager";
const heroDescription =
"Strata Cloud Manager™ enables you to easily manage your Palo Alto Networks Network Security infrastructureincluding NGFWs and SASE environment—from the cloud, via one unified management interface.";
"Strata Cloud Manager™ makes it easy to manage Palo Alto Networks security infrastructure, including NGFW and SASE environments, from the cloud through a unified management interface. Its APIs further extend this vision by providing a consistent framework for developers to create automated and integrated solutions for the Strata network security platform.";
const videoSrc =
"https://www.paloaltonetworks.com/content/dam/pan/en_US/images/cosmos-hardware/optimized/COSMOS-PROMO-MIKE_DEMO_VIDEO_3-Comprehensive_Management_Deployments_V3.mp4";
const scmCards = [
Expand Down Expand Up @@ -236,24 +237,40 @@ export default function SCMLandingPage() {
},
];

const SCM_SLIDER_IMAGES = [
"/img/scm-landing/slider-1.png",
"/img/scm-landing/slider-2.png",
"/img/scm-landing/slider-3.png",
];

return (
<Layout
description="Strata Cloud Manager description"
title="Strata Cloud Manager"
>
<video
autoPlay
loop
muted
playsInline
className="scm-hero-video"
poster="https://via.placeholder.com/1920x1080"
>
<source src={videoSrc} type="video/mp4" />
</video>
<section className="scm-hero-container">
<h1 className="hero--header">{heroHeader}</h1>
<p className="hero--description text--light">{heroDescription}</p>
<section className="scm-hero-container container">
<div className="scm-hero-content-container">
<div className="scm-hero__left-section">
<h1 className="hero--header">{heroHeader}</h1>
<p className="hero--description text--light">{heroDescription}</p>
</div>
<div className="scm-hero__right-section">
<Slider
className="product-hero__slider-container"
slidesToShow={1}
slidesToScroll={1}
>
{SCM_SLIDER_IMAGES.map((sliderImg, i) => (
<img
className="scm-slider-img"
key={i}
alt={sliderImg}
src={sliderImg}
/>
))}
</Slider>
</div>
</div>
</section>
<section className="scm-bg">
<div className="scm-cards-container container">
Expand All @@ -268,6 +285,16 @@ export default function SCMLandingPage() {
/>
))}
</div>
<video
autoPlay
loop
muted
playsInline
className="scm-hero-video"
poster="https://via.placeholder.com/1920x1080"
>
<source src={videoSrc} type="video/mp4" />
</video>
</section>
{/* <UseCases
header={TERRAFORM_USE_CASES_CONTENT.header}
Expand Down
27 changes: 24 additions & 3 deletions src/pages/strata-cloud-manager/scm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,25 @@ html[data-theme="dark"] {
}
}

.scm-hero-content-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding-top: 2rem;
padding-bottom: 2rem;

@media (max-width: 768px) {
flex-direction: column;
}
}

.scm-hero-container {
display: flex;
flex-direction: column;
width: 100vw;
margin-left: calc(50% - 50vw);
padding: 1rem;
min-height: 350px;
align-items: center;
justify-content: center;
z-index: 10;

h1 {
Expand All @@ -42,6 +52,17 @@ html[data-theme="dark"] {
}
}

.scm-hero__left-section,
.scm-hero__right-section {
max-width: 500px;
width: 100%;
padding: 0.5rem;
}

.scm-slider-img {
border-radius: 1rem;
}

.scm-cards-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
Expand Down
Binary file added static/img/scm-landing/slider-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/scm-landing/slider-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/scm-landing/slider-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df84d35

Please sign in to comment.