14 KiB
Executable File
14 KiB
Executable File
| layout | title | permalink |
|---|---|---|
| default | Projetos por BPM | /bpm/ |
{% include modal_login.html %}
<div class="tabs is-centered is-boxed is-medium mb-6">
{% include sidebar.html %}
</div>
<details class="box mb-5 p-0 collapse-card" open
style="border: 1px solid #cfe8fc; overflow: hidden; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); height: fit-content !important; min-height: unset;">
<summary class="p-4 is-flex is-justify-content-space-between is-align-items-center"
style="cursor: pointer; background-color: #f0f8ff; transition: background-color 0.2s; user-select: none;">
<div class="is-flex is-align-items-center">
<span class="icon has-text-info mr-2"><i class="fa-solid fa-heart-pulse"></i></span>
<span class="has-text-grey-dark has-text-weight-bold">Todos os BPMs Disponíveis</span>
<span id="filter-counter" class="tag is-info is-light ml-3 is-hidden">0 selecionados</span>
</div>
<span class="icon has-text-grey-light chevron-icon"><i class="fa-solid fa-chevron-down"></i></span>
</summary>
<div class="p-4" style="background-color: #fff; border-top: 1px solid #cfe8fc;">
<div class="tags is-centered are-medium mb-0" id="bpm-tag-container">
{% assign all_bpms_string = "" %}
{% for p in site.data.all %}
{% if p.bpm %}
{% if p.bpm != "" and p.bpm != nil %}
{% assign bpm_str = p.bpm | append: "" %}
{% unless all_bpms_string contains bpm_str %}
{% assign all_bpms_string = all_bpms_string | append: bpm_str | append: "|||" %}
{% endunless %}
{% endif %}
{% endif %}
{% endfor %}
{% assign unique_bpms = all_bpms_string | split: "|||" | sort %}
{% for item in unique_bpms %}
{% if item != "" %}
<a href="#" class="tag is-white filter-item clickable-tag"
data-value="{{ item }}"
style="border: 1px solid #deeaf6; color: #5b7da3; margin-bottom: 0.5rem; transition: all 0.2s;">
{{ item }}
</a>
{% endif %}
{% endfor %}
</div>
<div class="has-text-centered mt-3">
<p class="help has-text-grey">Clique para filtrar por velocidade.</p>
</div>
</div>
</details>
<div class="columns is-mobile is-vcentered mb-5">
<div class="column is-auto">
<h2 class="title is-4 has-text-grey-dark">
<span class="icon has-text-info mr-2"><i class="fa-solid fa-filter"></i></span>
Filtro: <code id="filter-display-name" style="color: #d63384;">(todos)</code>
</h2>
</div>
<div class="column is-narrow">
<button id="clearFilterButton" class="button is-small is-danger is-light">
<span class="icon is-small"><i class="fa-solid fa-xmark"></i></span>
<span>Limpar Tudo</span>
</button>
</div>
</div>
<div id="project-list" class="columns is-multiline">
{% for projeto in site.data.all %}
{% if projeto.bpm %}
<div class="column is-12-mobile is-6-tablet is-4-desktop is-3-widescreen project-item"
data-bpm="{{ projeto.bpm }}">
<div class="card project-card" style="height: 100%; background-color: #f0f8ff; border: 1px solid #cfe8fc; border-radius: 12px; display: flex; flex-direction: column;">
{% assign file_url = projeto.file | slugify %}
{% assign page_url = '../projetos/' | append: file_url | append: '.html' %}
<a href="{{ page_url }}" style="text-decoration: none; flex: 1; display: flex; flex-direction: column;">
<div class="card-content has-text-centered p-4" style="flex: 1; display: flex; flex-direction: column;">
<div style="width: 50px; height: 50px; background-color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem auto; box-shadow: 0 2px 5px rgba(0,0,0,0.05);">
<span class="icon" style="color: #3273dc;"><i class="fa-solid fa-heart-pulse fa-lg"></i></span>
</div>
<p class="title is-6 mb-2" style="color: #205081; word-break: break-word; font-weight: 700; line-height: 1.2;">
{{ projeto.file }}
</p>
<div class="mb-3">
<span class="tag is-info is-light is-rounded is-medium" style="font-weight: bold; border: 1px solid #3273dc;">
{{ projeto.bpm }} BPM
</span>
</div>
<div style="flex: 1;"></div>
<p class="is-size-7 has-text-grey">
{% if projeto.tracks.size %} {{ projeto.tracks.size }} tracks {% endif %}
</p>
</div>
</a>
<footer class="card-footer" style="border-top: 1px solid #cfe8fc; background-color: #fff; border-radius: 0 0 12px 12px; overflow: hidden;">
<a href="#" class="card-footer-item js-open-modal" data-target-url="{{ page_url }}" data-modal-title="Detalhes: {{ projeto.file }}" data-full-btn-text="Ir para Página" data-full-btn-link="{{ page_url }}" style="color: #5b7da3; font-size: 0.8rem; font-weight: 600; border-right: 1px solid #eee; transition: background 0.2s;">Ver</a>
{% assign creation_url = '/mmpSearch/creation.html?project=' | append: projeto.file %}
{% assign embed_url = creation_url | append: '&embed=true' %}
<a href="#" class="card-footer-item js-open-modal" data-target-url="{{ embed_url }}" data-modal-title="Editor: {{ projeto.file }}" data-full-btn-text="Abrir Editor" data-full-btn-link="{{ creation_url }}" style="color: #3273dc; font-size: 0.8rem; font-weight: 600;">Editar</a>
</footer>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>