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

feat: add experimental ListSection component from IDL #2324

Merged
merged 5 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
6 changes: 5 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ module.exports = {
keywords:
'IBM, design, system, Carbon, design system, Bluemix, styleguide, style, guide, components, library, pattern, kit, component, cloud',
},
flags: {
PRESERVE_WEBPACK_CACHE: true,
FAST_DEV: true,
FAST_REFRESH: true,
},
plugins: [
{
resolve: 'gatsby-source-filesystem',
Expand All @@ -33,7 +38,6 @@ module.exports = {
linkImagesToOriginal: false,
quality: 75,
withWebp: false,
pngCompressionSpeed: 4,
},
},
'gatsby-plugin-sharp',
Expand Down
1 change: 1 addition & 0 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const onRenderBody = ({ setHeadComponents }) => {
src="https://cdn.usefathom.com/script.js"
spa="auto"
site="VMSGXQRS"
key="fathom"
defer
/>,
]);
Expand Down
10 changes: 10 additions & 0 deletions src/components/ListSection/ListSection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import cx from 'classnames';
import { Row } from 'gatsby-theme-carbon';
import { listSection } from './ListSection.module.scss';

const ListSection = ({ className, ...props }) => (
<Row className={cx(className, listSection)} {...props} />
);

export default ListSection;
28 changes: 28 additions & 0 deletions src/components/ListSection/ListSection.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//---------------------------------------
// Principles page
//---------------------------------------
.list-section {
--space: 24px;
padding-top: 2rem;
}

.list-section:before {
vpicone marked this conversation as resolved.
Show resolved Hide resolved
content: '';
display: block;
background: $ui-04;
height: 1px;
width: calc(100% - 2rem);
margin: 0rem 1rem 1.5rem 1rem;
}

.list-section h2 {
margin-top: 0;
}

// Principles/Layout page
.list-section [class*='#{$prefix}--col'] {
margin-bottom: 1.5rem;
@include carbon--breakpoint('md') {
margin-bottom: 0;
}
}
3 changes: 3 additions & 0 deletions src/components/ListSection/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ListSection from './ListSection';

export default ListSection;
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ComponentDemo from '../../../components/ComponentDemo';
import ComponentVariant from '../../../components/ComponentDemo/ComponentVariant';
import ColorPalette from '../../../components/ColorPalette';
import Profile from '../../../components/Profile';
import ListSection from '../../../components/ListSection';

export default {
...defaultComponents,
Expand All @@ -13,4 +14,5 @@ export default {
MdxIcon,
ColorPalette,
Profile,
ListSection,
};
108 changes: 108 additions & 0 deletions src/pages/test/list-section.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
title: Principles
description:
IBM Design principles are carefully considered, uniquely unified, expertly
executed and positively progressive. Learn why to guide is to lead.
---

<PageDescription>

IBM Design principles provide clear criteria for the conception, craftsmanship
and creativity our brand demands and our clients deserve. They are for designers
and non-designers alike, anyone authoring or authorizing any form of design on
behalf of IBM.

</PageDescription>

<ListSection>
<Column colMd={2} colLg={4}>

## Carefully Considered

</Column>
<Column colMd={6} colLg={8}>

**Design is an exercise of decision-making; experience, judgement,
responsibility and timing.** These softer skills are difficult to distribute.
Before we decide to do anything, we must consider its usefulness and utility to
others. Then, we must determine how committed we are to enthusiastically explore
and progressively deliver the full potential of a design.

- Is it IBM to do? Is it essential? Is it opinionated?
- Do we have the resources we need to fully realize a design’s impact and
intent?
- Have we removed everything gratuitous?
- Does an execution respect the time being asked for to experience it?

</Column>
</ListSection>

<ListSection>
<Column colMd={2} colLg={4}>

## Uniquely Unified

</Column>
<Column colMd={6} colLg={8}>

**In order to guide, continuity and creativity must co-exist in design.** Both
of these qualities must be recognizable. Successful systems require both fixed
and fluid elements of expression. The elements that bind all experiences are
essential to providing a unified look, feel and tone. The innovative ways in
which we use these elements delivers distinction and uniqueness.

- Are we delivering recognizable, repeatable, reusable solutions?
- Does solving one problem shorten the distance to another solution?
- If you covered up our logo or name, would you identify an execution as being
designed by IBM?
- Does one experience family well, reinforce and support another, side-by-side?

</Column>
</ListSection>

<ListSection>
<Column colMd={2} colLg={4}>

## Expertly Executed

</Column>
<Column colMd={6} colLg={8}>

**Everything communicates, both the things we do and the things we don’t do.**
The care and craft we put into every experience is equal to any confidence or
consideration we should expect in return. Every execution of IBM should exude
expertise. This extends to the partners we choose to work with. We embrace the
best of the best. And we never limit the impact of our ideas to our own
abilities to deliver completely our design intent.

- Can an experience be improved? If so, keep exploring.
- Are we working with the right talent, team or timeframe?
- Are we doing more with less?
- Have we left any detail overlooked?
- Can you feel the care and craft put into the experience?

</Column>
</ListSection>

<ListSection>
<Column colMd={2} colLg={4}>

## Positively Progressive

</Column>
<Column colMd={6} colLg={8}>

**To guide is to lead.** We are a Company with a history of firsts, including
‘good design’. We are forward thinkers, futurists. We believe in and are
dedicated to advancing the world around us, positively, progressively. Every
design should present these qualities.

- Think ahead. Is it additive or advancing?
- Does it communicate confidence and positivity?
- What is ingenious or innovative about the experience?
- Have we removed all friction or obstacles to understanding or usability?
- Does it render the previous permanently replaced?
- Does it give more than it takes?

</Column>
</ListSection>