Skip to content

Commit

Permalink
Merge pull request #23 from frc8724/update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
randomspareparts authored May 27, 2023
2 parents 1c612a2 + 3d2bdb7 commit 0f7e771
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/_data/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
image: deptofdef.png
url: https://www.defense.gov/
- name: Gene Haas Foundation
image: haas.
image: haas1.png
url: https://ghaasfoundation.org/content/ghf/en/home.html
- title: Gold Level
sponsors:
Expand Down
39 changes: 39 additions & 0 deletions source/updates.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Sponsors | Mayhem Robotics"
layout: page
heading: Our Sponsors
---

<div class="text-center">
{% comment %} 👉 Edit updates in _data/updates.yml {% endcomment %}

{% for level in site.data.updates %}
<h2 class="text-2xl font-heading font-bold mb-7">{{ level.title }}</h2>

<div class="mb-10 last:mb-0 grid grid-cols-2 md:grid-cols-3 gap-5 text-black">
{% for updates in level.updates %}
{% if updates.url %}
<a href="{{ updates.url }}" target="_blank" class="hover:scale-[1.02] hover:no-underline transition-transform">
<div class="flex items-center justify-center rounded-md p-5 font-bold text-2xl text-gray-700 h-full"
style="background-color: {{ updates.color | default: " white" }}" title="{{ updates.name }}">
{% if updates.image %}
<img class="updates-img" src="/assets/images/updates/{{ updates.image }}" alt="{{ updates.name }}" />
{% else %}
{{ updates.name }}
{% endif %}
</div>
</a>
{% else %}
<div class="flex items-center justify-center rounded-md p-5 font-bold text-2xl text-gray-700"
style="background-color: {{ updates.color | default: " white" }}" title="{{ updates.name }}">
{% if updates.image %}
<img src="/assets/images/updates/{{ updates.image }}" alt="{{ updates.name }}" />
{% else %}
{{ updates.name }}
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>

0 comments on commit 0f7e771

Please sign in to comment.