-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- new Key number variant - two versions: with or without link
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
assets/components/molecules/key-number/key-number-hn-link.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,23 @@ | ||
{% set icon = icon|default("https://via.placeholder.com/") %} | ||
<a class="card link-trapeze-horizontal" href="#"> | ||
<div class="card border-0 bg-white m-0 h-100"> | ||
<div class="card-header border-0"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<p class="h4">près de 18'000</p> | ||
</div> | ||
<div class="col-md-6 text-right"> | ||
<img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-body pt-0"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<hr /> | ||
<p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</a> |
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,23 @@ | ||
{% set icon = icon|default("https://via.placeholder.com/") %} | ||
<div class="card"> | ||
<div class="card border-0 bg-white m-0 h-100"> | ||
<div class="card-header border-0"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<p class="h4">près de 18'000</p> | ||
</div> | ||
<div class="col-md-6 text-right"> | ||
<img src="images/styleguide/key-numbers/students.png" class="d-block m-auto" alt="Pictogramme avec deux personnages" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card-body pt-0"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<hr /> | ||
<p>étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique</p> | ||
</div> | ||
</div> | ||
</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
7 changes: 7 additions & 0 deletions
7
assets/components/organisms/key-number-group/key-number-group-hn.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,7 @@ | ||
<div class="container"> | ||
<div class="card-deck"> | ||
{% include '@molecules/key-number/key-number-hn-link.twig' %} | ||
{% include '@molecules/key-number/key-number-hn-link.twig' %} | ||
{% include '@molecules/key-number/key-number-hn.twig' %} | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
assets/components/organisms/key-number-group/key-number-group.yml
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,3 +1,6 @@ | ||
title: Key number group | ||
name: key-number-group | ||
wrapper: bg-gray-100 | ||
variants: | ||
- name: hn | ||
title: Highlighted number |