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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
5 changes: 3 additions & 2 deletions udata_front/theme/gouvfr/__init__.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget the changelog ;)

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
Binary file not shown.
Binary file not shown.
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
9 changes: 9 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,11 @@ each(@colors, {
--success-625-425: #18753c;
}

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

.bg-contrast-grey {
background-color: @background-contrast-grey;
}
Expand Down Expand Up @@ -129,6 +134,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
12 changes: 12 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 @@ -40,6 +44,14 @@ h6,
font-weight: bold;
}

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

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

.sup {
display: inline-block;
font-weight: 300;
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
59 changes: 59 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,62 @@
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;
}
@media @dsfr-query-md {
.dual-color-background {
background: linear-gradient(
to right,
var(--background-default-grey) 0%,
var(--background-default-grey) 50%,
var(--background-alt-grey) 50%,
var(--background-alt-grey) 100%
);
}

.dual-color-background--reversed {
background: linear-gradient(
to right,
var(--background-alt-grey) 0%,
var(--background-alt-grey) 50%,
var(--background-default-grey) 50%,
var(--background-default-grey) 100%
);
}
}

.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;
}
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