-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
299 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
'use strict' | ||
|
||
import API from './src/components/Api' | ||
import Api from './src/components/Api' | ||
import ApiDetails from './src/components/ApiDetail' | ||
import BorderedBox from './src/components/BorderedBox' | ||
import BorderedText from './src/components/BorderedText' | ||
import HorizontalSeparator from './src/components/HorizontalSeparator' | ||
import Layout from './src/components/layouts/Layout' | ||
import Playground from './src/components/Playground' | ||
import Prs from './src/components/Pr' | ||
import SearchBar from './src/components/SearchBar' | ||
import TabbedWindow from './src/components/TabbedWindow' | ||
import Versions from './src/components/Versions' | ||
import VerticalSeparator from './src/components/VerticalSeparator' | ||
export { | ||
API, | ||
Api, | ||
ApiDetails, | ||
BorderedBox, | ||
BorderedText, | ||
HorizontalSeparator, | ||
Layout, | ||
Playground, | ||
Prs, | ||
SearchBar, | ||
TabbedWindow, | ||
Versions, | ||
VerticalSeparator | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,7 @@ | ||
.main { | ||
@apply flex items-center text-white; | ||
} | ||
|
||
.data { | ||
@apply flex flex-col w-full; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
'use strict' | ||
import styles from './BorderedText.module.css' | ||
|
||
export default function BorderedText (props) { | ||
return ( | ||
<span className='bordered-text'>{props.text}</span> | ||
<span className={styles.bordered}>{props.text}</span> | ||
) | ||
} |
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,3 @@ | ||
.bordered { | ||
@apply border border-solid rounded-md px-2 py-1 border-white tracking-[.25rem] text-white; | ||
} |
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,3 @@ | ||
.padded { | ||
@apply px-2 py-2.5; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.input { | ||
@apply flex justify-between w-full h-10 text-white border-main-green border border-solid box-border rounded-md; | ||
} | ||
.input > input:focus { | ||
@apply outline-none; | ||
} |
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,9 @@ | ||
'use strict' | ||
|
||
import BorderedBox from './BorderedBox' | ||
|
||
export default function Versions () { | ||
return ( | ||
<BorderedBox color='green'>Versions</BorderedBox> | ||
) | ||
} |
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,10 @@ | ||
'use strict' | ||
|
||
export default function Layout (props) { | ||
return ( | ||
<div className='container mx-auto px-4 my-5 flex flex-col gap-10'> | ||
{props.children} | ||
</div> | ||
|
||
) | ||
} |
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,19 @@ | ||
'use strict' | ||
import BorderedBox from '../components/BorderedBox' | ||
export default { | ||
title: 'Example/BorderedBox', | ||
component: BorderedBox, | ||
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes | ||
argTypes: { | ||
color: { control: 'color' } | ||
} | ||
} | ||
|
||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args | ||
const Template = (args) => <BorderedBox {...args}>Hello Platformatic</BorderedBox> | ||
|
||
export const Green = Template.bind({}) | ||
// More on args: https://storybook.js.org/docs/react/writing-stories/args | ||
Green.args = { | ||
color: 'green' | ||
} |
Oops, something went wrong.