-
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.
- Loading branch information
1 parent
6a3b30f
commit 075ef63
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
components/Layout/Subheader/ContentPage/SubheaderContentPage.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,16 @@ | ||
import SubheaderContentPage from './SubheaderContentPage.twig'; | ||
|
||
export default { | ||
title: 'Design System/Layout/Subheader/Content Page' | ||
}; | ||
|
||
export const base = { | ||
render: (args) => SubheaderContentPage(args), | ||
args: { | ||
title: 'Ici le titre de l’article', | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', | ||
img: { alt: 'image 1', src: '/images/placeholder2.webp' } | ||
}, | ||
argTypes: {} | ||
}; |
11 changes: 11 additions & 0 deletions
11
components/Layout/Subheader/ContentPage/SubheaderContentPage.twig
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,11 @@ | ||
<div class='Subheader Subheader--contentPage'> | ||
<div class='Subheader-image'> | ||
<img src='{{ img.src }}' alt='{{ img.alt }}' /> | ||
</div> | ||
<div class='container mx-auto flex flex-col grow justify-center'> | ||
<h1 class='Subheader-title'>{{ title }}</h1> | ||
<div class='Subheader-description'> | ||
{{ description }} | ||
</div> | ||
</div> | ||
</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