Skip to content

Commit b77cd04

Browse files
committed
added academy section
Signed-off-by: kishore08-07 <kishorebsm8@gmail.com>
1 parent 8a1b3b4 commit b77cd04

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
import { SRLWrapper } from "simple-react-lightbox";
4+
import { Row, Col } from "../../../../reusecore/Layout";
5+
import Button from "../../../../reusecore/Button";
6+
import ColorBox from "../../../../components/ColorBox";
7+
import { FiDownloadCloud } from "@react-icons/all-files/fi/FiDownloadCloud";
8+
import AcademyIcon from "../../../../assets/images/academy/academy.svg";
9+
10+
const AcademyWrapper = styled.section`
11+
@media (max-width: 575px) {
12+
.brandHeader {
13+
padding: 3rem 0;
14+
}
15+
}
16+
`;
17+
18+
const AcademyBrand = () => {
19+
return (
20+
<AcademyWrapper>
21+
<div className="post-content">
22+
<Row style={{
23+
flexWrap: "wrap"
24+
}} className="brand-section">
25+
<Col $xs={12} $sm={6}>
26+
<h1 className="layerH3">
27+
Academy
28+
</h1>
29+
</Col>
30+
<Col $xs={12} $sm={6} className="download-button">
31+
<a href="/brand/academy-brand-kit.zip">
32+
<Button $primary title="Download Logo Assets" $external={true}>
33+
<FiDownloadCloud size={21} className="icon-left" />
34+
</Button>
35+
</a>
36+
</Col>
37+
<Col>
38+
<p>
39+
The Academy mark includes the Academy name & logo, and any word,
40+
phrase, image, or other designation that identifies the source or
41+
origin of any Layer5 projects. Please don't modify the marks or
42+
use them in a confusing way, including suggesting sponsorship or
43+
endorsement by Layer5, or in a way that confuses Layer5 with
44+
another brand (including your own).
45+
</p>
46+
</Col>
47+
</Row>
48+
<Row style={{
49+
flexWrap: "wrap"
50+
}}>
51+
<Col>
52+
<h2 className="layerH3 in">
53+
Logos
54+
</h2>
55+
</Col>
56+
<SRLWrapper>
57+
<Row $Vcenter className="ImgDiv">
58+
<Col $xs={12} $sm={4}>
59+
<img src={AcademyIcon} style={{ minWidth: "200px" }} alt="Academy Logo" />
60+
</Col>
61+
</Row>
62+
</SRLWrapper>
63+
</Row>
64+
<Row style={{
65+
flexWrap: "wrap"
66+
}}>
67+
<Col $xs={12}>
68+
<h2 className="layerH3 in">
69+
Colors
70+
</h2>
71+
</Col>
72+
<Col $xs={12}>
73+
<p>
74+
The Academy color palette consists of the primary Academy color
75+
and additional shades. The Academy logo should be white or
76+
monochrome tonal when using a color background.
77+
</p>
78+
</Col>
79+
<Row style={{
80+
flexWrap: "wrap"
81+
}} className="color-code-wrapper">
82+
<ColorBox name="Keppel" R="0" G="179" B="159" colorCode="#00B39F" />
83+
<ColorBox name="Caribbean Green" R="0" G="211" B="169" colorCode="#00D3A9" />
84+
<ColorBox name="Charcoal" R="60" G="73" B="79" colorCode="#3C494F" />
85+
</Row>
86+
</Row>
87+
</div>
88+
</AcademyWrapper>
89+
);
90+
};
91+
92+
export default AcademyBrand;

src/sections/Company/Brand/index.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const KanvasBrand = loadable(() => import("./Brand-components/kanvas"));
2020
const BrandGuide = loadable(() => import("./Brand-components/brand-guide"));
2121
const StickFigures = loadable(() => import("./Brand-components/stickfigures"));
2222
const Catalog = loadable(() => import("./Brand-components/catalog"));
23+
const Academy = loadable(() => import("./Brand-components/academy"));
2324
const SocialBackgrounds = loadable(() => import("./Brand-components/social-backgrounds"));
2425

2526
const getDimensions = (ele) => {
@@ -112,6 +113,7 @@ const Brand = () => {
112113
const kanvasRef = useRef(null);
113114
const stickfiguresRef = useRef(null);
114115
const CatalogRef = useRef(null);
116+
const AcademyRef = useRef(null);
115117
const SocialBackgroundsRef = useRef(null);
116118

117119
const sectionRefs = [
@@ -129,7 +131,8 @@ const Brand = () => {
129131
{ section: "Kanvas", ref: kanvasRef },
130132
{ section: "Five", ref: stickfiguresRef },
131133
{ section: "Catalog", ref: CatalogRef },
132-
{ section: "SocialBackgrounds", ref: SocialBackgroundsRef }
134+
{ section: "Academy", ref: AcademyRef },
135+
{ section: "SocialBackgrounds", ref: SocialBackgroundsRef },
133136
];
134137

135138
const sectionIdMap = {
@@ -147,6 +150,7 @@ const Brand = () => {
147150
"meshmaster": meshMasterRef,
148151
"kanvas": kanvasRef,
149152
"catalog": CatalogRef,
153+
"academy": AcademyRef,
150154
"five": stickfiguresRef
151155
};
152156

@@ -253,6 +257,9 @@ const Brand = () => {
253257
<div className="section" id="catalog" ref={CatalogRef}>
254258
<Catalog />
255259
</div>
260+
<div className="section" id="academy" ref={AcademyRef}>
261+
<Academy />
262+
</div>
256263
<div className="section" id="five" ref={stickfiguresRef}>
257264
<StickFigures />
258265
</div>
@@ -399,6 +406,16 @@ const Brand = () => {
399406
>
400407
<span> Catalog </span>
401408
</p>
409+
<p
410+
className={`header_link ${
411+
visibleSection === "Academy" ? "selected" : ""
412+
}`}
413+
onClick={() => {
414+
scrollTo(AcademyRef.current, "academy");
415+
}}
416+
>
417+
<span> Academy </span>
418+
</p>
402419
<p
403420
className={`header_link ${
404421
visibleSection === "Five" ? "selected" : ""

0 commit comments

Comments
 (0)