Overhaul of a lot of things.

This commit is contained in:
calcu1on
2025-08-31 21:26:31 -04:00
parent 63a7ab4286
commit 7c70bc0de7
149 changed files with 6025 additions and 41504 deletions

View File

@@ -1,44 +0,0 @@
{% set fighterImg = file_url(node.field_player_photo.entity.field_media_image.entity.uri.value) %}
<article{{ attributes }} id="fighter">
<div{{ content_attributes }}>
<div id="fighter__hero">
<div id="fighter__image">
<img src="{{ fighterImg }}"/>
</div>
<div id="fighter__text">
<h1>{{ node.field_first_name.value }} {{ node.field_last_name.value }}</h1>
<div id="fighter__record">
{{ node.field_wins.value }} - {{ node.field_losses.value }} - {{ node.field_ties.value }}
</div>
</div>
</div>
<h2 id="personal-header">Personal Information</h2>
<div id="fighter__personal">
{% for datapoint, value in personal_info %}
<div class="data-wrapper">
<span class="label">{{ datapoint }}</span>
<div class="datapoint">
{{ value }}
</div>
</div>
{% endfor %}
</div>
<h2 id="stats-header">Fighter Stats</h2>
<div id="fighter__stats">
{% for datapoint, value in stats %}
<div class="data-wrapper">
<span class="label">{{ datapoint }}</span>
<div class="datapoint">
{{ value }}
</div>
</div>
{% endfor %}
</div>
</div>
</article>

View File

@@ -1,9 +0,0 @@
{% for fighter in fighters %}
<div class="fighter">
<h2><a href="{{ fighter.link }}">{{ fighter.name }}</a></h2>
<div class="fighter-photo">
<img src="{{ fighter.picUrl }}" />
</div>
</div>
{% endfor %}

View File

@@ -1,10 +0,0 @@
{# attach_library('dchadwick/dcjs') #}
{% block fighters %}
<div id="fighters-wrapper" dc-get="/dcjs/all-fighters" dc-target="fighters" dc-trigger="load">
<div id="fighters">
</div>
</div>
{% endblock %}

View File

@@ -1,2 +0,0 @@
{{ attach_library('ufc/recent_fights_react') }}
<div id="recent-fights" class="container"></div>