diff --git a/assets/locales/en.yaml b/assets/locales/en.yaml index 5f475fb..2bf045e 100644 --- a/assets/locales/en.yaml +++ b/assets/locales/en.yaml @@ -59,6 +59,7 @@ projects: solution: Solutions technologies: Technologies used images: Gallery + highlights: Highlights links: name: Links diff --git a/assets/locales/fr.yaml b/assets/locales/fr.yaml index 121d360..1ed6a57 100644 --- a/assets/locales/fr.yaml +++ b/assets/locales/fr.yaml @@ -59,6 +59,7 @@ projects: solution: Solutions technologies: Technologies utilisées images: Gallerie + highlights: Points forts links: name: Liens diff --git a/assets/styles/components/projects.scss b/assets/styles/components/projects.scss index a915003..03c18ac 100644 --- a/assets/styles/components/projects.scss +++ b/assets/styles/components/projects.scss @@ -91,6 +91,10 @@ } } } + .project-highlights { + list-style: square; + padding-left: 2em; + } } diff --git a/templates/project.html.twig b/templates/project.html.twig index 8178aa2..c206728 100644 --- a/templates/project.html.twig +++ b/templates/project.html.twig @@ -10,6 +10,9 @@

{{ getLocalizedStr('projects.project') }} {{ getDynLocalizedStr(project.name) }}

+
+ {{ getDynLocalizedStr(project.description) | formatMd | raw }} +
@@ -94,11 +97,6 @@
{% endif %} - {% if project.description is defined and (projects.background is not defined or projects.solution is not defined) %} -

{{ getLocalizedStr('description') }}

- {{ getDynLocalizedStr(project.description) | formatMd | raw }} - {% endif %} - {% if project.background is defined %}

{{ getLocalizedStr('projects.background') }}

{{ getDynLocalizedStr(project.background) | formatMd | raw }} @@ -108,6 +106,15 @@

{{ getLocalizedStr('projects.solution') }}

{{ getDynLocalizedStr(project.solution) | formatMd | raw }} {% endif %} + + {% if project.highlights is defined %} +

{{ getLocalizedStr('projects.highlights') }}

+ + {% endif %}

{{ getLocalizedStr('projects.technologies') }}