-
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
e8c14fb
commit 32d7043
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
components/Layout/Subheader/Orders/SubheaderOrders.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,13 @@ | ||
import SubheaderOrders from './SubheaderOrders.twig'; | ||
|
||
export default { | ||
title: 'Design System/Layout/Subheader/Orders' | ||
}; | ||
|
||
export const base = { | ||
render: (args) => SubheaderOrders(args), | ||
args: { | ||
title: 'Mes commandes' | ||
}, | ||
argTypes: {} | ||
}; |
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 @@ | ||
<div class='Subheader Subheader-orders'> | ||
<div class='container mx-auto flex flex-col items-center'> | ||
<h1 class='Subheader-title'>{{ title }}</h1> | ||
<div class='flex'> | ||
{% include '../../../Molecules/Button/Button.twig' with {text: 'En cours', sharp:true} %} | ||
{% include '../../../Molecules/Button/Button.twig' with {text: 'Historique', sharp:true, variant: 'secondary'} %} | ||
</div> | ||
</div> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
components/Layout/Subheader/TitleOnly/SubheaderTitle.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,20 @@ | ||
import SubheaderTitle from './SubheaderTitle.twig'; | ||
|
||
export default { | ||
title: 'Design System/Layout/Subheader/TitleOnly' | ||
}; | ||
|
||
export const base = { | ||
render: (args) => SubheaderTitle(args), | ||
args: { | ||
position: 'left', | ||
title: 'Nom de la page', | ||
tag: 'h1' | ||
}, | ||
argTypes: { | ||
position: { | ||
options: ['left', 'centered'], | ||
control: { type: 'radio' } | ||
} | ||
} | ||
}; |
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 @@ | ||
{% set tag = tag|default('h1') %} | ||
<div class='Subheader Subheader-titleOnly {% if position == 'centered' %}Subheader-centered{% endif %}'> | ||
<div class='container mx-auto'> | ||
<{{ tag }} class='Subheader-title'>{{ title }}</{{ tag }}> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.Subheader { | ||
background: var(--theme-lighter); | ||
display: flex; | ||
align-items: center; | ||
&-titleOnly { | ||
min-height: rem-convert(340px); | ||
padding: rem-convert(24px 0); | ||
@screen md { | ||
min-height: rem-convert(250px); | ||
padding: rem-convert(32px 0); | ||
} | ||
} | ||
&-orders { | ||
min-height: rem-convert(256px); | ||
padding: rem-convert(24px 0); | ||
@screen md { | ||
min-height: rem-convert(282px); | ||
padding: rem-convert(32px 0); | ||
} | ||
@screen lg { | ||
min-height: rem-convert(282px); | ||
padding: rem-convert(32px 0); | ||
} | ||
} | ||
&-centered { | ||
text-align: center; | ||
@screen lg { | ||
text-align: left; | ||
} | ||
} | ||
&-title { | ||
@apply h1; | ||
} | ||
} |