Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighted key number #715

Merged
merged 3 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions assets/components/molecules/key-number/key-number-hn-link.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% set icon = icon|default("https://via.placeholder.com/") %}
williambelle marked this conversation as resolved.
Show resolved Hide resolved
<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>
23 changes: 23 additions & 0 deletions assets/components/molecules/key-number/key-number-hn.twig
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>
4 changes: 4 additions & 0 deletions assets/components/molecules/key-number/key-number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ variants:
- name: large
title: Large
wrapper: 'bg-gray-100'
- name: hn
title: Highlighted number
- name: hn-link
title: Highlighted number with link
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="container">
<div class="card-deck">
williambelle marked this conversation as resolved.
Show resolved Hide resolved
{% 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>
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
Loading