Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Executive Bio to member profile #2931

Merged
merged 7 commits into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/collections/members/lee-calcote/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,14 @@ badges:
location: Austin, Texas, USA
bio: "Lee Calcote is an innovative product and technology leader, passionate about empowering engineers and enabling organizations. As Founder of Layer5, he is at the forefront of the cloud native movement. Open source, advanced and emerging technologies have been a consistent focus through Calcote’s time at SolarWinds, Seagate, Cisco and Schneider Electric. An advisor, author, and speaker, Calcote is active in the community as a Docker Captain, Cloud Native Ambassador and GSoC, GSoD, and LFX Mentor."
published: true
executive_bio: available
executive_image: ./lee-calcote-exec.jpeg
executive_position: Founder and CEO
company: Layer5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to define executive_photo here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avert your eyes first, but here's the second photo for use in the executive bio - https://blog.gingergeek.com/wp-content/uploads/2019/11/Lee-Calcote.jpg

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use this second photo in the alternative bio

---

Lee Calcote is an innovative product and technology leader, passionate about empowering engineers and enabling organizations. As Founder and CEO of Layer5, Lee Calcote is at the forefront of the cloud native movement. Previously, Calcote stewarded technology strategy and innovation across SolarWinds as head of CTO technology initiatives. He led software-defined data center engineering at Seagate, delivering predictive analytics and modern systems management. Calcote held various leadership positions at Cisco, where he created Cisco’s cloud management platform, pioneered software-defined network orchestration, and autonomic remote management services.

In addition to his role at Layer5, Calcote is a maintainer of open source projects: Meshery, Service Mesh Performance (SMP), and Service Mesh Interface (SMI). Calcote serves as chair of the Cloud Native Computing Foundation (CNCF) TAG Network, and formerly, in the Distributed Management Task Foundation (DMTF) delivering Redfish 1.0, and in the Center for Internet Security (CIS) delivering the Docker Benchmark 1.0.

Calcote serves on Cisco’s advisory board, and formerly advised startups Twistlock and Octarine, acquired by Palo Alto Networks and VMware, respectively. As a Docker Captain and Cloud Native Ambassador, he is a frequent speaker in the cloud native ecosystem. Calcote is the author of The Enterprise Path to Service Mesh Architectures, Istio: Up and Running, and Service Mesh Patterns with O’Reilly and title with other publishers. He holds a bachelor’s degree in Computer Science, a master’s degree in Business Administration and retains a list of industry certifications.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions src/sections/Community/Member-single/executiveBioModal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from "react";
import { FaUserTie } from "@react-icons/all-files/fa/FaUserTie";
import Button from "../../../reusecore/Button";
import { MDXRenderer } from "gatsby-plugin-mdx";
import { SRLWrapper } from "simple-react-lightbox";
import Modal from "react-modal";
import { GrFormClose } from "@react-icons/all-files/gr/GrFormClose";
import Image from "../../../components/image";


export const Executive_Bio = ({ executive_image, executive_position, company, name, body }) => {

const [modalIsOpen,setIsOpen] = React.useState(false);
const openModal = () => setIsOpen(true);
const closeModal = () => setIsOpen(false);

return (
<div>
<FaUserTie className="bio" size={32} onClick={openModal} />
<Modal
isOpen={modalIsOpen}
onRequestClose={closeModal}
className="Modal"
overlayClassName="Overlay"
ariaHideApp={false}
contentLabel="Executive Bio"
>
<Button secondary className="close-modal-btn" onClick={closeModal}> <GrFormClose /></Button>
<div className="exec-bio-image">
<h2 className="modal-heading">Executive Bio</h2>
<Image
className="bio-image"
{...executive_image}
alt={name}
/>
<h3>{name}</h3>
<p>{executive_position}</p>
<p>{company}</p>
</div>
<div className="exec_bio">
<SRLWrapper>
<MDXRenderer>{body}</MDXRenderer>
</SRLWrapper>
</div>
</Modal>
</div>
);
};
21 changes: 19 additions & 2 deletions src/sections/Community/Member-single/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useState } from "react";
import { Link } from "gatsby";
import { MemberSingleWrapper } from "./memberSingle.style";
import { FaTwitter } from "@react-icons/all-files/fa/FaTwitter";
Expand All @@ -17,8 +17,9 @@ import NighthawkLogo from "../../../assets/images/nighthawk/icon-only/SVG/nighth
import imageHubLogo from "../../../assets/images/image-hub/layer5-image-hub.svg";
import communityLogo from "../../../assets/images/community/community-green.svg";
import Button from "../../../reusecore/Button";
import { Executive_Bio } from "./executiveBioModal";

