-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added responsiveness to user interface components
- Loading branch information
1 parent
e7e1054
commit ca7eec1
Showing
13 changed files
with
327 additions
and
59 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
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,94 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Article } from './Article'; | ||
|
||
const meta = { | ||
component: Article, | ||
} satisfies Meta<typeof Article>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
render: (args) => ( | ||
<Article {...args}> | ||
<h1>Lorem Ipsum Dolor Sit Amet</h1> | ||
<h2>Consectetur Adipiscing Elit</h2> | ||
<h3>Sed Do Eiusmod Tempor</h3> | ||
|
||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam.</p> | ||
|
||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. Nunc feugiat mi a tellus consequat imperdiet. Vestibulum sapien. Proin quam. Etiam ultrices.</p> | ||
|
||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras venenatis euismod malesuada. Nulla tincidunt ligula libero, a fermentum risus ultricies ac. Maecenas non ligula nec leo hendrerit vehicula ac id libero. Integer ac risus in sem lacinia rhoncus. Donec in erat nec quam tristique tristique. Duis in orci non elit dapibus commodo ac sit amet mauris. Fusce vel dui augue. Proin et metus ac nisi laoreet scelerisque. Integer a massa dolor. Suspendisse potenti. Nullam interdum metus nisi, et scelerisque nulla dignissim ac.</p> | ||
|
||
|
||
<ul> | ||
<li>Lorem ipsum dolor sit amet</li> | ||
<li>Consectetur adipiscing elit</li> | ||
<li>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</li> | ||
</ul> | ||
|
||
<ol> | ||
<li>Lorem ipsum dolor sit amet</li> | ||
<li>Consectetur adipiscing elit</li> | ||
<li>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</li> | ||
</ol> | ||
|
||
<blockquote>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</blockquote> | ||
|
||
<blockquote> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
</blockquote> | ||
|
||
<p><code><Lorem ipsum></code></p> | ||
|
||
<pre><code> | ||
{`function loremIpsum() { | ||
return "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; | ||
}`} | ||
</code></pre> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Heading 1</th> | ||
<th>Heading 2</th> | ||
<th>Heading 3</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Row 1 Col 1</td> | ||
<td>Row 1 Col 2</td> | ||
<td>Row 1 Col 3</td> | ||
</tr> | ||
<tr> | ||
<td>Row 2 Col 1</td> | ||
<td>Row 2 Col 2</td> | ||
<td>Row 2 Col 3</td> | ||
</tr> | ||
<tr> | ||
<td>Row 3 Col 1</td> | ||
<td>Row 3 Col 2</td> | ||
<td>Row 3 Col 3</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<p><img src="https://via.placeholder.com/150" alt="Lorem Ipsum Image" /></p> | ||
|
||
<p><a href="https://www.lipsum.com">Lorem Ipsum</a></p> | ||
|
||
<p><a href="https://www.lipsum.com">Lorem Ipsum</a></p> | ||
|
||
<hr /> | ||
|
||
<ul> | ||
<li><input type="checkbox" /> Lorem ipsum dolor sit amet</li> | ||
<li><input type="checkbox" checked /> Consectetur adipiscing elit</li> | ||
<li><input type="checkbox" /> Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</li> | ||
</ul> | ||
</Article> | ||
), | ||
}; |
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 @@ | ||
import { HTMLAttributes, PropsWithChildren } from 'react'; | ||
import { clsx, clmg } from '@do-ob/core'; | ||
|
||
export function Article({ children, className, ...props }: PropsWithChildren<HTMLAttributes<HTMLDivElement>>) { | ||
return ( | ||
<article className={clmg(clsx('prose dark:prose-invert', className))} {...props}> | ||
{children} | ||
</article> | ||
); | ||
} |
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
31 changes: 24 additions & 7 deletions
31
packages/ui/src/components/Navigation/NavigationExtended.tsx
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
22 changes: 18 additions & 4 deletions
22
packages/ui/src/components/Navigation/NavigationStandard.tsx
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
Oops, something went wrong.