Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates 2024-12-02 10:25 #664

Merged
merged 14 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion assets/styles/pages/spaces.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,12 @@
.space-description {
color:var(--color-subtitle-gray);
line-height: 1.5;
}
}

@media (max-width: 768px) {
.space-img {
align-self: center;
width: 3.75rem;
height: 3.75rem;
}
}
4 changes: 2 additions & 2 deletions cypress/e2e/web/space/space-list.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('Página de Lista de Espaços', () => {
it('Garante que os cards de espaços estão visíveis', () => {
cy.get(':nth-child(2) > .space-card__content > .justify-content-between > .d-flex > .space-card__title').contains('Dragão do Mar').should('be.visible');
cy.get(':nth-child(2) > .space-card__content > .justify-content-between > .d-flex > .space-card__type').contains('Complexo Cultural').should('be.visible');
cy.get(':nth-child(2) > .space-card__content > .space-card__info > .mb-2').contains('O Dragão do Mar é um dos maiores complexos culturais da região, com teatros, cinemas e galerias de arte que promovem a cultura local e internacional.').should('be.visible');
cy.get(':nth-child(2) > .space-card__content > .space-card__info > .justify-content-end > .btn').contains('Acessar espaço').should('be.visible');
cy.get('.space-card__info > .mb-md-2').contains('O Dragão do Mar é um dos maiores complexos culturais da região, com teatros, cinemas e galerias de arte que promovem a cultura local e internacional.').should('be.visible');
cy.get(':nth-child(2) > .space-card__content > .space-card__info > .justify-content-center > .btn').contains('Acessar espaço').should('be.visible');
});

it('Garante que o filtro funciona', () => {
Expand Down
37 changes: 19 additions & 18 deletions templates/space/_partials/tabs/tab-list.html.twig
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
<div class="d-flex justify-content-between align-items-end">
<p class="fw-bold">{{ totalSpaces }} {{ 'view.space.quantity.total' | trans }}</p>
<div class="d-flex g-4 agent-sort">
<label class="text-nowrap" for="sort-options">{{ 'sort_by' | trans }}</label>
<select id="sort-options" class="form-select bg-transparent border-black">
<label class="text-nowrap d-none d-md-block" for="sort-options">{{ 'sort_by' | trans }}</label>
<select id="sort-options" class="form-select">
<option value="recent">{{ 'most_recent' | trans }}</option>
<option value="old">{{ 'oldest' | trans }}</option>
</select>
</div>
</div>

{% for space in spaces %}
<div class="space-card">
<img src="{{ asset('img/allan.png') }}" alt="{{ 'space.picture' | trans }}" class="">
<div class="space-card d-flex flex-column flex-md-row">
<img src="{{ asset('img/allan.png') }}" alt="{{ 'space.picture' | trans }}" class="space-img">
<div class="space-card__content">
<div class="d-flex justify-content-between mb-2">
<div class="d-flex justify-content-between mb-4 mb-md-2">
<div class="d-flex flex-column gap-1">
<h1 class="space-card__title">{{ space.name }}</h1>
<span class="space-card__type">{{ space.extraFields.type ?? '' }}</span>
</div>
<span class="event-id">
ID: {{ space.id }}
ID: <span title="{{ space.id }}">{{ space.id|split('-')|first }}...</span>
</span>
</div>

<div class="space-card__info">
<p class="mb-2">{{ space.extraFields.description ?? '' }}</p>
<div class="d-flex gap-1 mb-3">
<i class="material-icons">location_on</i>
<span class="align-self-center">{{ space.extraFields.location ?? '' }}</span>
<p class="mb-3 mb-md-2">{{ space.extraFields.description ?? '' }}</p>
<div class="d-flex gap-2 gap-md-1 mb-3 mb-md-3 align-items-center">
<i class="material-icons fs-3">location_on</i>
<span>{{ space.extraFields.location ?? '' }}</span>
</div>
<div class="mb-3">
<span class="fw-bold">{{ 'areas_of_expertise' | trans}} (3): </span>
<span class="fw-bold space-card__areas">{{ (space.extraFields.areasOfActivity ?? []) |join(', ') }}</span>
</div>
<div class="d-flex gap-1 mb-3">
<i class="material-icons">accessibility_new</i>
<div class="d-flex align-items-center gap-2 mb-3">
<i class="material-icons fs-3">accessibility_new</i>
<div class="align-self-center">
<span class="text-dark fw-bold">{{ 'accessibility' | trans }}</span>
<span class="text-dark fw-bold">{{ 'accessibility' | trans }}:</span>
{{ (space.extraFields.accessibility ?? []) | join(', ') }}
</div>
</div>
<div class="d-flex event-seals">

<div class="entity-seals">
<strong>{{ 'seals'| trans }}:</strong>
<p class="badge seal">Nome do selo</p>
<p class="badge seal">Nome do selo</p>
<p class="badge seal">Nome do selo</p>
<p class="seal-entity">Avaliador UFPR</p>
<p class="seal-entity">Avaliador UFC</p>
<p class="seal-entity">Selo Mapas</p>
</div>

<div class="d-flex justify-content-end">
<div class="d-flex justify-content-center justify-content-md-end">
<a href="{{ path('web_space_getOne', {'id': space.id }) }}" class="btn btn-primary list-page__access-btn">{{ 'view.space.access' | trans }}</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/space/_partials/tabs/tabs.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="entity-page-tabs mt-5">
<p class="d-flex align-self-end fw-bold fs-6 mb-3 me-4">{{ 'see_how' | trans }}:</p>
<p class="d-flex align-self-end fw-bold fs-6 mb-3 me-0 me-xl-4">{{ 'see_how' | trans }}:</p>
{% set tabs = [
{
'id': 'list',
Expand Down
8 changes: 4 additions & 4 deletions templates/space/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
{% include 'space/_partials/tabs/tabs.html.twig' %}
</section>

<button id="open-filter" class="filter-btn">
<i class="material-icons">filter_alt</i>
</button>

<section class="entity-wrapper">
{% include "space/_partials/side-filter.html.twig" %}

<button id="open-filter" class="filter-btn">
<i class="material-icons">filter_alt</i>
</button>

<div class="entity-container">
{% include 'space/_partials/tabs/content-tabs.html.twig' %}
</div>
Expand Down