const MemberSingle = ({ frontmatter }) => {
const MemberSingle = ({ frontmatter, body }) => {
const {
name,
position,
Expand All @@ -30,7 +31,12 @@ const MemberSingle = ({ frontmatter }) => {
location,
badges,
bio,
executive_bio,
executive_image,
executive_position,
company,
} = frontmatter;

return (
<MemberSingleWrapper>
<Container>
Expand Down Expand Up @@ -161,6 +167,17 @@ const MemberSingle = ({ frontmatter }) => {
</div>
<div className="social-bg">
<ul className="profile-social-links">
{executive_bio &&
<li>
<Executive_Bio
executive_image ={executive_image}
executive_position ={executive_position}
company ={company}
body ={body}
name = {name}
/>
</li>
}
{github && (
<li>
<a href={`https://github.com/${github}`}>
Expand Down
10 changes: 8 additions & 2 deletions src/sections/Community/Member-single/memberSingle.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export const MemberSingleWrapper = styled.div`
padding-left: 0 !important;

li {
a{
display: block;
color: black;
text-align: left;
Expand All @@ -117,6 +116,10 @@ export const MemberSingleWrapper = styled.div`
-o-transition: box-shadow 0.2s;
transition: box-shadow 0.2s;
transition: 0.3s;

a{
color: black;
}

&:hover{
box-shadow: 0 1px 1.5px 0 rgba(0,0,0,.12),0 1px 1px 0 rgba(0,0,0,.24);
Expand All @@ -131,6 +134,10 @@ export const MemberSingleWrapper = styled.div`
.twitter{
color: #1DA1F2;
}
.bio{
color: #00b39f;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a color from the theme.

cursor: pointer;
}
}

&:active{
Expand All @@ -148,7 +155,6 @@ export const MemberSingleWrapper = styled.div`
height: 2rem;
max-width: none;
}
}
}
}
.start-contributing{
Expand Down
31 changes: 30 additions & 1 deletion src/sections/app.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ section{
padding: 20px;
margin-right: -50%;
transform: translate(-50%, -50%);
max-width: 60rem;
max-height: 40rem;
overflow-y: scroll;

.close-modal-btn {
min-width: 2rem;
Expand All @@ -173,8 +176,28 @@ section{

.modal-heading {
text-align: center;

}

.exec-bio-image{
text-align: center;
margin-bottom: 1rem;
img{
-ms-interpolation-mode: bicubic;
vertical-align: middle;
}
.gatsby-image-wrapper, .old-gatsby-image-wrapper {
display: block;
margin: 1rem auto;
border-radius: 100%;
overflow: hidden;
width: 140px;
height: 140px;
box-shadow: 0px 0px 8px 1px rgba(0,179,159,1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please not hard code the color here.

}
p{
margin: 0 auto;
}
}
}

.Overlay {
Expand Down Expand Up @@ -207,6 +230,12 @@ section{
height: 26rem;
}
}
@media screen and (max-width: 370px) {
.form-frame {
width: 15rem;
height: 26rem;
}
}

/* Modal CSS Ends */
`;
Expand Down
13 changes: 12 additions & 1 deletion src/templates/member-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import theme from "../theme/app/themeStyles";

export const query = graphql`query MemberBySlug($slug: String!) {
mdx(fields: {slug: {eq: $slug}}) {
body
frontmatter {
name
position
Expand All @@ -24,13 +25,23 @@ export const query = graphql`query MemberBySlug($slug: String!) {
location
badges
bio
executive_bio
executive_position
company
image_path {
childImageSharp {
gatsbyImageData(width: 500, layout: CONSTRAINED)
}
extension
publicURL
}
executive_image {
childImageSharp {
gatsbyImageData(width: 500, layout: CONSTRAINED)
}
extension
publicURL
}
}
}
}
Expand All @@ -43,7 +54,7 @@ const MemberSinglePage = ({ data }) => {
<GlobalStyle />
<SEO title={data.mdx.frontmatter.name} image={data.mdx.frontmatter.image_path.publicURL}/>
<Navigation />
<MemberSingle frontmatter={data.mdx.frontmatter}/>
<MemberSingle frontmatter={data.mdx.frontmatter} body={data.mdx.body} />
<Footer />
</Layout>
</ThemeProvider>
Expand Down