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..fb78b3271 --- /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/") %} + +
+
+
+
+

près de 18'000

+
+
+ Pictogramme avec deux personnages +
+
+
+
+
+
+
+

é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..ad8a82a14 --- /dev/null +++ b/assets/components/molecules/key-number/key-number-hn.twig @@ -0,0 +1,23 @@ +{% set icon = icon|default("https://via.placeholder.com/") %} +
+
+
+
+
+

près de 18'000

+
+
+ Pictogramme avec deux personnages +
+
+
+
+
+
+
+

é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.yml b/assets/components/molecules/key-number/key-number.yml index e7f6b018e..00431fb73 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 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..391445fc0 --- /dev/null +++ b/assets/components/organisms/key-number-group/key-number-group-hn.twig @@ -0,0 +1,7 @@ +
+
+ {% 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