-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update card styles Fix for card styles when an image has a height and width included. Changes prevent the header image from overlapping card content, due to the previous height 100% for set all divs inside of the card. * feat: welcome page and storybook setup for mdx Added storybook updates, ability to import png as modules, images to use, card style updates, svgr for svgs, jest config for static assets, welcome page organization and related files. Closes D2IQ-78978
- Loading branch information
1 parent
121223d
commit 37dd9de
Showing
33 changed files
with
2,774 additions
and
2,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = "test-file-stub"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import * as React from "react"; | ||
import { HeadingText1, HeadingText2, Text, SpacingBox } from "../.."; | ||
import { purpleLighten4 } from "../../design-tokens/build/js/designTokens"; | ||
import { BannerContainer, ImgWrapper, TextWrapper } from "../styles"; | ||
import { ReactComponent as BannerImg } from "../assets/welcome-banner.svg"; | ||
|
||
const WelcomeBanner = () => { | ||
return ( | ||
<BannerContainer> | ||
<SpacingBox textAlign="center" spacingSize="xxl" side="vert"> | ||
<ImgWrapper> | ||
<BannerImg /> | ||
</ImgWrapper> | ||
<SpacingBox side="bottom" spacingSize="l"> | ||
<HeadingText1 color={purpleLighten4}> | ||
<strong>D2DS</strong> | ||
</HeadingText1> | ||
<HeadingText2 color={purpleLighten4}> | ||
<strong>Day 2 Design System</strong> | ||
</HeadingText2> | ||
</SpacingBox> | ||
<TextWrapper> | ||
<Text color={purpleLighten4} align="center"> | ||
D2DS is a design system to drive the design of software products for | ||
Day2 operations. The system contains a series of components, | ||
standards, and guidelines to use to create a unified user experience | ||
at D2iQ. | ||
</Text> | ||
</TextWrapper> | ||
</SpacingBox> | ||
</BannerContainer> | ||
); | ||
}; | ||
|
||
export default WelcomeBanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import * as React from "react"; | ||
|
||
import { Card } from "../../card"; | ||
import { Link } from "../../link"; | ||
import { Text } from "../../styleUtils/typography"; | ||
import { GridList, SpacingBox } from "../.."; | ||
import { purpleDarken4 } from "../../design-tokens/build/js/designTokens"; | ||
|
||
import headerUrlOne from "../assets/banner-one.png"; | ||
import headerUrlTwo from "../assets/banner-two.png"; | ||
import headerUrlThree from "../assets/banner-three.png"; | ||
|
||
const welcomeHeaderOne = { | ||
headerImg: headerUrlOne | ||
}; | ||
const welcomeHeaderTwo = { | ||
headerImg: headerUrlTwo | ||
}; | ||
const welcomeHeaderThree = { | ||
headerImg: headerUrlThree | ||
}; | ||
|
||
const WelcomeCards = () => { | ||
return ( | ||
<> | ||
<SpacingBox spacingSizePerSide={{ vert: "xxl", horiz: "xl" }}> | ||
<GridList | ||
columnCount={{ small: 1, medium: 2, large: 3 }} | ||
gutterSize="l" | ||
> | ||
<Card header={welcomeHeaderOne}> | ||
<Text color={purpleDarken4} size="l"> | ||
<strong>Design Tokens</strong> | ||
</Text> | ||
<p> | ||
Ready-to-use UI elements that provide the foundation for D2iQ user | ||
experience development. | ||
</p> | ||
<p> | ||
Design tokens to ensure branding, spacing, and general UI | ||
consistency. | ||
</p> | ||
<Link openInNewTab={true} url="https://github.com/dcos-labs/ui-kit"> | ||
UI Kit Storybook | ||
</Link> | ||
</Card> | ||
<Card header={welcomeHeaderTwo}> | ||
<Text color={purpleDarken4} size="l" weight="medium"> | ||
<strong>Standards, Guidelines, and Patterns</strong> | ||
</Text> | ||
<p> | ||
Design principles and best practices that guide beautiful, | ||
consistent, user-friendly D2iQ product experiences. | ||
</p> | ||
<p> | ||
Content standards and guidelines to ensure a single, consistent, | ||
and clear voice. | ||
</p> | ||
<Link | ||
openInNewTab={true} | ||
url="https://github.com/dcos-labs/ui-kit/tree/master/design-guidelines" | ||
> | ||
UI Standards and Guidelines | ||
</Link> | ||
</Card> | ||
<Card header={welcomeHeaderThree}> | ||
<Text color={purpleDarken4} size="l" weight="medium"> | ||
<strong>D2iQ Brand</strong> | ||
</Text> | ||
<p> | ||
Standards for our general branding including logo usage, and brand | ||
colors. Primarily used for our marketing website materials. | ||
</p> | ||
<Link openInNewTab={true} url="https://d2iq.com/brand"> | ||
D2iQ Brand Resources | ||
</Link> | ||
</Card> | ||
</GridList> | ||
</SpacingBox> | ||
</> | ||
); | ||
}; | ||
|
||
export default WelcomeCards; |
Oops, something went wrong.