Skip to content

Commit

Permalink
feat: add links to welcome story (#12077)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
jnm2377 and kodiakhq[bot] committed Sep 12, 2022
1 parent 171a610 commit 62fc0f0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
23 changes: 23 additions & 0 deletions packages/react/.storybook/Welcome/Welcome.js
Expand Up @@ -9,6 +9,9 @@ import React from 'react';
import bg from './carbon_bg.png';
import './welcome.scss';
import PackageInfo from './../../package.json';
import Link from '../../src/components/Link';
import { ArrowRight } from '@carbon/icons-react';
import { Stack } from '../../src/components/Stack';

export const Welcome = () => {
return (
Expand All @@ -20,6 +23,26 @@ export const Welcome = () => {
}}>
<h2 className="welcome__heading">@carbon/react</h2>
<h4 className="welcome__heading welcome__heading--subtitle">{`v${PackageInfo.version}`}</h4>
<Stack>
<Link
href="https://v10-react.carbondesignsystem.com/"
className="welcome__link"
renderIcon={ArrowRight}>
v10 Storybook
</Link>
<Link
href="https://v10.carbondesignsystem.com/"
className="welcome__link"
renderIcon={ArrowRight}>
v10 website
</Link>
<Link
href="https://github.com/carbon-design-system/carbon/tree/main/packages/react"
className="welcome__link"
renderIcon={ArrowRight}>
Github repo
</Link>
</Stack>
</div>
);
};
15 changes: 13 additions & 2 deletions packages/react/.storybook/Welcome/welcome.scss
@@ -1,5 +1,5 @@
@use '@carbon/styles/scss/theme';
@use '@carbon/styles/scss/type';
@use '@carbon/styles/scss/colors';

.container-welcome {
/* stylelint-disable-next-line declaration-no-important */
Expand All @@ -18,9 +18,20 @@
.welcome__heading {
@include type.type-style('productive-heading-07');

color: theme.$text-inverse;
color: colors.$white;
}

.welcome__heading--subtitle {
font-weight: 600;
}

.welcome__link,
.welcome__link:hover,
.welcome__link.cds--link:visited {
margin-top: 1rem;
color: colors.$blue-40;
}

.welcome__link:first-child {
margin-top: 2rem;
}

0 comments on commit 62fc0f0

Please sign in to comment.