mmpSearch/pages/projetos.md

25 KiB
Executable File

layout title permalink
default MMPSearch - Projetos /projetos/

<div class="tabs is-centered is-boxed is-medium mb-6">
  {% include sidebar.html %}
</div>

<div class="has-text-centered mb-6">
  <h1 class="title is-3 has-text-grey-dark">📁 Projetos Disponíveis</h1>
  <p class="subtitle is-6 has-text-grey">
    Explore, ouça e reutilize projetos da comunidade LMMS.
  </p>
  <div style="width: 60px; height: 4px; background-color: #3273dc; margin: 1rem auto; border-radius: 2px;"></div>
</div>

<div class="box has-background-white-ter mb-6 p-0" style="border: 1px solid #dbdbdb; overflow: hidden; height: auto;">

  <div class="p-3 is-clickable" id="filter-toggle-btn" style="cursor: pointer; display: flex; align-items: center; justify-content: space-between; background-color: #f5f5f5;">
    <div class="icon-text has-text-weight-bold has-text-grey-dark">
      <span class="icon"><i class="fa-solid fa-sliders"></i></span>
      <span>Filtros, Gêneros & Ordenação</span>
    </div>
    <span class="icon transition-icon">
      <i class="fa-solid fa-chevron-down" id="filter-chevron"></i>
    </span>
  </div>

  <div id="filter-content" style="display: none; border-top: 1px solid #e8e8e8;">
    <div class="p-4">
      <div class="columns is-vcentered is-multiline">

        <div class="column is-narrow">
          <span class="tag is-info is-light has-text-weight-bold">
            <i class="fa-solid fa-robot mr-1"></i> Filtro IA:
          </span>
        </div>

        <div class="column">
          <div class="buttons" id="genre-filters">
            <button class="button is-small is-rounded is-active is-info" data-genre="all">Todos</button>
          </div>
        </div>

        <div class="column is-narrow">
           <div class="field has-addons" style="flex-wrap: wrap; gap: 5px;">

             <div class="control has-icons-left">
               <div class="select is-small is-rounded">
                <select id="star-filter">
                  <option value="all">Todas Dificuldades</option>
                  <option value="5">🔥 Expert (Nível 5)</option>
                  <option value="4">⚡ Avançado (Nível 4)</option>
                  <option value="3">🔷 Intermediário (Nível 3)</option>
                  <option value="2">🟢 Básico (Nível 2)</option>
                </select>
               </div>
               <div class="icon is-small is-left has-text-warning">
                 <i class="fa-solid fa-star"></i>
               </div>
             </div>

             <div class="control has-icons-left">
               <div class="select is-small is-rounded">
                <select id="sort-select">
                  <option value="default">Ordem Padrão</option>
                  <option value="stars_desc">⭐ Mais Complexos</option>
                  <option value="stars_asc">⭐ Mais Simples</option>
                  <option value="intensity_desc">🔥 Mais Intensos</option>
                  <option value="intensity_asc">❄️ Mais Calmos</option>
                  <option value="bpm_desc">⚡ BPM (Rápido)</option>
                </select>
              </div>
              <div class="icon is-small is-left">
                 <i class="fa-solid fa-sort"></i>
               </div>
             </div>

           </div>
        </div>

      </div>
    </div>
  </div>
</div>
<div class="columns is-multiline" id="projects-container">
  {% 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 project-column">

        <div class="card project-card"
             data-title="{{ page.title | escape }}"
             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 bpm-container">
                      <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 bpm-container" style="min-height: 24px;"></div>
                {% endif %}

                <div style="flex: 1;"></div>

                {% if page.tags %}
                <div class="mt-auto pt-2" style="width: 100%; border-top: 1px dashed #eef6fc;">
                    {% for category in page.tags %}
                        {% assign cat_name = category[0] %}
                        {% assign cat_items = category[1] %}

                        {% assign ignore_cat = false %}
                        {% if cat_name == 'TAG' or cat_name == 'tag' %}{% assign ignore_cat = true %}{% endif %}

                        {% assign has_items = false %}
                        {% for item in cat_items %}{% if item != "" %}{% assign has_items = true %}{% endif %}{% endfor %}

                        {% if ignore_cat == false and has_items %}
                            <details class="category-reveal mb-1" style="width: 100%;">
                                <summary class="tag is-white"
                                         style="width: 100%; justify-content: space-between; cursor: pointer; border: 1px solid #deeaf6; color: #5b7da3; padding: 2px 8px; min-height: 22px; margin-bottom: 2px;">

                                    <div style="display: flex; align-items: center; gap: 6px;">
                                        <span style="font-size: 0.7rem;">
                                            {% if cat_name == 'plugin' %}🔌
                                            {% elsif cat_name == 'sample' %}🎤
                                            {% elsif cat_name == 'bassline' %}🎹
                                            {% elsif cat_name == 'automation' %}🎚️
                                            {% else %}🏷️
                                            {% endif %}
                                        </span>
                                        <span style="font-weight: 700; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px;">
                                            {{ cat_name }}
                                        </span>
                                    </div>

                                    <span class="icon is-small" style="font-size: 0.6rem; opacity: 0.7;">
                                        <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 cat_items %}
                                        {% if tag != "" %}
                                            {% assign tag_slug = tag | replace: ' ', '+' %}
                                            {% assign search_url = '/search/?q=' | append: tag_slug | relative_url %}

                                            {% if cat_name == 'plugin' %}{% assign search_url = '/plugin/?plugin=' | append: tag_slug | relative_url %}{% endif %}
                                            {% if cat_name == 'sample' %}{% assign search_url = '/sample/?sample=' | append: tag_slug | relative_url %}{% endif %}
                                            {% if cat_name == 'bassline' %}{% assign search_url = '/bassline/?bassline=' | append: tag_slug | relative_url %}{% endif %}
                                            {% if cat_name == 'automation' %}{% assign search_url = '/automation/?automation=' | append: tag_slug | relative_url %}{% endif %}

                                            <a href="{{ search_url }}"
                                               class="tag is-light is-info clickable-tag"
                                               style="font-size: 0.6rem; height: 1.5em; border: 1px solid #cfe8fc; text-decoration: none; padding: 0 6px;">
                                                {{ tag | truncate: 18 }}
                                            </a>
                                        {% endif %}
                                    {% endfor %}
                                </div>
                            </details>
                        {% endif %}
                    {% endfor %}
                </div>
              {% endif %}
              </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>

<br><br>

Preview

Fechar Abrir