new things
This commit is contained in:
@@ -34,7 +34,7 @@ main {
|
||||
}
|
||||
|
||||
#main {
|
||||
z-index: 9999;
|
||||
z-index: 501;
|
||||
}
|
||||
|
||||
#fighter__personal-info .fieldset-wrapper, #fighter__stats .fieldset-wrapper {
|
||||
|
||||
BIN
web/themes/custom/dchadwick/favicon.png
Normal file
BIN
web/themes/custom/dchadwick/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
@@ -3,5 +3,5 @@ main {
|
||||
margin: auto;
|
||||
}
|
||||
#main {
|
||||
z-index: 9999;
|
||||
z-index: 501;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
{# attach_library('ufc/dcjs') #}
|
||||
|
||||
{% set fighterId = node.id %}
|
||||
{% set fighterImg = file_url(node.field_player_photo.entity.field_media_image.entity.uri.value) %}
|
||||
|
||||
<div dc-get="/dcjs/fighter/{{ fighterId }}" dc-target="fighter-container" dc-trigger="load">
|
||||
<div id="fighter-container">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user