-
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
a411405
commit e8c14fb
Showing
7 changed files
with
163 additions
and
4 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
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,37 @@ | ||
import Reinsurance from './Reinsurance.twig'; | ||
|
||
export default { | ||
title: 'Design System/Layout/Reinsurance' | ||
}; | ||
|
||
export const base = { | ||
render: (args) => Reinsurance(args), | ||
args: { | ||
data: [ | ||
{ | ||
strongText: 'Livraison gratuite', | ||
text: 'Pour toute commande supérieure à 100€', | ||
linkLabel: 'Voir conditions', | ||
link: '#', | ||
icon: 'reinsurance-delivery' | ||
}, | ||
{ | ||
strongText: 'Paiement sécurisé', | ||
text: 'Carte bancaire, Paypal', | ||
linkLabel: 'Voir conditions', | ||
link: '#', | ||
icon: 'reinsurance-payment' | ||
}, | ||
{ | ||
strongText: 'Satisfait ou remboursé', | ||
text: 'Echange ou remboursement offert sous 30 jours', | ||
linkLabel: 'Voir conditions', | ||
link: '#', | ||
icon: 'reinsurance-satisfied' | ||
} | ||
] | ||
}, | ||
parameters: { | ||
backgrounds: { default: 'grey' } | ||
} | ||
}; |
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,22 @@ | ||
<div class='ReinsuranceModule'> | ||
<div class='ReinsuranceModule-wrapper'> | ||
{% for reinsurance in data %} | ||
<div> | ||
{% if reinsurance.icon %} | ||
<span class='ReinsuranceModule-icon'>{{ source("/icons/" ~ reinsurance.icon ~".svg") }}</span> | ||
{% endif %} | ||
<div> | ||
{% if reinsurance.strongText %} | ||
<strong>{{ reinsurance.strongText }}</strong> | ||
{% endif %} | ||
<div class='ReinsuranceModule-text'>{{ reinsurance.text }}</div> | ||
{% if reinsurance.link %} | ||
<div class='ReinsuranceModule-link'> | ||
<a class='link-small' href='{{ reinsurance.link }}'>{{ reinsurance.linkLabel }}</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</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,51 @@ | ||
.ReinsuranceModule { | ||
background: var(--white); | ||
&-wrapper { | ||
max-width: rem-convert(1082px); | ||
margin-right: auto; | ||
margin-left: auto; | ||
padding: rem-convert(25px) rem-convert(40px); | ||
color: var(--grey); | ||
@screen md { | ||
display: flex; | ||
} | ||
strong { | ||
@apply paragraph-4; | ||
font-weight: 700; | ||
display: block; | ||
color: var(--black); | ||
} | ||
> div { | ||
display: flex; | ||
gap: rem-convert(12px); | ||
border-bottom: 0.5px solid var(--grey-lighter); | ||
padding-bottom: rem-convert(24px); | ||
padding-top: rem-convert(24px); | ||
@screen md { | ||
flex: 1 1 0; | ||
border-bottom: 0; | ||
padding: 0 rem-convert(10px); | ||
border-right: 0.5px solid var(--grey-lighter); | ||
} | ||
} | ||
> div:first-child { | ||
padding-top: 0; | ||
} | ||
> div:last-child { | ||
padding-bottom: 0; | ||
border-right:0; | ||
border-bottom: none; | ||
} | ||
} | ||
&-text { | ||
@apply paragraph-6; | ||
} | ||
|
||
&-icon { | ||
display: inline-block; | ||
width: rem-convert(36px); | ||
height: rem-convert(36px); | ||
color: var(--grey); | ||
flex-shrink: 0; | ||
} | ||
} |
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