Skip to content

Commit

Permalink
New Sponsor List organism (#753)
Browse files Browse the repository at this point in the history
- added variant with link
  • Loading branch information
xentenza authored Oct 31, 2024
1 parent ce6ce47 commit faee679
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
8 changes: 8 additions & 0 deletions assets/components/molecules/sponsor/sponsor-link.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<figure>
<a href="#">
<img class="img-fluid d-block mx-auto" src="./images/styleguide/illustrations/brand-identity-teaser.png" alt="EPFL">
</a>
<hr>
<figcaption><a href="#">Lorem ipsum dolor sit amet.</a></figcaption>
<hr class="bold">
</figure>
2 changes: 1 addition & 1 deletion assets/components/molecules/sponsor/sponsor.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<figure>
<img class="img-fluid d-block mx-auto" src="https://via.placeholder.com/300x150.jpg" alt="Sponsor">
<img class="img-fluid d-block mx-auto" src="./images/styleguide/illustrations/brand-identity-teaser.png" alt="EPFL">
<hr>
<figcaption>Lorem ipsum dolor sit amet.</figcaption>
<hr class="bold">
Expand Down
3 changes: 3 additions & 0 deletions assets/components/molecules/sponsor/sponsor.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
title: Sponsor
name: sponsor
variants:
- name: link
title: Sponsor with link
11 changes: 11 additions & 0 deletions assets/components/organisms/sponsor-list/sponsor-list-link.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="row justify-content-center">
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor-link.twig' %}
</div>
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor-link.twig' %}
</div>
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor-link.twig' %}
</div>
</div>
11 changes: 11 additions & 0 deletions assets/components/organisms/sponsor-list/sponsor-list.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="row justify-content-center">
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor.twig' %}
</div>
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor.twig' %}
</div>
<div class="col-md-4">
{% include '@molecules/sponsor/sponsor.twig' %}
</div>
</div>
5 changes: 5 additions & 0 deletions assets/components/organisms/sponsor-list/sponsor-list.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Sponsor List
name: sponsor-list
variants:
- name: link
title: Sponsor List with link

0 comments on commit faee679

Please sign in to comment.