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

New newsletter design #634

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Add dataservice search to header [#622](https://github.com/datagouv/udata-front/pull/622)
- Trigger GitLab infra deployment through simple-scaffolding script [#632](https://github.com/datagouv/udata-front/pull/632)
- Fix CI trigger GitLab pipeline job [#635](https://github.com/datagouv/udata-front/pull/635)
- New footer newsletter design [#634](https://github.com/datagouv/udata-front/pull/634)

## 6.0.7 (2024-12-20)

Expand Down
2 changes: 1 addition & 1 deletion udata_front/theme/gouvfr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
nav.Bar('gouvfr_resources', resources_links)

footer_links = [
nav.Item(_('Licences'), 'gouvfr.show_page', args={'slug': 'legal/licences'}),
nav.Item(_('Licenses'), 'gouvfr.show_page', args={'slug': 'legal/licences'}),
nav.Item(_('Terms of use'), 'gouvfr.show_page', args={'slug': 'legal/cgu'}),
nav.Item(_('Tracking and privacy'), 'gouvfr.suivi'),
nav.Item(_('Legal notice'), 'gouvfr.show_page', args={'slug': 'legal/legal-notice'}),
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
@import (less) "@gouvfr/dsfr/dist/component/follow/follow.css";

.fr-follow {
.fr-h4 {
--text-title-grey: @text-label-blue-cumulus;
}
p.fr-text--alt {
color: @text-label-blue-cumulus;
}
--background-alt-blue-france: var(--background-default-grey);
--background-alt-blue-france-hover: var(--background-default-grey-hover);
--background-alt-blue-france-active: var(--background-default-grey-active);
--border-default-blue-france: @grey-125;
}

.follow-button {
Expand Down
4 changes: 4 additions & 0 deletions udata_front/theme/gouvfr/assets/less/content/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ h6,
font-weight: bold;
}

.font-800 {
font-weight: 800 !important;
}

.sup {
display: inline-block;
font-weight: 300;
Expand Down
9 changes: 9 additions & 0 deletions udata_front/theme/gouvfr/assets/less/font.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@

font-display: swap;
}

@font-face {
font-weight: 800;
font-family: Marianne;
src: url("../fonts/Marianne-ExtraBold.woff2") format("woff2"),
url("../fonts/Marianne-ExtraBold.woff") format("woff");

font-display: swap;
}
2 changes: 1 addition & 1 deletion udata_front/theme/gouvfr/assets/less/layout/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}

.justify-between {
justify-content: space-between;
justify-content: space-between !important;
}

.justify-around {
Expand Down
2 changes: 1 addition & 1 deletion udata_front/theme/gouvfr/assets/less/specific/footer.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import (less) "@gouvfr/dsfr/dist/component/footer/footer.css";

.fr-footer {
--border-plain-blue-france: @blue-400;
--border-plain-blue-france: var(--border-action-high-grey);
}

.fr-footer__top-link {
Expand Down
13 changes: 7 additions & 6 deletions udata_front/theme/gouvfr/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,13 @@ <h3 class="fr-footer__top-cat">{{ _('Development') }}</h3>
{% cache cache_duration, 'footer-bottom', g.lang_code|default(config.DEFAULT_LANGUAGE)|string %}
<div class="fr-footer__bottom">
<ul class="fr-footer__bottom-list">
{% for item in nav.gouvfr_footer %}
<li class="fr-footer__bottom-item">
<a href="{{ '' if item.items else item.url }}" class="fr-footer__bottom-link">
{{ item.label }}
</a>
</li>
{%- for item in nav.gouvfr_footer -%}
<li
class="fr-footer__bottom-item"
><a
href="{{ '' if item.items else item.url }}"
class="fr-footer__bottom-link"
>{{ item.label }}</a></li>
{% endfor %}
</ul>
<div class="fr-footer__bottom-copy">
Expand Down
14 changes: 7 additions & 7 deletions udata_front/theme/gouvfr/templates/newsletter.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% cache cache_duration, 'newsletter', g.lang_code|default(config.DEFAULT_LANGUAGE)|string %}
<div class="fr-follow">
<div class="fr-follow border-top">
<div class="fr-container">
<div class="fr-grid-row">
<div class="fr-col-12 fr-col-md-8 flex">
Expand All @@ -8,22 +8,22 @@
</div>
<div class="fr-follow__newsletter fr-col">
<div>
<p class="fr-h4">{{ _("Subscribe to our newsletter") }}</p>
<p class="fr-text--lg fr-text--alt f-italic">{{
<p class="fr-h4 font-800 fs-xl fr-mb-1v">{{ _("Subscribe to our newsletter") }}</p>
<p class="fr-text--base">{{
_("To stay up to date about {site} and open data news, subscribe to our newsletter and follow our events.")
.format(site=current_site.title)
}}</p>
</div>
<div>
<a
class="fr-btn fr-mr-2w fr-my-1w"
class="fr-btn fr-mr-2w"
title="{{ _('Subscribe to our newsletter') }}"
href="{{ config.NEWSLETTER_SUBSCRIPTION_URL }}"
>
{{ _("Subscribe") }}
</a>
<a
class="fr-btn fr-btn--secondary fr-btn--secondary-grey-500"
class="fr-btn fr-btn--secondary"
title="{{ _('Subscribe to our newsletter') }}"
href="{{ url_for('gouvfr.show_page', slug='webinaires') }}"
>
Expand All @@ -33,8 +33,8 @@
</div>
</div>
<div class="fr-col-12 fr-col-md-4">
<div class="fr-follow__social">
<p class="fr-h5">{{ _("Follow us") }}
<div class="fr-follow__social justify-between">
<p class="fr-h5 font-800 fs-xl">{{ _("Follow us") }}
<br> {{ _("on social media") }}
</p>
<ul class="fr-links-group">
Expand Down
Loading