-
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
27ee204
commit 34c8fa1
Showing
3 changed files
with
77 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Reinsurance from './Reinsurance.twig'; | ||
|
||
export default { | ||
title: 'Design System/Organisms/Reinsurance' | ||
}; | ||
|
||
export const small = { | ||
render: (args) => Reinsurance(args), | ||
args: { | ||
data: [ | ||
{ | ||
strongText: 'Livraison gratuite', | ||
text: ' à partir de 50€', | ||
icon: 'reinsurance-delivery' | ||
}, | ||
{ | ||
strongText: 'Expédition', | ||
text: ' sous 24h', | ||
icon: 'reinsurance-shipping' | ||
} | ||
] | ||
}, | ||
argTypes: { | ||
data: { type: 'array' } | ||
} | ||
}; |
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 @@ | ||
|
||
<div class='Reinsurance'> | ||
{% for reinsurance in data %} | ||
<div> | ||
{% if reinsurance.icon %} | ||
<span class='Reinsurance-icon'>{{ source("/icons/" ~ reinsurance.icon ~".svg") }}</span> | ||
{% endif %} | ||
<span> | ||
{% if reinsurance.strongText %} | ||
<strong>{{ reinsurance.strongText }}</strong> | ||
{% endif %} | ||
{{ reinsurance.text }} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
</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,35 @@ | ||
.Reinsurance { | ||
background: var(--theme-lighter); | ||
max-width: rem-convert(400px); | ||
padding-top: rem-convert(20px); | ||
padding-bottom: rem-convert(20px); | ||
padding-left: rem-convert(32px); | ||
padding-right: rem-convert(30px); | ||
border-radius: rem-convert(4px); | ||
@apply paragraph-4; | ||
strong { | ||
font-weight: 600; | ||
} | ||
> div { | ||
display: flex; | ||
align-items: center; | ||
gap: rem-convert(10px); | ||
border-bottom: 0.5px solid var(--theme-medium); | ||
padding-bottom: rem-convert(14px); | ||
padding-top: rem-convert(14px); | ||
} | ||
> div:first-child { | ||
padding-top: 0; | ||
} | ||
> div:last-child { | ||
padding-bottom: 0; | ||
border-bottom: none; | ||
} | ||
|
||
&-icon { | ||
display: inline-block; | ||
width: rem-convert(21px); | ||
height: rem-convert(21px); | ||
color: var(--theme); | ||
} | ||
} |