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 homepage #626

Merged
merged 32 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
59364da
feat: wip
nicolaskempf57 Dec 11, 2024
3a74937
feat: page
nicolaskempf57 Dec 12, 2024
85967c1
fix: italic
nicolaskempf57 Dec 12, 2024
dd5e711
feat: add links
nicolaskempf57 Dec 13, 2024
ae3d9db
fix: responsive
nicolaskempf57 Dec 17, 2024
69f0e55
feat: i18n
nicolaskempf57 Dec 17, 2024
a008fe5
fix: qa
nicolaskempf57 Dec 18, 2024
782edfc
fix: use `get` to avoid KeyError
nicolaskempf57 Dec 18, 2024
7d45d98
fix i18n
nicolaskempf57 Dec 18, 2024
043fd8e
Merge branch 'master' into feat/ss
maudetes Dec 19, 2024
cd3c9f4
feat: improvements
nicolaskempf57 Dec 27, 2024
2d8c717
Merge branch 'master' into feat/ss
nicolaskempf57 Jan 10, 2025
9048eff
fix: long article name
nicolaskempf57 Jan 10, 2025
22a3fc1
fix: icon color
nicolaskempf57 Jan 10, 2025
bc5aec5
feat: move squares out of container
nicolaskempf57 Jan 10, 2025
e55d4f8
Update udata_front/theme/gouvfr/templates/home.html
nicolaskempf57 Jan 13, 2025
9c05e10
Update udata_front/theme/gouvfr/templates/home.html
nicolaskempf57 Jan 13, 2025
b72eeff
docs: changelog
nicolaskempf57 Jan 13, 2025
ef24ca7
fix: responsive and large format
nicolaskempf57 Jan 13, 2025
3165965
Merge branch 'master' into feat/ss
nicolaskempf57 Jan 13, 2025
38921bf
fix: margin between arrow and link
nicolaskempf57 Jan 13, 2025
39bee56
fix: margin inside black area
nicolaskempf57 Jan 13, 2025
a040491
fix: hide image for responsive
nicolaskempf57 Jan 13, 2025
3637902
fix: more fixes
nicolaskempf57 Jan 14, 2025
cde91ee
Merge branch 'master' into feat/ss
nicolaskempf57 Jan 14, 2025
c968c2f
fix: responsive images
nicolaskempf57 Jan 14, 2025
d60cad7
feat: add new images
nicolaskempf57 Jan 14, 2025
4e5efeb
fix: missing active state
nicolaskempf57 Jan 15, 2025
f2a62d2
fix: remove card aspect ratio
nicolaskempf57 Jan 15, 2025
54e6886
feat: add density variant
nicolaskempf57 Jan 15, 2025
1988794
feat: translate products name
nicolaskempf57 Jan 15, 2025
e956288
Merge branch 'master' into feat/ss
nicolaskempf57 Jan 15, 2025
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 @@ -8,6 +8,7 @@
- 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)
- Fix dropdown keyboard navigation [#637](https://github.com/datagouv/udata-front/pull/637)
- New homepage [#626](https://github.com/datagouv/udata-front/pull/626)

## 6.0.7 (2024-12-20)

Expand Down
5 changes: 3 additions & 2 deletions udata_front/theme/gouvfr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@
nav.Item(_('API'), 'dataservices.list'),
nav.Item(_('Reuses'), 'reuses.list'),
nav.Item(_('Organizations'), 'organizations.list'),
nav.Item(_('Getting started on data.gouv.fr'), None, items=[
nav.Item(_('Getting started on {site}'
.format(site=current_app.config.get('SITE_TITLE'))), None, items=[
nav.Item(
_('What is data.gouv.fr?'),
_('What is {site}?'.format(site=current_app.config.get('SITE_TITLE'))),
'gouvfr.show_page',
args={'slug': 'about/a-propos_data-gouv'}
),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions udata_front/theme/gouvfr/assets/less/components/borders.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ You can change this behaviour by using the `filet-currentcolor` class that will
border-radius: @spacing-xxs;
}

.rounded-xs {
border-radius: @spacing-xs;
}

.rounded-2 {
border-radius: 2px;
}
Expand Down
7 changes: 7 additions & 0 deletions udata_front/theme/gouvfr/assets/less/components/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ each(@colors, {
}
});

.fr-btn--white {
color: @text-default-grey;
--background-action-high-blue-france: @white;
--hover: #f6f6f633;
--active: #ededed33;
}

.fr-btn--secondary-white {
--hover: #f6f6f633;
--active: #ededed33;
Expand Down
10 changes: 10 additions & 0 deletions udata_front/theme/gouvfr/assets/less/content/colors.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ each(@colors, {
--success-625-425: #18753c;
}

.bg-grey-125-dark {
background-color: #2a2a2a;
--hover: var(--grey-200-850);
--active: var(--grey-425-625);
}

.bg-contrast-grey {
background-color: @background-contrast-grey;
}
Expand Down Expand Up @@ -129,6 +135,10 @@ each(@colors, {
background-color: @background-alt-green-tilleul-verveine;
}

.border-mention-grey {
border-color: @text-mention-grey !important;
}

.text-disabled-grey {
color: @text-disabled-grey !important;
}
Expand Down
13 changes: 13 additions & 0 deletions udata_front/theme/gouvfr/assets/less/content/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ h6,
line-height: 1 !important;
}

.line-height-xxxl {
line-height: @line-height-xxxl !important;
}

.f-italic {
font-style: italic;
}
Expand All @@ -44,6 +48,10 @@ h6,
font-weight: 800 !important;
}

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

.sup {
display: inline-block;
font-weight: 300;
Expand Down Expand Up @@ -121,6 +129,11 @@ each(@font-sizes, {
.fs-@{value} {
font-size: @@var !important;
}
@media @dsfr-query-md {
.fs-md-@{value} {
font-size: @@var !important;
}
}
});

.text-decoration-underline {
Expand Down
10 changes: 10 additions & 0 deletions udata_front/theme/gouvfr/assets/less/font.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
font-display: swap;
}

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

font-display: swap;
}

@font-face {
font-weight: 600;
font-family: Spectral;
Expand Down
14 changes: 14 additions & 0 deletions udata_front/theme/gouvfr/assets/less/layout/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
top: -1rem;
}

.mb-n8w {
margin-bottom: -4rem;
}

.flex {
display: flex;
}
Expand Down Expand Up @@ -170,6 +174,10 @@
max-width: 100%;
}

.mw-70w {
max-width: 35rem;
}

.min-width-0 {
min-width: 0;
}
Expand Down Expand Up @@ -208,6 +216,12 @@
}
}

@media @dsfr-query-lg {
.order-lg-2 {
.order-2;
}
}

.fr-mt-n9v {
margin-top: -2.5rem !important;
}
Expand Down
42 changes: 42 additions & 0 deletions udata_front/theme/gouvfr/assets/less/specific/hero.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,45 @@
padding: @spacing-md 0 !important;
}
}
.hero-background {
background-image: radial-gradient(rgba(255, 255, 255, 0.8), rgba(217, 217, 217, 0)), url('../../img/homepage/hero-background.png');
background-position: center;
background-size: cover;
}

.w-4rem {
width: 4rem;
}

.h-4rem {
height: 4rem;
}

.with-svg-responsive svg {
width: 100%;
height: auto;
}

.greyscaled {
filter: grayscale(1);
}

.opacity-50 {
opacity: 50%;
}

.opacity-80 {
opacity: 80%;
}

.object-fit-contain {
object-fit: contain;
}

.bg-dark {
background-color: #242424;
}

.exploration-cards .fr-card__img img {
aspect-ratio: auto;
}
4 changes: 3 additions & 1 deletion udata_front/theme/gouvfr/assets/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@
@font-size-lg: 1.25rem;
@font-size-xl: 1.5rem;
@font-size-xxl: 2rem;
@font-size-xxxl: 2.25rem;
@font-size-hg: 2.5rem; // hg for humongous

@line-height-xxs: 0.9rem;
@line-height-xs: 1.25rem;
@line-height-sm: 1.5rem;
@line-height-xxxl: 3rem;

@font-sizes: xs, sm, base, lg, xl, xxl, hg;
@font-sizes: xs, sm, base, lg, xl, xxl, xxxl, hg;

@font-weight-light: 300;
@font-weight-normal: 400;
Expand Down
Loading