Skip to content

Commit

Permalink
Merge pull request #5451 from layer5io/ritiksaxena124/social-backgrounds
Browse files Browse the repository at this point in the history
layer5 social backgrounds added on brand page
  • Loading branch information
leecalcote authored Mar 15, 2024
2 parents 1e4b8fc + 8076f1e commit 40450a8
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1 deletion.
Binary file added src/assets/brand/layer5-social-backgrounds.zip
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/sections/Company/Brand/Brand-components/social-backgrounds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from "react";
import { FiDownloadCloud } from "@react-icons/all-files/fi/FiDownloadCloud";
import Button from "../../../../reusecore/Button";
import { Col, Row } from "../../../../reusecore/Layout";
import SocialBackgroundImg from "../../../../assets/images/social-backgrounds/layer5-charcoal-background.png";

const SocialBackgrounds = () => {
return (
<div className="post-content">
<Row className="brand-section">
<Col xs={12} sm={6}>
<h1 className="layerH3">
<strong> Layer5 Social Backgrounds </strong>
</h1>
</Col>
<Col xs={12} sm={6} className="download-button">
<a href="/brand/layer5-social-backgrounds.zip">
<Button primary title="Download Social Backgrounds">
<FiDownloadCloud size={21} className="icon-left" />
</Button>
</a>
</Col>
<Col>
<p>
The Social Background mark includes the Layer5 branding backgrounds that can be used as cover images or background images on Zoom, Twitter, Youtube and Linkedin.
</p>
</Col>
</Row>

<Row>
<Row Vcenter className="ImgDiv">
<Col xs={12} className="social-backgrounds">
<img src={SocialBackgroundImg} alt="Layer5 Social backgrounds" />
</Col>
</Row>
</Row>
</div>
);
};

export default SocialBackgrounds;
18 changes: 17 additions & 1 deletion src/sections/Company/Brand/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const MeshMapBrand = loadable(() => import("./Brand-components/meshmap"));
const BrandGuide = loadable(() => import("./Brand-components/brand-guide"));
const StickFigures = loadable(() => import("./Brand-components/stickfigures"));
const Catalog = loadable(() => import("./Brand-components/catalog"));
const SocialBackgrounds = loadable(() => import("./Brand-components/social-backgrounds"));

const getDimensions = (ele) => {
let dummyheight = 0,
Expand Down Expand Up @@ -106,6 +107,7 @@ const Brand = () => {
const meshmapRef = useRef(null);
const stickfiguresRef = useRef(null);
const CatalogRef = useRef(null);
const SocialBackgroundsRef = useRef(null);

const sectionRefs = [
{ section: "Layer5", ref: layer5Ref },
Expand All @@ -121,7 +123,8 @@ const Brand = () => {
{ section: "MeshMaster", ref: meshMasterRef },
{ section: "MeshMap", ref: meshmapRef },
{ section: "Five", ref: stickfiguresRef },
{ section: "Catalog", ref: CatalogRef }
{ section: "Catalog", ref: CatalogRef },
{ section: "SocialBackgrounds", ref: SocialBackgroundsRef }
];

useEffect(() => {
Expand Down Expand Up @@ -176,6 +179,9 @@ const Brand = () => {
<div className="section" ref={layer5Ref}>
<Layer5Brand />
</div>
<div className="section" ref={SocialBackgroundsRef}>
<SocialBackgrounds />
</div>
<div className="section" ref={mesheryRef}>
<MesheryBrand />
</div>
Expand Down Expand Up @@ -228,6 +234,16 @@ const Brand = () => {
>
<span>Layer5</span>
</p>
<p
className={`header_link ${
visibleSection === "SocialBackgrounds" ? "selected" : ""
}`}
onClick={() => {
scrollTo(SocialBackgroundsRef.current);
}}
>
<span> Layer5 Social Backgrounds </span>
</p>
<p
className={`header_link ${
visibleSection === "Meshery" ? "selected" : ""
Expand Down
Binary file added static/brand/layer5-social-backgrounds.zip
Binary file not shown.

0 comments on commit 40450a8

Please sign in to comment.