From d4a3f35dbbca940cb20b191c1a58b0479da90572 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n?= <41774881+xentenza@users.noreply.github.com>
Date: Wed, 24 Apr 2024 15:07:49 +0200
Subject: [PATCH 1/3] Highlighted key number
- new Key number variant
- two versions: with or without link
---
.../key-number/key-number-hn-link.twig | 23 +++++++++++++++++++
.../molecules/key-number/key-number-hn.twig | 23 +++++++++++++++++++
.../molecules/key-number/key-number.yml | 4 ++++
.../key-number-group/key-number-group-hn.twig | 6 +++++
.../key-number-group/key-number-group.yml | 3 +++
5 files changed, 59 insertions(+)
create mode 100644 assets/components/molecules/key-number/key-number-hn-link.twig
create mode 100644 assets/components/molecules/key-number/key-number-hn.twig
create mode 100644 assets/components/organisms/key-number-group/key-number-group-hn.twig
diff --git a/assets/components/molecules/key-number/key-number-hn-link.twig b/assets/components/molecules/key-number/key-number-hn-link.twig
new file mode 100644
index 000000000..0822463cc
--- /dev/null
+++ b/assets/components/molecules/key-number/key-number-hn-link.twig
@@ -0,0 +1,23 @@
+{% set icon = icon|default("https://via.placeholder.com/") %}
+
+
+
+
+
+
+
+
étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique
+
+
+
+
+
diff --git a/assets/components/molecules/key-number/key-number-hn.twig b/assets/components/molecules/key-number/key-number-hn.twig
new file mode 100644
index 000000000..cd077da90
--- /dev/null
+++ b/assets/components/molecules/key-number/key-number-hn.twig
@@ -0,0 +1,23 @@
+{% set icon = icon|default("https://via.placeholder.com/") %}
+
+
+
+
+
+
+
+
étudiant·es, collaborateurs et collaboratrices font de l'EPFL une petite ville trépidante et dynamique
+
+
+
+
+
\ No newline at end of file
diff --git a/assets/components/molecules/key-number/key-number.yml b/assets/components/molecules/key-number/key-number.yml
index e7f6b018e..854c3e6cb 100644
--- a/assets/components/molecules/key-number/key-number.yml
+++ b/assets/components/molecules/key-number/key-number.yml
@@ -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
\ No newline at end of file
diff --git a/assets/components/organisms/key-number-group/key-number-group-hn.twig b/assets/components/organisms/key-number-group/key-number-group-hn.twig
new file mode 100644
index 000000000..a8b30fbfb
--- /dev/null
+++ b/assets/components/organisms/key-number-group/key-number-group-hn.twig
@@ -0,0 +1,6 @@
+
+
+ {% 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' %}
+
diff --git a/assets/components/organisms/key-number-group/key-number-group.yml b/assets/components/organisms/key-number-group/key-number-group.yml
index 81d3e874c..9fe573a45 100644
--- a/assets/components/organisms/key-number-group/key-number-group.yml
+++ b/assets/components/organisms/key-number-group/key-number-group.yml
@@ -1,3 +1,6 @@
title: Key number group
name: key-number-group
wrapper: bg-gray-100
+variants:
+ - name: hn
+ title: Highlighted number
From 3dd6b73b56bb8a087d37cb32eb6612550b7631fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n?= <41774881+xentenza@users.noreply.github.com>
Date: Fri, 3 May 2024 09:52:17 +0200
Subject: [PATCH 2/3] corrections indentation + div manquant
- correction de l'indentation dans Molecules > Key Number
-
-
\ No newline at end of file
+
diff --git a/assets/components/molecules/key-number/key-number.yml b/assets/components/molecules/key-number/key-number.yml
index 854c3e6cb..00431fb73 100644
--- a/assets/components/molecules/key-number/key-number.yml
+++ b/assets/components/molecules/key-number/key-number.yml
@@ -8,4 +8,4 @@ variants:
- name: hn
title: Highlighted number
- name: hn-link
- title: Highlighted number with link
\ No newline at end of file
+ title: Highlighted number with link