Skip to content

Commit

Permalink
feat(layouts): move templets to component layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
eng618 committed Feb 21, 2024
1 parent 2a0ae1a commit 0fd4a2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
import React from 'react';
// eslint-disable-next-line no-unused-vars
import {
HomepageBanner,
HomepageCallout,
Row,
Column,
ImageCard,
} from 'gatsby-theme-carbon';
import HomepageTemplate from 'gatsby-theme-carbon/src/components/Layouts/Homepage';
import { HomepageBanner, HomepageCallout, Row, Column, ImageCard } from 'gatsby-theme-carbon';
import HomepageTemplate from 'gatsby-theme-carbon/src/components/Layout';
import { StaticImage } from 'gatsby-plugin-image';
import styled from 'styled-components';
import { badgesRow } from './Homepage.module.scss';

import HeroTechVector from '../../images/hero-vector.svg';
import HeroTechVector from '../../../images/hero-vector.svg';

const HeroText = styled.h1`
color: #505050;
Expand All @@ -34,10 +28,7 @@ const BadgesRight = function BadgesRightText() {
href="https://www.credly.com/badges/01f77238-4e0d-406b-a2e1-b94ab3d27ef3/public_url"
actionIcon="Launch"
>
<StaticImage
src="../../images/credly/developer-profession-level-3-expert.png"
alt="Agile explorer"
/>
<StaticImage src="../../images/credly/developer-profession-level-3-expert.png" alt="Agile explorer" />
</ImageCard>
</Column>
</Row>
Expand All @@ -47,10 +38,7 @@ const BadgesRight = function BadgesRightText() {
href="https://www.credly.com/badges/84c7f84c-eb57-489a-93ce-f0701008b7e3/public_url"
actionIcon="Launch"
>
<StaticImage
src="../../images/credly/ibm-agile-explorer.png"
alt="Agile explorer"
/>
<StaticImage src="../../images/credly/ibm-agile-explorer.png" alt="Agile explorer" />
</ImageCard>
</Column>

Expand Down Expand Up @@ -103,10 +91,7 @@ const CertsRight = function CertsRight() {
<Row className={badgesRow}>
<Column colMd={1} colLg={1} noGutterMdLeft>
<ImageCard aspectRatio="4:3">
<StaticImage
src="../../images/2022-CIOHackathon-certificate.png"
alt="CIO Hackathon 2022"
/>
<StaticImage src="../../images/2022-CIOHackathon-certificate.png" alt="CIO Hackathon 2022" />
</ImageCard>
</Column>
</Row>
Expand All @@ -120,20 +105,10 @@ const BannerText = function BannerText() {
const customProps = {
Banner: <HomepageBanner renderText={BannerText} image={HeroTechVector} />,
FirstCallout: (
<HomepageCallout
backgroundColor="#262626"
color="white"
leftText={BadgesLeftText}
rightText={BadgesRight}
/>
<HomepageCallout backgroundColor="#262626" color="white" leftText={BadgesLeftText} rightText={BadgesRight} />
),
SecondCallout: (
<HomepageCallout
backgroundColor="#262626"
color="white"
leftText={CertsLeftText}
rightText={CertsRight}
/>
<HomepageCallout backgroundColor="#262626" color="white" leftText={CertsLeftText} rightText={CertsRight} />
),
};

Expand Down

0 comments on commit 0fd4a2a

Please sign in to comment.