Skip to content

Commit fade049

Browse files
authored
Merge pull request #538 from itk-dev/536-support-384
Project page minor styling adjustmens
2 parents f453d82 + 7c9e1ea commit fade049

15 files changed

Lines changed: 103 additions & 14 deletions

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
* [PR-537](https://github.com/itk-dev/deltag.aarhus.dk/pull/537)
1010
5209: Cleaned up public meeting summary view
11+
* [PR-538](https://github.com/itk-dev/deltag.aarhus.dk/pull/538)
12+
Update project page styling - Closes issues #536
1113

1214
## [4.11.0] - 2025-07-01
1315

config/sync/core.entity_form_display.node.project_page.default.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dependencies:
55
config:
66
- field.field.node.project_page.field_content_sections
77
- field.field.node.project_page.field_project_category
8+
- field.field.node.project_page.field_teaser
89
- node.type.project_page
910
module:
1011
- maxlength
@@ -52,6 +53,14 @@ content:
5253
size: 100
5354
placeholder: ''
5455
third_party_settings: { }
56+
field_teaser:
57+
type: string_textarea
58+
weight: 1
59+
region: content
60+
settings:
61+
rows: 5
62+
placeholder: ''
63+
third_party_settings: { }
5564
langcode:
5665
type: language_select
5766
weight: 3

config/sync/core.entity_view_display.node.project_page.default.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dependencies:
55
config:
66
- field.field.node.project_page.field_content_sections
77
- field.field.node.project_page.field_project_category
8+
- field.field.node.project_page.field_teaser
89
- node.type.project_page
910
module:
1011
- entity_reference_revisions
@@ -21,15 +22,22 @@ content:
2122
view_mode: default
2223
link: ''
2324
third_party_settings: { }
24-
weight: 0
25+
weight: 2
2526
region: content
2627
field_project_category:
2728
type: entity_reference_label
2829
label: visually_hidden
2930
settings:
3031
link: true
3132
third_party_settings: { }
32-
weight: 7
33+
weight: 1
34+
region: content
35+
field_teaser:
36+
type: basic_string
37+
label: hidden
38+
settings: { }
39+
third_party_settings: { }
40+
weight: 0
3341
region: content
3442
hidden:
3543
langcode: true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
uuid: df31d120-b83b-4267-881f-562181eb12a3
2+
langcode: da
3+
status: true
4+
dependencies:
5+
config:
6+
- core.entity_view_mode.node.list_display
7+
- field.field.node.project_page.field_content_sections
8+
- field.field.node.project_page.field_project_category
9+
- field.field.node.project_page.field_teaser
10+
- node.type.project_page
11+
module:
12+
- user
13+
id: node.project_page.list_display
14+
targetEntityType: node
15+
bundle: project_page
16+
mode: list_display
17+
content:
18+
field_teaser:
19+
type: basic_string
20+
label: hidden
21+
settings: { }
22+
third_party_settings: { }
23+
weight: 1
24+
region: content
25+
links:
26+
settings: { }
27+
third_party_settings: { }
28+
weight: 100
29+
region: content
30+
sharing_buttons:
31+
settings: { }
32+
third_party_settings: { }
33+
weight: 100
34+
region: content
35+
hidden:
36+
field_content_sections: true
37+
field_project_category: true
38+
langcode: true
39+
published_at: true
40+
search_api_excerpt: true

config/sync/core.entity_view_display.node.project_page.teaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- core.entity_view_mode.node.teaser
77
- field.field.node.project_page.field_content_sections
88
- field.field.node.project_page.field_project_category
9+
- field.field.node.project_page.field_teaser
910
- node.type.project_page
1011
module:
1112
- user
@@ -22,6 +23,13 @@ content:
2223
third_party_settings: { }
2324
weight: 0
2425
region: content
26+
field_teaser:
27+
type: basic_string
28+
label: hidden
29+
settings: { }
30+
third_party_settings: { }
31+
weight: 0
32+
region: content
2533
hidden:
2634
field_content_sections: true
2735
langcode: true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
uuid: bbb50cdb-201a-4ee2-8464-654937de6277
2+
langcode: da
3+
status: true
4+
dependencies:
5+
config:
6+
- field.storage.node.field_teaser
7+
- node.type.project_page
8+
id: node.project_page.field_teaser
9+
field_name: field_teaser
10+
entity_type: node
11+
bundle: project_page
12+
label: Teaser/indledning
13+
description: 'Kort tekst der vises i teasers og i toppen af indholdsvisningen'
14+
required: false
15+
translatable: false
16+
default_value: { }
17+
default_value_callback: ''
18+
settings: { }
19+
field_type: string_long

config/sync/node.type.project_main_page.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ third_party_settings:
1111
parent: 'main:'
1212
name: Project
1313
type: project_main_page
14-
description: 'Use this to create a project page'
14+
description: 'Use this to create a landing page for your project'
1515
help: null
1616
new_revision: true
1717
preview_mode: 1

web/themes/custom/hoeringsportal/templates/node/node--project-page.html.twig

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{# Main container #}
22
<div class="container content__container">
33
<div class="row">
4-
<div class="col-md-8 py-3 py-md-5">
5-
{{ content.field_project_category }}
4+
<div class="col-md-8 py-3 pt-md-5">
5+
<span class="text-primary">{{ content.field_project_category }}</span>
66
<h1>{{ node.title.value }}</h1>
7-
{{ content|without('field_project_category', 'field_content_sections', 'published_at') }}
7+
{% if content.field_teaser %}
8+
<p class="fs-3">{{ content.field_teaser }}</p>
9+
{% endif %}
10+
{{ content|without('field_project_category', 'field_teaser', 'field_content_sections', 'published_at') }}
811
</div>
912
<div class="col-md-4 pt-md-3">
1013
{{ content.field_aside_block }}
1114
</div>
1215
</div>
1316
</div>
14-
<div class="sections d-flex flex-column row-gap-5">
17+
<div class="d-flex flex-column row-gap-3">
1518
{{ content.field_content_sections }}
1619
</div>
1720
<div class="container">

web/themes/custom/hoeringsportal/templates/paragraph/paragraph--content-block.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @ingroup themeable
3939
*/
4040
#}
41-
<div class="container my-3 my-md-5">
41+
<div class="container my-2 my-lg-4">
4242
<div class="row">
4343
<div class="col-md-12">
4444
{% if content.field_paragraph_title['#items'] is not empty %}

web/themes/custom/hoeringsportal/templates/paragraph/paragraph--content-list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @ingroup themeable
3939
*/
4040
#}
41-
<div class="container my-3 my-md-5">
41+
<div class="container my-2 my-lg-4">
4242
<div class="row align-items-center my-3 mt-md-5 mb-md-3">
4343
<div class="col">
4444
<h2>{{ paragraph.field_list_title.value }}</h2>

0 commit comments

Comments
 (0)