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

Add spacing above the heading #5648 #5712

Closed
wants to merge 1 commit into from
Closed
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
76 changes: 44 additions & 32 deletions src/sections/Careers/Careers-Programs-grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PageHeader from "../../../reusecore/PageHeader";
import Image from "../../../components/image";
import { ProgramsPageWrapper } from "./ProgramGrid.style";
import { useStyledDarkMode } from "../../../theme/app/useStyledDarkMode";
import { ProjectWrapper } from "../../Projects/Project-grid/projectGrid.style";

const ProgramsGrid = ({ hide_path, sub_section }) => {
const data = useStaticQuery(
Expand Down Expand Up @@ -58,42 +59,53 @@ const ProgramsGrid = ({ hide_path, sub_section }) => {

return (
<ProgramsPageWrapper>
<PageHeader title="Open Source Internship Programs" subtitle="Build Your Career at Layer5" path={path} />
<div className={sub_section ? "sub-header_wrapper" : "programs-page-wrapper"}>
<Container>
<div className="program-grid-wrapper">
<Row Hcenter>
{programs.reverse().map(({ id, frontmatter, fields }) => (
<Col key={id} className="programs-col">
<Link
to={
frontmatter.program === "Layer5"
? fields.slug
: `/programs/${frontmatter.programSlug}`
}
>
<div className={`program ${sub_section ? "sub-section_program" : ""}`}>
<div className={`icon ${sub_section ? "sub-section_icon" : ""}`}>
<Image
{...(frontmatter.darkthumbnail !== null && (isDark && frontmatter.darkthumbnail.publicURL !== frontmatter.thumbnail.publicURL) ? frontmatter.darkthumbnail : frontmatter.thumbnail)}
imgStyle={{ objectFit: "contain" }}
alt={frontmatter.title}
/>
<ProjectWrapper>
<PageHeader
className="title"
title="Open Source Internship Programs"
path={path}
/>
<h3>
Build Your Career at Layer5
</h3>
<div className={sub_section ? "sub-header_wrapper" : "programs-page-wrapper"}>
<Container>
<div className="program-grid-wrapper">
<Row Hcenter>
{programs.reverse().map(({ id, frontmatter, fields }) => (
<Col key={id} className="programs-col">
<Link
to={
frontmatter.program === "Layer5"
? fields.slug
: `/programs/${frontmatter.programSlug}`
}
>
<div className={`program ${sub_section ? "sub-section_program" : ""}`}>
<div className={`icon ${sub_section ? "sub-section_icon" : ""}`}>
<Image
{...(frontmatter.darkthumbnail !== null && (isDark && frontmatter.darkthumbnail.publicURL !== frontmatter.thumbnail.publicURL) ? frontmatter.darkthumbnail : frontmatter.thumbnail)}
imgStyle={{ objectFit: "contain" }}
alt={frontmatter.title}
/>
</div>
<h5>{frontmatter.program}</h5>
</div>
<h5>{frontmatter.program}</h5>
</div>
</Link>
</Col>
))}
</Row>
</div>
<p>
</Link>
</Col>
))}
</Row>
</div>
<p>
Layer5 is driven by its people, who are the stewards of our culture and principles. Join us on the journey to enabling the world's most innovative companies make the transition to cloud native and multi-cloud through engineering-empowered automation.
</p>
</p>

</Container>
</div>
</Container>
</div>

</ProjectWrapper>
</ProgramsPageWrapper>

);
};

Expand Down