Skip to content

Commit

Permalink
save progress
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Jun 27, 2024
1 parent 7360a95 commit 962006f
Show file tree
Hide file tree
Showing 11 changed files with 99 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .storybook/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
a {
color: #0196d6;
}

#page-layout {
padding: 2rem 8rem;
}
4 changes: 2 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: [
"../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../src/stories/**/*.stories.@(ts|tsx)",
],

staticDirs: ['../public', '../static'],
staticDirs: ['../public'],

addons: [
"@storybook/addon-links",
Expand Down
5 changes: 4 additions & 1 deletion .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
#storybook-explorer-menu .sidebar-subheading > button:focus,
#storybook-explorer-menu .sidebar-subheading a[data-selected]:hover {
background-color: #0196d6;
color: #fff
color: #fff;
height: auto;
padding: 4px 8px;
letter-spacing: initial;
}

#storybook-explorer-menu .sidebar-subheading > button svg path {
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
font-family: "LatoWeb", sans-serif;
font-size: 16px;
color: #333;
padding: 0 !important;
}
</style>
8 changes: 8 additions & 0 deletions .storybook/preview.ts → .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import React from 'react';

import type { Preview } from "@storybook/react";

import './global.css';

const preview: Preview = {
decorators: [
(Story) =>
<div id="page-layout"><Story /></div>
],
parameters: {
controls: {
expanded: true,
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"@storybook/addon-essentials": "^8.1.10",
"@storybook/addon-interactions": "^8.1.10",
"@storybook/addon-links": "^8.1.10",
"@storybook/addon-onboarding": "^8.1.10",
"@storybook/blocks": "^8.1.10",
"@storybook/react": "^8.1.10",
"@storybook/react-vite": "^8.1.10",
Expand Down
Binary file added public/images/ds.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 29 additions & 2 deletions src/stories/documentation/Welcome.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta } from '@storybook/react';
import React from 'react';

import './welcome.css';

const meta: Meta<JSX.Element> = {
title: 'Documentation/Welcome',
};

export default meta;

export const Welcome = () => <h1>Welcome to Storybook</h1>;
export const Welcome = () => (
<div id='welcome'>
<div className="banner">
<h1>Akamai Design System</h1>
</div>
<p className="intro">Here you can find our design guidelines, component documentation, and resources for building apps with Akamai's design system.</p>
<h2>What's Inside</h2>
<div className="inside">
<div>
<h3>Get Started</h3>
<p>Instructions and welcome to Akamai's OS design system</p>
<a href='/'>Read more</a>
</div>
<div>
<h3>Tokens</h3>
<p>All information about colors, typography, spacing, and icons</p>
<a href='/'>Read more</a>
</div>
<div>
<h3>Components</h3>
<p>All the information and guidelines you’ll ever need on each component</p>
<a href='/'>Read more</a>
</div>
</div>
</div>
);
48 changes: 48 additions & 0 deletions src/stories/documentation/welcome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#welcome {
.banner {
background:#fff url('/images/ds.jpg') no-repeat right;
margin-bottom: 2rem;
background-size: 60%;
display: flex;
height: 250px;
position: relative;
align-items: center;
border-radius: 20px;
border: 1px solid #959a9c;

h1 {
margin-left: 2rem;
color: #444;
}
}

.intro {
font-size: 1.25rem;
margin-bottom: 2rem;
}

.inside {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 2rem;
gap: 1rem;


> div {
border: 1px solid #959a9c;
flex: 1;
background-color: #f8fcfe;
display: flex;
flex-direction: column;
padding: 1rem;
border-radius: 12px;
justify-content: center;
height: 175px;

h3 {
margin-bottom: 0;
}
}
}
}
10 changes: 0 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,6 @@ __metadata:
"@storybook/addon-essentials": "npm:^8.1.10"
"@storybook/addon-interactions": "npm:^8.1.10"
"@storybook/addon-links": "npm:^8.1.10"
"@storybook/addon-onboarding": "npm:^8.1.10"
"@storybook/blocks": "npm:^8.1.10"
"@storybook/react": "npm:^8.1.10"
"@storybook/react-vite": "npm:^8.1.10"
Expand Down Expand Up @@ -3092,15 +3091,6 @@ __metadata:
languageName: node
linkType: hard

"@storybook/addon-onboarding@npm:^8.1.10":
version: 8.1.10
resolution: "@storybook/addon-onboarding@npm:8.1.10"
dependencies:
react-confetti: "npm:^6.1.0"
checksum: 10c0/2dad8ad4db0a72e8a223f71bb28f99fb78c2a91f6a113911c87a578ec46c89cf4635bf4aae3c0ead7cb0512f51e11ff220b66e4be7fd0268d57815f3d65d8ae8
languageName: node
linkType: hard

"@storybook/addon-outline@npm:8.1.10":
version: 8.1.10
resolution: "@storybook/addon-outline@npm:8.1.10"
Expand Down

0 comments on commit 962006f

Please sign in to comment.