-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: integrating all page templates from www-frontend (#510)
* integrating all page templates from www-frontend * fixing stories for various homepage components * fixing old placeholder images * adding and fixing timeline-related components
- Loading branch information
1 parent
cf8f068
commit 58ae058
Showing
118 changed files
with
6,013 additions
and
583 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 |
---|---|---|
|
@@ -62,6 +62,9 @@ storybook_compiled | |
.build-* | ||
.netlify | ||
|
||
# Typescript | ||
*.d.ts | ||
|
||
# Tailwind | ||
.www-frontend_temp/ | ||
|
||
|
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
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 was deleted.
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
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
56 changes: 56 additions & 0 deletions
56
packages/vue/src/components/BlockDialog/BlockDialog.stories.js
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,56 @@ | ||
import BlockDialog from './BlockDialog.vue' | ||
|
||
export default { | ||
title: 'Components/Blocks/BlockDialog', | ||
component: BlockDialog, | ||
argTypes: { | ||
overlayClose: { control: { type: 'boolean' } } | ||
} | ||
} | ||
|
||
export const BaseStory = { | ||
name: 'BlockDialog', | ||
args: { | ||
dialogId: 'dialog-id', | ||
headingId: 'heading-id' | ||
}, | ||
render: (args) => ({ | ||
components: { BlockDialog }, | ||
setup() { | ||
return { args } | ||
}, | ||
template: `<div> | ||
<button type="button" data-a11y-dialog-show="dialog-id">Open the dialog</button> | ||
<BlockDialog v-bind="args" dialog-box-class="max-w-2xl"> | ||
<div class="p-3 sm:p-5"> | ||
<h2 id="heading-id">Dialog title</h2> | ||
<hr | ||
aria-hidden="true" | ||
class="bg-gray-light-mid w-full h-2px border-0 my-3" | ||
/> | ||
<div class="dialog-main py-3 max-h-64 overflow-auto relative"> | ||
<p class="py-2"> | ||
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. Duis aute irure dolor | ||
in reprehenderit in voluptate velit esse cillum dolore eu fugiat | ||
nulla pariatur. Excepteur sint occaecat cupidatat non proident, | ||
sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</p> | ||
</div> | ||
<div class="my-3"> | ||
<a | ||
href="#" | ||
target="" | ||
rel="" | ||
class="group cursor-pointer -default underline text-theme-color can-hover:hover:text-theme-color-hover" | ||
> | ||
<span class="break-words">Explore</span> | ||
</a> | ||
</div> | ||
</div> | ||
</BlockDialog> | ||
</div>` | ||
}) | ||
} |
28 changes: 28 additions & 0 deletions
28
packages/vue/src/components/BlockDialog/BlockDialog.stories.mdx
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,28 @@ | ||
import { Meta, Story, Canvas } from '@storybook/addon-docs' | ||
import * as Stories from './BlockDialog.stories' | ||
|
||
<Meta of={Stories} /> | ||
|
||
# BlockDialog | ||
|
||
This component is an accessible dialog window that utilizes the efficient and lightweight `a11y-dialog` package. | ||
It adheres to the [Dialog (Modal) pattern](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/) outlined in the Accessible Rich Internet Applications (ARIA) Authoring Practices Guide. | ||
|
||
Additionally, it is unopinionated with styling. | ||
|
||
<Canvas | ||
of={Stories.BaseStory} | ||
className="sbdocs-preview-full-width" | ||
/> | ||
|
||
### Basic Usage | ||
|
||
To trigger dialog opening, use the `data-a11y-dialog-show` attribute with the value set to the `id` of the dialog element you want to open. | ||
|
||
``` | ||
<button type="button" data-a11y-dialog-show="your-dialog-id"> | ||
Open the dialog | ||
</button> | ||
``` | ||
|
||
See [all documentation in the repository](https://github.com/KittyGiraudel/a11y-dialog). |
Oops, something went wrong.