-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: destacado * fix: organismos-bloque pasa a componentes-bloque de tramites * fix: se comenta Addons en PanelLarge * fix: correccion en botones de destacado banner * fix: modificaciones en accesibilidad * fix: se agrega clase sticky en bloque de tramite, se modifica visualizacion de destacado conjunto
- Loading branch information
1 parent
93d8004
commit 1ef6a32
Showing
17 changed files
with
681 additions
and
147 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
4 changes: 1 addition & 3 deletions
4
src/organisms/Block/Block.stories.scss → src/components/Block/Block.stories.scss
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,5 @@ | ||
.storybook__container-block { | ||
width: 100%; | ||
max-width: 340px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1.5rem; | ||
position: relative; | ||
} |
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
195 changes: 195 additions & 0 deletions
195
src/components/Panel/HighlightedPanelBanner.stories.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
// Base | ||
import React from 'react'; | ||
|
||
// Addons | ||
import { withA11y } from '@storybook/addon-a11y'; | ||
|
||
// Components | ||
import { TITLE_HIGHLIGHTED, DESCRIPTION_HIGHLIGHTED, PICTURE_HIGHLIGHTED, VIDEO, IFRAME } from './Panel.constants'; | ||
import { HighlightedPanel } from '.'; | ||
|
||
// Configuración general del componente | ||
export default { | ||
title: 'Componentes|Destacado/Banner', | ||
decorators: [withA11y] | ||
}; | ||
|
||
export const WithImage = (): JSX.Element => { | ||
return ( | ||
<> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} picture={PICTURE_HIGHLIGHTED}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
<a className="btn btn-secondary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} picture={PICTURE_HIGHLIGHTED}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} picture={PICTURE_HIGHLIGHTED}> | ||
<a className="btn btn-secondary btn-lg btn-icon" href="#" target="_blank" download> | ||
<span className="material-icons-round">file_download</span> | ||
Descargar | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} picture={PICTURE_HIGHLIGHTED}> | ||
<a className="external" href="#" target="_blank"> | ||
Enlace externo | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} picture={PICTURE_HIGHLIGHTED}> | ||
<a href="#" className="list-group-item item-sm"> | ||
<i className="bx bxs-info-circle"></i> | ||
<div className="access-content"> | ||
<span className="access-title">Acceso</span> | ||
</div> | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
</> | ||
); | ||
}; | ||
WithImage.story = { name: 'Con imagen' }; | ||
|
||
export const WithVideo = (): JSX.Element => { | ||
return ( | ||
<> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} video={VIDEO}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
<a className="btn btn-secondary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED} iframe={IFRAME}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
<a className="btn btn-secondary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
</> | ||
); | ||
}; | ||
WithVideo.story = { name: 'Con video' }; | ||
|
||
export const WithoutMultimedia = (): JSX.Element => { | ||
return ( | ||
<> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
<a className="btn btn-secondary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED}> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED}> | ||
<a className="btn btn-secondary btn-lg btn-icon" href="#" target="_blank" download> | ||
<span className="material-icons-round">file_download</span> | ||
Descargar | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED}> | ||
<a className="external" href="#" target="_blank"> | ||
Enlace externo | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel title={TITLE_HIGHLIGHTED} description={DESCRIPTION_HIGHLIGHTED}> | ||
<a href="#" className="list-group-item item-sm"> | ||
<i className="bx bxs-info-circle"></i> | ||
<div className="access-content"> | ||
<span className="access-title">Acceso</span> | ||
</div> | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
</> | ||
); | ||
}; | ||
WithoutMultimedia.story = { name: 'Sin Multimedia' }; | ||
|
||
export const WithBackground = (): JSX.Element => { | ||
return ( | ||
<> | ||
<HighlightedPanel | ||
title={TITLE_HIGHLIGHTED} | ||
description={DESCRIPTION_HIGHLIGHTED} | ||
picture={PICTURE_HIGHLIGHTED} | ||
bgColor="light"> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
<a className="btn btn-secondary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel | ||
title={TITLE_HIGHLIGHTED} | ||
description={DESCRIPTION_HIGHLIGHTED} | ||
picture={PICTURE_HIGHLIGHTED} | ||
bgColor="light"> | ||
<a className="btn btn-primary btn-lg" href="#"> | ||
Botón | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel | ||
title={TITLE_HIGHLIGHTED} | ||
description={DESCRIPTION_HIGHLIGHTED} | ||
picture={PICTURE_HIGHLIGHTED} | ||
bgColor="light"> | ||
<a className="btn btn-secondary btn-lg btn-icon" href="#" target="_blank" download> | ||
<span className="material-icons-round">file_download</span> | ||
Descargar | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel | ||
title={TITLE_HIGHLIGHTED} | ||
description={DESCRIPTION_HIGHLIGHTED} | ||
picture={PICTURE_HIGHLIGHTED} | ||
bgColor="light"> | ||
<a className="external" href="#" target="_blank"> | ||
Enlace externo | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
<HighlightedPanel | ||
title={TITLE_HIGHLIGHTED} | ||
description={DESCRIPTION_HIGHLIGHTED} | ||
picture={PICTURE_HIGHLIGHTED} | ||
bgColor="light"> | ||
<a href="#" className="list-group-item item-sm"> | ||
<i className="bx bxs-info-circle"></i> | ||
<div className="access-content"> | ||
<span className="access-title">Acceso</span> | ||
</div> | ||
</a> | ||
</HighlightedPanel> | ||
<br /> | ||
</> | ||
); | ||
}; | ||
WithBackground.story = { name: 'Con fondo' }; |
Oops, something went wrong.