Skip to content

Commit f5a6eb3

Browse files
authored
Merge pull request #766 from IT-Academy-BCN/feature#187-new-cards-display
fix(challenge): show related cards in grid layout
2 parents 64deef2 + 84ed2c8 commit f5a6eb3

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to
55
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
### [ita-challenges-frontend-3.27.3-RELEASE] - 2026-02-23
8+
9+
### Changed
10+
- Display related challenge cards in a responsive grid layout (3 columns on desktop, 1 column on mobile).
711
### [ita-challenges-frontend-3.27.2-RELEASE] - 2026-02-23
812

913
### Fixed

conf/.env.CI.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
MICROSERVICE_DEPLOY=ita-challenges-frontend
2-
MICROSERVICE_VERSION=3.27.2-RELEASE
2+
MICROSERVICE_VERSION=3.27.3-RELEASE

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ita-challenges-frontend",
3-
"version": "3.27.2-RELEASE",
3+
"version": "3.27.3-RELEASE",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve --proxy-config proxy.conf.dev.json",

src/app/modules/challenge/components/challenge-info/challenge-info.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ <h3>{{ "modules.challenge.info.related" | translate }}</h3>
178178
<!-- Display related challenges when available. By now this
179179
is a temporary mocked solution for demo purposes -->
180180
<section *ngIf="relatedChallenges && relatedChallenges.length > 0" class="info-card">
181-
<div class="d-flex flex-column gap-3">
181+
<div class="related-challenges-grid">
182182
<app-challenge-card *ngFor="let challenge of relatedChallenges"
183183
[title]="challenge.challenge_title | dynamicTranslate"
184184
[creation_date]="challenge.creation_date"

src/app/modules/challenge/components/challenge-info/challenge-info.component.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656
width: 80%;
5757
}
5858

59+
.related-challenges-grid {
60+
display: grid;
61+
grid-template-columns: repeat(3, minmax(0, 1fr));
62+
gap: 1rem;
63+
}
64+
5965
.side-by-side {
6066
width: 100%;
6167
max-width: 100%;
@@ -176,6 +182,10 @@ p, ul li {
176182

177183

178184
@media screen and (max-width: 768px) {
185+
.related-challenges-grid {
186+
grid-template-columns: 1fr;
187+
}
188+
179189
.details-body {
180190
flex-direction: column;
181191

0 commit comments

Comments
 (0)