reformula buscas
Deploy / Deploy (push) Successful in 1m22s
Details
Deploy / Deploy (push) Successful in 1m22s
Details
This commit is contained in:
parent
dea635a926
commit
9f21f8a7cb
|
|
@ -4,338 +4,461 @@ title: MMPSearch - Projetos
|
||||||
permalink: /projetos/
|
permalink: /projetos/
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% assign list_bpm = "" %}
|
||||||
|
{% assign list_plugins = "" %}
|
||||||
|
{% assign list_instruments = "" %}
|
||||||
|
{% assign list_samples = "" %}
|
||||||
|
{% assign list_bassline = "" %}
|
||||||
|
{% assign list_automation = "" %}
|
||||||
|
|
||||||
|
{% for p in site.data.all %}
|
||||||
|
{% if p.bpm %}{% assign list_bpm = list_bpm | append: p.bpm | append: "|||" %}{% endif %}
|
||||||
|
{% for item in p.tags.plugin %}{% if item != "" %}{% assign list_plugins = list_plugins | append: item | append: "|||" %}{% endif %}{% endfor %}
|
||||||
|
{% if p.tags.bassline %}{% for item in p.tags.bassline %}{% if item != "" %}{% assign list_bassline = list_bassline | append: item | append: "|||" %}{% endif %}{% endfor %}{% endif %}
|
||||||
|
{% if p.tags.automation %}{% for item in p.tags.automation %}{% if item != "" %}{% assign list_automation = list_automation | append: item | append: "|||" %}{% endif %}{% endfor %}{% endif %}
|
||||||
|
|
||||||
|
{% for track in p.tracks %}
|
||||||
|
{% if track.instruments %}{% for inst in track.instruments %}{% assign list_instruments = list_instruments | append: inst.instrument_name | append: "|||" %}{% endfor %}
|
||||||
|
{% elsif track.instrument_name %}{% assign list_instruments = list_instruments | append: track.instrument_name | append: "|||" %}{% endif %}
|
||||||
|
{% if track.sample %}{% for smp in track.sample %}{% assign list_samples = list_samples | append: smp.sample_name | append: "|||" %}{% endfor %}
|
||||||
|
{% elsif track.sample_name %}{% assign list_samples = list_samples | append: track.sample_name | append: "|||" %}{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% assign unique_bpm = list_bpm | split: "|||" | uniq | sort %}
|
||||||
|
{% assign unique_plugins = list_plugins | split: "|||" | uniq | sort %}
|
||||||
|
{% assign unique_instruments = list_instruments | split: "|||" | uniq | sort %}
|
||||||
|
{% assign unique_samples = list_samples | split: "|||" | uniq | sort %}
|
||||||
|
{% assign unique_bassline = list_bassline | split: "|||" | uniq | sort %}
|
||||||
|
{% assign unique_automation = list_automation | split: "|||" | uniq | sort %}
|
||||||
|
|
||||||
<div class="publication">
|
<div class="publication">
|
||||||
<div class="container">
|
<div class="container is-fluid">
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div class="tabs is-centered is-boxed is-medium mb-6">
|
<div class="tabs is-centered is-boxed is-medium mb-5">
|
||||||
{% include sidebar.html %}
|
{% include sidebar.html %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="has-text-centered mb-6">
|
<div class="columns is-vcentered mb-5">
|
||||||
<h1 class="title is-3 has-text-grey-dark">📁 Projetos Disponíveis</h1>
|
<div class="column">
|
||||||
<p class="subtitle is-6 has-text-grey">
|
<h1 class="title is-3 has-text-grey-dark">📁 Projetos Disponíveis</h1>
|
||||||
Explore, ouça e reutilize projetos da comunidade LMMS.
|
<p class="subtitle is-6 has-text-grey">
|
||||||
</p>
|
Use o menu lateral para filtrar projetos por BPM, Plugin, Instrumento, etc.
|
||||||
<div style="width: 60px; height: 4px; background-color: #3273dc; margin: 1rem auto; border-radius: 2px;"></div>
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="column is-narrow">
|
||||||
|
<button id="reset-all-filters" class="button is-danger is-light is-small">
|
||||||
|
<span class="icon"><i class="fa-solid fa-rotate-left"></i></span>
|
||||||
|
<span>Limpar Filtros</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="columns is-multiline">
|
<div class="columns">
|
||||||
{% assign project_pages = site.pages | where_exp: "page", "page.path contains 'projetos/'" | sort: "title" %}
|
|
||||||
{% for page in project_pages %}
|
|
||||||
{% if page.url != '/projetos/' %}
|
|
||||||
<div class="column is-12-mobile is-6-tablet is-4-desktop is-3-widescreen">
|
|
||||||
|
|
||||||
<div class="card project-card"
|
<div class="column is-3">
|
||||||
style="height: 100%; background-color: #f0f8ff; border: 1px solid #cfe8fc; border-radius: 12px; display: flex; flex-direction: column; position: relative;">
|
<div class="box p-3" style="background: #fcfcfc; border: 1px solid #eee;">
|
||||||
|
|
||||||
<a href="{{ page.url | relative_url }}" style="text-decoration: none; flex: 1; display: flex; flex-direction: column;">
|
<div class="filter-group mb-4">
|
||||||
<div class="card-content has-text-centered p-4" style="flex: 1; display: flex; flex-direction: column;">
|
<p class="menu-label has-text-weight-bold mb-2">BPM</p>
|
||||||
|
<div class="field is-grouped is-grouped-multiline">
|
||||||
<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);">
|
{% for item in unique_bpm %}
|
||||||
<span class="icon" style="color: #3273dc;">
|
{% if item != "" %}
|
||||||
<i class="fa-solid fa-music fa-lg"></i>
|
<div class="control">
|
||||||
</span>
|
<label class="checkbox tag is-white" style="border: 1px solid #dbdbdb; cursor: pointer;">
|
||||||
</div>
|
<input type="checkbox" class="filter-checkbox" data-category="bpm" value="{{ item }}">
|
||||||
|
{{ item }}
|
||||||
<p class="title is-6 mb-2" style="color: #205081; word-break: break-word; font-weight: 700; line-height: 1.2;">
|
</label>
|
||||||
{{ page.title | default: page.name | replace: '.html', '' }}
|
</div>
|
||||||
</p>
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% if page.bpm %}
|
|
||||||
<div class="mb-3">
|
|
||||||
<span class="tag is-dark is-rounded is-light" style="font-size: 0.7rem; font-weight: bold; border: 1px solid #ccc;">
|
|
||||||
🎵 {{ page.bpm }} BPM
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="mb-3" style="height: 24px;"></div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div style="flex: 1;"></div>
|
|
||||||
|
|
||||||
<div class="mt-auto pt-2" style="width: 100%; border-top: 1px dashed #eef6fc;">
|
|
||||||
|
|
||||||
{% assign inst_tags = page.tags.instruments | default: page.tags.instrument %}
|
|
||||||
{% if inst_tags and inst_tags.size > 0 %}
|
|
||||||
<details class="category-reveal mb-1" style="width: 100%;">
|
|
||||||
<summary class="tag is-white summary-btn">
|
|
||||||
<div class="tag-label">
|
|
||||||
<span>🎸</span> <span class="tag-text">INSTRUMENTS</span>
|
|
||||||
</div>
|
|
||||||
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
|
||||||
</summary>
|
|
||||||
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
|
||||||
{% for tag in inst_tags %}
|
|
||||||
{% if tag != "" %}
|
|
||||||
<a href="{{ '/instruments/?instrument=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.tags.plugin and page.tags.plugin.size > 0 %}
|
|
||||||
<details class="category-reveal mb-1" style="width: 100%;">
|
|
||||||
<summary class="tag is-white summary-btn">
|
|
||||||
<div class="tag-label">
|
|
||||||
<span>🔌</span> <span class="tag-text">PLUGINS</span>
|
|
||||||
</div>
|
|
||||||
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
|
||||||
</summary>
|
|
||||||
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
|
||||||
{% for tag in page.tags.plugin %}
|
|
||||||
{% if tag != "" %}
|
|
||||||
<a href="{{ '/plugin/?plugin=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.tags.bassline and page.tags.bassline.size > 0 %}
|
|
||||||
<details class="category-reveal mb-1" style="width: 100%;">
|
|
||||||
<summary class="tag is-white summary-btn">
|
|
||||||
<div class="tag-label">
|
|
||||||
<span>🎹</span> <span class="tag-text">BASSLINE</span>
|
|
||||||
</div>
|
|
||||||
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
|
||||||
</summary>
|
|
||||||
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
|
||||||
{% for tag in page.tags.bassline %}
|
|
||||||
{% if tag != "" %}
|
|
||||||
<a href="{{ '/bassline/?bassline=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.tags.automation and page.tags.automation.size > 0 %}
|
|
||||||
<details class="category-reveal mb-1" style="width: 100%;">
|
|
||||||
<summary class="tag is-white summary-btn">
|
|
||||||
<div class="tag-label">
|
|
||||||
<span>🎚️</span> <span class="tag-text">AUTOMATION</span>
|
|
||||||
</div>
|
|
||||||
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
|
||||||
</summary>
|
|
||||||
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
|
||||||
{% for tag in page.tags.automation %}
|
|
||||||
{% if tag != "" %}
|
|
||||||
<a href="{{ '/automation/?automation=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.tags.sample and page.tags.sample.size > 0 %}
|
|
||||||
<details class="category-reveal mb-1" style="width: 100%;">
|
|
||||||
<summary class="tag is-white summary-btn">
|
|
||||||
<div class="tag-label">
|
|
||||||
<span>🎤</span> <span class="tag-text">SAMPLES</span>
|
|
||||||
</div>
|
|
||||||
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
|
||||||
</summary>
|
|
||||||
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
|
||||||
{% for tag in page.tags.sample %}
|
|
||||||
{% if tag != "" %}
|
|
||||||
<a href="{{ '/sample/?sample=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</div>
|
||||||
|
<hr class="my-3">
|
||||||
|
|
||||||
<footer class="card-footer" style="border-top: 1px solid #cfe8fc; background-color: #fff; border-radius: 0 0 12px 12px; overflow: hidden;">
|
<details open>
|
||||||
<a href="#" class="card-footer-item js-open-modal"
|
<summary class="menu-label has-text-weight-bold mb-2 clickable-summary">Instrumentos</summary>
|
||||||
data-target-url="{{ page.url | relative_url }}"
|
<div class="filter-content" style="max-height: 200px; overflow-y: auto;">
|
||||||
data-modal-title="Detalhes: {{ page.file }}"
|
{% for item in unique_instruments %}{% if item != "" %}
|
||||||
data-full-btn-text="Ir para Página"
|
<label class="checkbox is-block mb-1 is-size-7">
|
||||||
data-full-btn-link="{{ page.url | relative_url }}"
|
<input type="checkbox" class="filter-checkbox" data-category="instruments" value="{{ item }}"> {{ item }}
|
||||||
style="color: #5b7da3; font-size: 0.8rem; font-weight: 600; border-right: 1px solid #eee; transition: background 0.2s;">
|
</label>
|
||||||
Ver
|
{% endif %}{% endfor %}
|
||||||
</a>
|
</div>
|
||||||
|
</details>
|
||||||
|
<hr class="my-3">
|
||||||
|
|
||||||
{% assign creation_url = '/mmpSearch/creation.html?project=' | append: page.file %}
|
<details>
|
||||||
{% assign embed_url = creation_url | append: '&embed=true' %}
|
<summary class="menu-label has-text-weight-bold mb-2 clickable-summary">Plugins</summary>
|
||||||
|
<div class="filter-content" style="max-height: 200px; overflow-y: auto;">
|
||||||
|
{% for item in unique_plugins %}{% if item != "" %}
|
||||||
|
<label class="checkbox is-block mb-1 is-size-7">
|
||||||
|
<input type="checkbox" class="filter-checkbox" data-category="plugins" value="{{ item }}"> {{ item }}
|
||||||
|
</label>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
<hr class="my-3">
|
||||||
|
|
||||||
<a href="#" class="card-footer-item js-open-modal"
|
<details>
|
||||||
data-target-url="{{ embed_url }}"
|
<summary class="menu-label has-text-weight-bold mb-2 clickable-summary">Bassline</summary>
|
||||||
data-modal-title="Editor: {{ page.file }}"
|
<div class="filter-content" style="max-height: 200px; overflow-y: auto;">
|
||||||
data-full-btn-text="Abrir Editor"
|
{% for item in unique_bassline %}{% if item != "" %}
|
||||||
data-full-btn-link="{{ creation_url }}"
|
<label class="checkbox is-block mb-1 is-size-7">
|
||||||
style="color: #3273dc; font-size: 0.8rem; font-weight: 600; transition: background 0.2s;">
|
<input type="checkbox" class="filter-checkbox" data-category="bassline" value="{{ item }}"> {{ item }}
|
||||||
Editar
|
</label>
|
||||||
</a>
|
{% endif %}{% endfor %}
|
||||||
</footer>
|
</div>
|
||||||
|
</details>
|
||||||
|
<hr class="my-3">
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary class="menu-label has-text-weight-bold mb-2 clickable-summary">Automação</summary>
|
||||||
|
<div class="filter-content" style="max-height: 200px; overflow-y: auto;">
|
||||||
|
{% for item in unique_automation %}{% if item != "" %}
|
||||||
|
<label class="checkbox is-block mb-1 is-size-7">
|
||||||
|
<input type="checkbox" class="filter-checkbox" data-category="automation" value="{{ item }}"> {{ item }}
|
||||||
|
</label>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
<hr class="my-3">
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary class="menu-label has-text-weight-bold mb-2 clickable-summary">Samples</summary>
|
||||||
|
<div class="filter-content" style="max-height: 200px; overflow-y: auto;">
|
||||||
|
{% for item in unique_samples %}{% if item != "" %}
|
||||||
|
<label class="checkbox is-block mb-1 is-size-7">
|
||||||
|
<input type="checkbox" class="filter-checkbox" data-category="samples" value="{{ item }}"> {{ item | truncate: 25 }}
|
||||||
|
</label>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</div>
|
||||||
{% endfor %}
|
|
||||||
|
<div class="column is-9">
|
||||||
|
|
||||||
|
<div class="notification is-info is-light mb-4 is-hidden" id="results-count-bar">
|
||||||
|
Encontrados <span id="visible-count" class="has-text-weight-bold">0</span> projetos.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="project-list" class="columns is-multiline">
|
||||||
|
{% assign project_pages = site.pages | where_exp: "page", "page.path contains 'projetos/'" | sort: "title" %}
|
||||||
|
{% for page in project_pages %}
|
||||||
|
{% if page.url != '/projetos/' %}
|
||||||
|
|
||||||
|
{% assign p_bpm = page.bpm | append: "" %}
|
||||||
|
{% assign p_plugins = page.tags.plugin | join: ',' %}
|
||||||
|
{% assign p_bassline = page.tags.bassline | join: ',' %}
|
||||||
|
{% assign p_automation = page.tags.automation | join: ',' %}
|
||||||
|
{% assign p_samples = page.tags.sample | join: ',' %}
|
||||||
|
{% assign p_instruments = page.tags.instruments | default: page.tags.instrument | join: ',' %}
|
||||||
|
|
||||||
|
<div class="column is-12-mobile is-6-tablet is-4-desktop is-4-widescreen project-item"
|
||||||
|
data-bpm="{{ p_bpm }}"
|
||||||
|
data-plugins="{{ p_plugins }}"
|
||||||
|
data-bassline="{{ p_bassline }}"
|
||||||
|
data-automation="{{ p_automation }}"
|
||||||
|
data-instruments="{{ p_instruments }}"
|
||||||
|
data-samples="{{ p_samples }}">
|
||||||
|
|
||||||
|
<div class="card project-card"
|
||||||
|
style="height: 100%; background-color: #f0f8ff; border: 1px solid #cfe8fc; border-radius: 12px; display: flex; flex-direction: column; position: relative;">
|
||||||
|
|
||||||
|
<a href="{{ page.url | relative_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-music 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;">
|
||||||
|
{{ page.title | default: page.name | replace: '.html', '' }}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{% if page.bpm %}
|
||||||
|
<div class="mb-3">
|
||||||
|
<span class="tag is-dark is-rounded is-light" style="font-size: 0.7rem; font-weight: bold; border: 1px solid #ccc;">
|
||||||
|
🎵 {{ page.bpm }} BPM
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="mb-3" style="height: 24px;"></div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div style="flex: 1;"></div>
|
||||||
|
|
||||||
|
<div class="mt-auto pt-2" style="width: 100%; border-top: 1px dashed #eef6fc;">
|
||||||
|
|
||||||
|
{% assign inst_tags = page.tags.instruments | default: page.tags.instrument %}
|
||||||
|
{% if inst_tags and inst_tags.size > 0 %}
|
||||||
|
<details class="category-reveal mb-1" style="width: 100%;">
|
||||||
|
<summary class="tag is-white summary-btn">
|
||||||
|
<div class="tag-label"><span>🎸</span> <span class="tag-text">INSTRUMENTS</span></div>
|
||||||
|
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
||||||
|
</summary>
|
||||||
|
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
||||||
|
{% for tag in inst_tags %}{% if tag != "" %}
|
||||||
|
<a href="{{ '/instruments/?instrument=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.tags.plugin and page.tags.plugin.size > 0 %}
|
||||||
|
<details class="category-reveal mb-1" style="width: 100%;">
|
||||||
|
<summary class="tag is-white summary-btn">
|
||||||
|
<div class="tag-label"><span>🔌</span> <span class="tag-text">PLUGINS</span></div>
|
||||||
|
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
||||||
|
</summary>
|
||||||
|
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
||||||
|
{% for tag in page.tags.plugin %}{% if tag != "" %}
|
||||||
|
<a href="{{ '/plugin/?plugin=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.tags.bassline and page.tags.bassline.size > 0 %}
|
||||||
|
<details class="category-reveal mb-1" style="width: 100%;">
|
||||||
|
<summary class="tag is-white summary-btn">
|
||||||
|
<div class="tag-label"><span>🎹</span> <span class="tag-text">BASSLINE</span></div>
|
||||||
|
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
||||||
|
</summary>
|
||||||
|
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
||||||
|
{% for tag in page.tags.bassline %}{% if tag != "" %}
|
||||||
|
<a href="{{ '/bassline/?bassline=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.tags.automation and page.tags.automation.size > 0 %}
|
||||||
|
<details class="category-reveal mb-1" style="width: 100%;">
|
||||||
|
<summary class="tag is-white summary-btn">
|
||||||
|
<div class="tag-label"><span>🎚️</span> <span class="tag-text">AUTOMATION</span></div>
|
||||||
|
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
||||||
|
</summary>
|
||||||
|
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
||||||
|
{% for tag in page.tags.automation %}{% if tag != "" %}
|
||||||
|
<a href="{{ '/automation/?automation=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.tags.sample and page.tags.sample.size > 0 %}
|
||||||
|
<details class="category-reveal mb-1" style="width: 100%;">
|
||||||
|
<summary class="tag is-white summary-btn">
|
||||||
|
<div class="tag-label"><span>🎤</span> <span class="tag-text">SAMPLES</span></div>
|
||||||
|
<span class="icon is-small chevron"><i class="fa-solid fa-chevron-down"></i></span>
|
||||||
|
</summary>
|
||||||
|
<div class="tags is-centered mt-1 mb-2 px-1" style="gap: 3px;">
|
||||||
|
{% for tag in page.tags.sample %}{% if tag != "" %}
|
||||||
|
<a href="{{ '/sample/?sample=' | append: tag | relative_url }}" class="tag is-light is-info clickable-tag">{{ tag | truncate: 18 }}</a>
|
||||||
|
{% endif %}{% endfor %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</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 | relative_url }}"
|
||||||
|
data-modal-title="Detalhes: {{ page.file }}"
|
||||||
|
data-full-btn-text="Ir para Página"
|
||||||
|
data-full-btn-link="{{ page.url | relative_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: page.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: {{ page.file }}"
|
||||||
|
data-full-btn-text="Abrir Editor"
|
||||||
|
data-full-btn-link="{{ creation_url }}"
|
||||||
|
style="color: #3273dc; font-size: 0.8rem; font-weight: 600; transition: background 0.2s;">
|
||||||
|
Editar
|
||||||
|
</a>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="no-results" class="has-text-centered is-hidden mt-6">
|
||||||
|
<span class="icon is-large has-text-grey-light"><i class="fa-solid fa-face-frown fa-3x"></i></span>
|
||||||
|
<p class="subtitle mt-3 has-text-grey">Nenhum projeto encontrado com essa combinação.</p>
|
||||||
|
<button class="button is-small is-info mt-2" onclick="document.getElementById('reset-all-filters').click()">Limpar Filtros</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="preview-modal" class="modal">
|
{% include preview-modal.html %}
|
||||||
<div class="modal-background"></div>
|
|
||||||
<div class="modal-card" style="width: 90%; max-width: 800px;">
|
|
||||||
<header class="modal-card-head" style="background-color: #f0f8ff; border-bottom: 1px solid #cfe8fc;">
|
|
||||||
<p class="modal-card-title" id="modal-title" style="color: #205081; font-weight: bold;">Preview</p>
|
|
||||||
<button class="delete" aria-label="close"></button>
|
|
||||||
</header>
|
|
||||||
<section class="modal-card-body p-0" style="height: 500px; background-color: #fff;">
|
|
||||||
<iframe id="preview-iframe" src="" style="width: 100%; height: 100%; border: none;"></iframe>
|
|
||||||
</section>
|
|
||||||
<footer class="modal-card-foot" style="justify-content: flex-end; background-color: #fff; border-top: 1px solid #cfe8fc;">
|
|
||||||
<button class="button" id="close-modal-btn">Fechar</button>
|
|
||||||
<a href="#" id="full-edit-btn" target="_blank" class="button is-info">
|
|
||||||
<span>Abrir</span>
|
|
||||||
<span class="icon is-small ml-1"><i class="fa-solid fa-up-right-from-square"></i></span>
|
|
||||||
</a>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* Estilos do Card */
|
/* Estilos do Filtro Lateral */
|
||||||
.project-card:hover {
|
.clickable-summary { cursor: pointer; user-select: none; }
|
||||||
transform: translateY(-5px);
|
.clickable-summary:hover { color: #3273dc; }
|
||||||
box-shadow: 0 8px 20px rgba(50, 115, 220, 0.15);
|
.tag.is-checked { background-color: #3273dc !important; color: #fff !important; border-color: #3273dc !important; }
|
||||||
border-color: #3273dc !important;
|
|
||||||
background-color: #fff !important;
|
|
||||||
}
|
|
||||||
.project-card:hover .title {
|
|
||||||
color: #3273dc !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Estilos do Accordion de Tags */
|
.filter-content::-webkit-scrollbar { width: 6px; }
|
||||||
.category-reveal summary {
|
.filter-content::-webkit-scrollbar-track { background: #f1f1f1; }
|
||||||
list-style: none;
|
.filter-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
|
||||||
transition: all 0.2s ease;
|
|
||||||
}
|
|
||||||
.category-reveal summary::-webkit-details-marker { display: none; }
|
|
||||||
|
|
||||||
.summary-btn {
|
/* Estilos do Card */
|
||||||
width: 100%;
|
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(50, 115, 220, 0.15); border-color: #3273dc !important; }
|
||||||
justify-content: space-between;
|
|
||||||
cursor: pointer;
|
|
||||||
border: 1px solid #deeaf6;
|
|
||||||
color: #5b7da3;
|
|
||||||
padding: 2px 8px;
|
|
||||||
min-height: 22px;
|
|
||||||
margin-bottom: 2px;
|
|
||||||
display: flex !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-label {
|
/* Tags nos Cards */
|
||||||
display: flex;
|
.category-reveal summary { list-style: none; transition: all 0.2s ease; }
|
||||||
align-items: center;
|
.category-reveal summary::-webkit-details-marker { display: none; }
|
||||||
gap: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-text {
|
.summary-btn {
|
||||||
font-weight: 700;
|
width: 100%; justify-content: space-between; cursor: pointer;
|
||||||
font-size: 0.6rem;
|
border: 1px solid #deeaf6; color: #5b7da3; padding: 2px 8px;
|
||||||
text-transform: uppercase;
|
min-height: 22px; margin-bottom: 2px; display: flex !important;
|
||||||
letter-spacing: 0.5px;
|
}
|
||||||
}
|
.tag-label { display: flex; align-items: center; gap: 6px; }
|
||||||
|
.tag-text { font-weight: 700; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; }
|
||||||
|
.chevron { font-size: 0.6rem; opacity: 0.7; transition: transform 0.2s ease; }
|
||||||
|
|
||||||
.chevron {
|
.category-reveal summary:hover { background-color: #f8fbff; border-color: #3273dc; }
|
||||||
font-size: 0.6rem;
|
.category-reveal[open] summary { background-color: #eef6fc !important; border-color: #3273dc !important; color: #3273dc !important; }
|
||||||
opacity: 0.7;
|
.category-reveal[open] summary .chevron { transform: rotate(180deg); }
|
||||||
transition: transform 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.category-reveal summary:hover {
|
.clickable-tag {
|
||||||
background-color: #f8fbff;
|
font-size: 0.6rem; height: 1.5em; border: 1px solid #cfe8fc;
|
||||||
border-color: #3273dc;
|
text-decoration: none; padding: 0 6px; transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
.clickable-tag:hover {
|
||||||
.category-reveal[open] summary {
|
background-color: #3273dc !important; color: #fff !important;
|
||||||
background-color: #eef6fc !important;
|
border-color: #3273dc !important; transform: translateY(-1px);
|
||||||
border-color: #3273dc !important;
|
}
|
||||||
color: #3273dc !important;
|
|
||||||
}
|
|
||||||
.category-reveal[open] summary .chevron { transform: rotate(180deg); }
|
|
||||||
|
|
||||||
/* Estilos das Tags Clicáveis */
|
|
||||||
.clickable-tag {
|
|
||||||
font-size: 0.6rem;
|
|
||||||
height: 1.5em;
|
|
||||||
border: 1px solid #cfe8fc;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 0 6px;
|
|
||||||
transition: all 0.2s ease;
|
|
||||||
}
|
|
||||||
.clickable-tag:hover {
|
|
||||||
background-color: #3273dc !important;
|
|
||||||
color: #fff !important;
|
|
||||||
border-color: #3273dc !important;
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
const modal = document.getElementById('preview-modal');
|
const checkboxes = document.querySelectorAll('.filter-checkbox');
|
||||||
const iframe = document.getElementById('preview-iframe');
|
const projects = document.querySelectorAll('.project-item');
|
||||||
const modalTitle = document.getElementById('modal-title');
|
const resetBtn = document.getElementById('reset-all-filters');
|
||||||
const fullEditBtn = document.getElementById('full-edit-btn');
|
const countBar = document.getElementById('results-count-bar');
|
||||||
const closeButtons = document.querySelectorAll('.modal-background, .modal-card-head .delete, #close-modal-btn');
|
const countSpan = document.getElementById('visible-count');
|
||||||
|
const noResults = document.getElementById('no-results');
|
||||||
|
|
||||||
function openModal(url, title, btnText, btnLink) {
|
// Estado do Filtro
|
||||||
if(!modal) return;
|
let activeFilters = { bpm: [], instruments: [], plugins: [], samples: [], bassline: [], automation: [] };
|
||||||
modalTitle.textContent = title;
|
|
||||||
iframe.src = url;
|
|
||||||
fullEditBtn.textContent = btnText;
|
|
||||||
fullEditBtn.href = btnLink;
|
|
||||||
modal.classList.add('is-active');
|
|
||||||
document.documentElement.classList.add('is-clipped');
|
|
||||||
}
|
|
||||||
|
|
||||||
function closeModal() {
|
function updateState() {
|
||||||
if(!modal) return;
|
activeFilters = { bpm: [], instruments: [], plugins: [], samples: [], bassline: [], automation: [] };
|
||||||
modal.classList.remove('is-active');
|
|
||||||
document.documentElement.classList.remove('is-clipped');
|
|
||||||
iframe.src = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
document.querySelectorAll('.js-open-modal').forEach(btn => {
|
checkboxes.forEach(cb => {
|
||||||
btn.addEventListener('click', (e) => {
|
if (cb.checked) {
|
||||||
e.preventDefault();
|
const category = cb.getAttribute('data-category');
|
||||||
const url = btn.dataset.targetUrl;
|
if (activeFilters[category]) activeFilters[category].push(cb.value);
|
||||||
const title = btn.dataset.modalTitle;
|
if(cb.parentElement.classList.contains('tag')) cb.parentElement.classList.add('is-checked');
|
||||||
const btnText = btn.dataset.fullBtnText;
|
} else {
|
||||||
const btnLink = btn.dataset.fullBtnLink;
|
if(cb.parentElement.classList.contains('tag')) cb.parentElement.classList.remove('is-checked');
|
||||||
openModal(url, title, btnText, btnLink);
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
applyFilters();
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyFilters() {
|
||||||
|
let visibleCount = 0;
|
||||||
|
|
||||||
|
projects.forEach(project => {
|
||||||
|
// Lê dados do elemento (Fallback para string vazia)
|
||||||
|
const pBpm = project.getAttribute('data-bpm') || "";
|
||||||
|
const pInsts = (project.getAttribute('data-instruments') || "").split(',');
|
||||||
|
const pPlugins = (project.getAttribute('data-plugins') || "").split(',');
|
||||||
|
const pSamples = (project.getAttribute('data-samples') || "").split(',');
|
||||||
|
const pBassline = (project.getAttribute('data-bassline') || "").split(',');
|
||||||
|
const pAutomation = (project.getAttribute('data-automation') || "").split(',');
|
||||||
|
|
||||||
|
const matchBpm = activeFilters.bpm.length === 0 || activeFilters.bpm.includes(pBpm);
|
||||||
|
const matchInst = activeFilters.instruments.length === 0 || activeFilters.instruments.some(f => pInsts.includes(f));
|
||||||
|
const matchPlugin = activeFilters.plugins.length === 0 || activeFilters.plugins.some(f => pPlugins.includes(f));
|
||||||
|
const matchSample = activeFilters.samples.length === 0 || activeFilters.samples.some(f => pSamples.includes(f));
|
||||||
|
const matchBassline = activeFilters.bassline.length === 0 || activeFilters.bassline.some(f => pBassline.includes(f));
|
||||||
|
const matchAutomation = activeFilters.automation.length === 0 || activeFilters.automation.some(f => pAutomation.includes(f));
|
||||||
|
|
||||||
|
if (matchBpm && matchInst && matchPlugin && matchSample && matchBassline && matchAutomation) {
|
||||||
|
project.style.display = 'block';
|
||||||
|
visibleCount++;
|
||||||
|
} else {
|
||||||
|
project.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
countSpan.textContent = visibleCount;
|
||||||
|
countBar.classList.toggle('is-hidden', visibleCount >= projects.length);
|
||||||
|
noResults.classList.toggle('is-hidden', visibleCount > 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
checkboxes.forEach(cb => cb.addEventListener('change', updateState));
|
||||||
|
|
||||||
|
resetBtn.addEventListener('click', () => {
|
||||||
|
checkboxes.forEach(cb => {
|
||||||
|
cb.checked = false;
|
||||||
|
if(cb.parentElement.classList.contains('tag')) cb.parentElement.classList.remove('is-checked');
|
||||||
|
});
|
||||||
|
updateState();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
iframe.addEventListener('load', () => {
|
// --- Lógica do Modal (Existente) ---
|
||||||
try {
|
const modal = document.getElementById('preview-modal');
|
||||||
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
const iframe = document.getElementById('preview-iframe');
|
||||||
const style = iframeDoc.createElement('style');
|
const modalTitle = document.getElementById('modal-title');
|
||||||
style.textContent = `
|
const fullEditBtn = document.getElementById('full-edit-btn');
|
||||||
.tabs, .navbar, .sidebar-wrapper, .main-header { display: none !important; }
|
const closeButtons = document.querySelectorAll('.modal-background, .modal-card-head .delete, #close-modal-btn');
|
||||||
.publication { padding-top: 0 !important; }
|
|
||||||
body { background-color: #fff !important; }
|
|
||||||
`;
|
|
||||||
iframeDoc.head.appendChild(style);
|
|
||||||
} catch(e) { }
|
|
||||||
});
|
|
||||||
|
|
||||||
closeButtons.forEach(el => el.addEventListener('click', closeModal));
|
function openModal(url, title, btnText, btnLink) {
|
||||||
document.addEventListener('keydown', (e) => {
|
if(!modal) return;
|
||||||
if (e.key === "Escape") closeModal();
|
modalTitle.textContent = title;
|
||||||
});
|
iframe.src = url;
|
||||||
|
fullEditBtn.textContent = btnText;
|
||||||
|
fullEditBtn.href = btnLink;
|
||||||
|
modal.classList.add('is-active');
|
||||||
|
document.documentElement.classList.add('is-clipped');
|
||||||
|
}
|
||||||
|
function closeModal() {
|
||||||
|
if(!modal) return;
|
||||||
|
modal.classList.remove('is-active');
|
||||||
|
document.documentElement.classList.remove('is-clipped');
|
||||||
|
iframe.src = "";
|
||||||
|
}
|
||||||
|
document.querySelectorAll('.js-open-modal').forEach(btn => {
|
||||||
|
btn.addEventListener('click', (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
openModal(btn.dataset.targetUrl, btn.dataset.modalTitle, btn.dataset.fullBtnText, btn.dataset.fullBtnLink);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if(iframe) {
|
||||||
|
iframe.addEventListener('load', () => { try {
|
||||||
|
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
||||||
|
const style = iframeDoc.createElement('style');
|
||||||
|
style.textContent = `.tabs, .navbar, .sidebar-wrapper, .main-header { display: none !important; } .publication { padding-top: 0 !important; } body { background-color: #fff !important; }`;
|
||||||
|
iframeDoc.head.appendChild(style);
|
||||||
|
} catch(e){} });
|
||||||
|
}
|
||||||
|
closeButtons.forEach(el => el.addEventListener('click', closeModal));
|
||||||
|
document.addEventListener('keydown', (e) => { if (e.key === "Escape") closeModal(); });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue