Skip to content

Commit

Permalink
Merge pull request #540 from btorresgil/cert-expire-advisory
Browse files Browse the repository at this point in the history
chore(swfw): Add cert expire banner to Orchestration Hub
  • Loading branch information
btorresgil authored Nov 20, 2023
2 parents a9b66c4 + 752397d commit a0f1c90
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/components/CertExpireBanner/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from "react";
import Link from "@docusaurus/Link";
import "./styles.scss";

export default function CertExpireBanner() {
return (
<div className="banner-cert-expire">
<h4>
<div className="banner-cert-expire__line1">
Emergency Update Required
</div>
<div className="banner-cert-expire__line2">
PAN-OS Root Certificate Expiration
</div>
</h4>
<div className="view-advisory-link">
<Link
to="https://live.paloaltonetworks.com/t5/customer-advisories/emergency-update-required-pan-os-root-and-default-certificate/ta-p/564672"
className="tab-item__link"
>
<span>View Advisory</span>
<img
src="/img/icons/arrow-forward.svg"
alt="Forward arrow icon"
height="15"
/>
</Link>
</div>
</div>
);
}
47 changes: 47 additions & 0 deletions src/components/CertExpireBanner/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
html[data-theme="dark"] {
.banner-cert-expire {
color: black;
}
}

.banner-cert-expire {
background-color: #ffffff;
padding: 13px;
width: 100%;
max-width: 30em;
position: relative;
top: 10px;
margin-left: auto;
margin-right: auto;
border-radius: 4px;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
z-index: 100;

h4 {
margin-bottom: 0.4em;
font-family: "Montserrat", sans-serif;
}

&__line2 {
font-weight: 500;
}

// .view-advisory-link {
// margin: 0.5em 0;
// }

.tab-item__link {
display: flex;
align-items: center;
color: var(--ifm-color-main);

img {
max-width: 25px;
margin-left: 0.25em;
}

:hover {
color: var(--ifm-color-main);
}
}
}
2 changes: 2 additions & 0 deletions src/pages/swfw.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import "./swfw.scss";
import CloudCard from "../components/CloudCard";
import LinkList from "../components/LinkList";
import CertExpireBanner from "../components/CertExpireBanner";

export default function SWFWLandingPage() {
return (
Expand All @@ -22,6 +23,7 @@ export default function SWFWLandingPage() {
title={SWFW_METADATA.title}
wrapperClassName="swfw-landing-page"
>
<CertExpireBanner />
<div className="swfw-landing-page__container">
<section className={`product-hero-container swfw swfw-hero-container`}>
<div className={`product-hero__inner-content swfw`}>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/swfw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ html[data-theme="dark"] {
max-width: 1200px;
align-self: center;
overflow: visible;

// to accomodate the cert expiration banner
@media (min-width: 1068px) {
position: relative;
top: -40px;
}
}

html[data-theme="dark"] {
Expand Down

0 comments on commit a0f1c90

Please sign in to comment.