Skip to content

Commit 2c8bebf

Browse files
author
Kelly Churchill
committed
remove internal build flags and begin adding essentials content
1 parent 5a8a6c5 commit 2c8bebf

File tree

10 files changed

+47
-93
lines changed

10 files changed

+47
-93
lines changed

src/components/Homepage/Homepage.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,13 @@ export class HomepageHeader extends React.Component {
88
}
99

1010
render() {
11-
const { GATSBY_ENV } = process.env;
12-
const isInternal = GATSBY_ENV == 'internal';
1311
// Banner image
1412
const bannerImg = require('../../content/homepage/images/homepage_image.jpg');
1513

16-
const homeTitle = isInternal ? (
17-
<h3 className="homepage--header__title">
18-
FED@IBM
19-
</h3>
20-
) : (
21-
<h3 className="homepage--header__title">
22-
Front-end <br />
23-
Development at IBM
24-
</h3>
25-
);
14+
<h3 className="homepage--header__title">
15+
Front-end <br />
16+
Development at IBM
17+
</h3>
2618

2719
return (
2820
<div>

src/components/Layouts/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ class Layout extends React.Component {
116116
};
117117

118118
render() {
119-
const { GATSBY_ENV } = process.env;
120-
const isInternal = GATSBY_ENV == 'internal';
121119
const { children } = this.props;
122120
const version = Packages.dependencies['carbon-components'];
123121
const reactVersion = Packages.dependencies['carbon-components-react'];
@@ -147,9 +145,7 @@ class Layout extends React.Component {
147145
<>
148146
<Helmet
149147
title={
150-
isInternal
151-
? data.site.siteMetadata.titleInternal
152-
: data.site.siteMetadata.title
148+
data.site.siteMetadata.title
153149
}
154150
meta={[
155151
{
@@ -189,7 +185,6 @@ class Layout extends React.Component {
189185
<span>IBM</span>&nbsp;Front-end&nbsp;<span>Development</span>
190186
</HeaderName>
191187
<HeaderGlobalBar>
192-
{/* {isInternal ? null : <GlobalSearch />} */}
193188
</HeaderGlobalBar>
194189
</Header>
195190

src/components/LeftNav/LeftNav.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ import { Launch16 } from '@carbon/icons-react';
1717
export default class LeftNav extends React.Component {
1818
renderNavItems = (nav, loc) =>
1919
Object.keys(nav).map(item => {
20-
const { GATSBY_ENV } = process.env;
21-
const hideInternal =
22-
GATSBY_ENV !== 'internal' && nav[item].internal;
23-
24-
if (hideInternal) {
25-
return '';
26-
}
2720
return (
2821
<LeftNavItem
2922
isCurrentCategory={loc.pathname.includes(item) ? true : false}
@@ -37,7 +30,6 @@ export default class LeftNav extends React.Component {
3730

3831
render() {
3932
const { GATSBY_ENV } = process.env;
40-
const isInternal = GATSBY_ENV == 'internal';
4133

4234
const { isLeftNavOpen, isLeftNavFinal, is404Page } = this.props;
4335

src/components/LeftNav/LeftNavItem.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ export default class LeftNavItem extends React.Component {
5656

5757
renderSubNavItems = (subItems, location, itemSlug) => {
5858
return Object.keys(subItems).map(item => {
59-
const { GATSBY_ENV } = process.env;
60-
const hideInternal =
61-
GATSBY_ENV !== 'internal' && subItems[item].internal;
59+
6260
// Check that the itemSlug (top most nav item w/ chidlren) matches the
6361
// zeroeth indexed normalized path array item. This is so we avoid conflicting
6462
// children with similar names but disimilar parents.
@@ -75,10 +73,6 @@ export default class LeftNavItem extends React.Component {
7573
navItemProps['aria-current'] = 'page';
7674
}
7775

78-
if (hideInternal) {
79-
return '';
80-
}
81-
8276
return (
8377
<SideNavMenuItem {...navItemProps}>
8478
{subItems[item].title}

src/components/SideNav/SideNav.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ import navigation from '../../data/navigation/navigation.json';
1111
export default class SideNav extends React.Component {
1212
renderNavItems = (nav, loc) =>
1313
Object.keys(nav).map(item => {
14-
const { GATSBY_ENV } = process.env;
15-
const hideInternal =
16-
GATSBY_ENV !== 'internal' && nav[item].internal;
17-
18-
if (hideInternal) {
19-
return '';
20-
}
2114
return (
2215
<SideNavItem
2316
itemSlug={item}
@@ -36,9 +29,6 @@ export default class SideNav extends React.Component {
3629
};
3730

3831
render() {
39-
const { GATSBY_ENV } = process.env;
40-
const isInternal = GATSBY_ENV == 'internal';
41-
4232
const { isOpen, isFinal } = this.props;
4333

4434
const classNames = classnames({
@@ -70,19 +60,10 @@ export default class SideNav extends React.Component {
7060
</a>
7161
<nav className={classNames}>
7262
<div className="side-nav--header">
73-
74-
{isInternal ? (
7563
<Link to="/" className="side-nav__logo">
76-
IBM <span>Product Design</span>
64+
<span>Carbon</span> Design System
7765
</Link>
78-
) : (
79-
<>
80-
<Link to="/" className="side-nav__logo">
81-
<span>Carbon</span> Design System
82-
</Link>
83-
<GlobalSearch />
84-
</>
85-
)}
66+
<GlobalSearch />
8667
</div>
8768
<div className="side-nav--items">
8869
<ul role="menu" className="side-nav__nav-items">{navItems}</ul>
Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11
---
22
title: Design System Developer Essentials
3-
internal: true
4-
---
3+
---
4+
5+
The Design System Developer Essentials Learning Bundles provide developers with an introduction to using the Design System to implement UIs designed with the IBM Design Language. Learning is being delivered in two methods: Distance Learning or Classroom Immersive.
6+
7+
## Distance Learning
8+
9+
Over the course of five instructor-led sessions, participants will be led through a live presentation of the session content. Following the live presentation, participants will be provided with learning materials including hands-on coding activities. These activities can be done on your own or you can join one of our proctor-led in-person sessions at multiple IBM sites.
10+
11+
All insructor-led sessions will be held live via WebEx at 10 am US Central Time.
12+
13+
### Instructor-Led Sessions
14+
Lab 1 - Getting Started<br />
15+
May 28, 2019
16+
17+
Lab 2 - Layout & Grid<br />
18+
June 4, 2019
19+
20+
Lab 3 - Content & Polish<br />
21+
June 11, 2019
22+
23+
Lab 4 - Builds & Performance<br />
24+
June 18, 2019
25+
26+
Lab 5 - Using APIs & GraphQL<br />
27+
June 25, 2019
28+
29+
[Register info]
30+
31+
## Classroom Immersive
32+
33+
Week-long in-person immersive learning enabling product teams to get up and running quickly using the Design System. Beginning in July, 2019, we will conduct classroom immersive workshops. In this week-long session, product teams will be led through the material delivered in the Distance Learning sessions and will begin implementing the Design System into their actual product UI. This course is geared to developers who are working in the front-end or UI layer, regardless of their role.
34+
35+
When you register your team for this approach, we will work with you to schedule the week-long event at your location.
36+
37+
[Register your team]

src/data/navigation/navigation.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"title": "Program"
44
},
55
"essentials": {
6-
"title": "Design System Essentials",
7-
"internal": true
6+
"title": "Design System Essentials"
87
},
98
"people": {
109
"title": "People",
@@ -41,8 +40,7 @@
4140
}
4241
},
4342
"branches": {
44-
"title": "Local Branches",
45-
"internal": true
43+
"title": "Local Branches"
4644
},
4745

4846
"feducation": {
@@ -64,7 +62,6 @@
6462
},
6563
"fedcast": {
6664
"title": "Career Careening FEDcast",
67-
"internal": true,
6865
"sub-nav": {
6966
"upcoming": {
7067
"title": "Upcoming Shows"

src/styles/_home.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -398,24 +398,4 @@
398398
top: 4rem;
399399
left: 4rem;
400400
z-index: 1;
401-
}
402-
403-
404-
// Internal only
405-
.overview-page__banner.overview-page__banner--internal {
406-
background: $ibm-colors__black;
407-
color: $ibm-colors__gray--10;
408-
align-items: normal;
409-
height: 560px;
410-
display: flex;
411-
justify-content: flex-end;
412-
}
413-
414-
.overview-page__banner--internal {
415-
.banner__logo {
416-
text-transform: none;
417-
padding: 0 0 16px 120px;
418-
font-size: 122px;
419-
letter-spacing: 0px;
420-
}
421401
}

src/styles/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $feature-flags: (
1515
components-x: true,
1616
ui-shell: true,
1717
);
18+
1819
@import '@carbon/layout/scss/layout.scss';
1920
.container {
2021
//need this to avoid conflicts with old grid code

src/templates/page.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,9 @@ export default ({ data }) => {
9797
let currentPage = post.fields.currentPage;
9898
let slug = post.fields.slug;
9999
let tabs = post.frontmatter.tabs;
100-
let internal = post.frontmatter.internal;
101-
102-
const { GATSBY_ENV } = process.env;
103-
const isInternal = GATSBY_ENV !== 'internal' && internal == true;
104100
const homepage = (post.frontmatter.title === 'Homepage') == true;
105101

106-
if (isInternal) {
107-
return (
108-
<Layout>
109-
<FourOhFour />
110-
</Layout>
111-
);
112-
} else if (homepage) {
102+
if (homepage) {
113103
if (typeof document !== 'undefined') {
114104
document.body.style.background = '#282828';
115105
}
@@ -166,7 +156,6 @@ export const query = graphql`
166156
title
167157
label
168158
tabs
169-
internal
170159
}
171160
}
172161
}

0 commit comments

Comments
 (0)