diff --git a/components/evenement/event-modal.js b/components/evenement/event-modal.js index 88624b664..69fddd11c 100644 --- a/components/evenement/event-modal.js +++ b/components/evenement/event-modal.js @@ -7,6 +7,7 @@ import theme from '@/styles/theme' import {formatTag} from '@/lib/tag' import {dateWithDay} from '@/lib/date' +import {removeAccents} from '@/lib/format-strings' import ButtonLink from '@/components/button-link' import SectionText from '@/components/section-text' @@ -35,13 +36,13 @@ function EventModal({event, isPassed, onClose}) { return (
-
+
-
- +
+
{title}
@@ -87,7 +88,7 @@ function EventModal({event, isPassed, onClose}) { align-items: center; } - .modal, .header-infos, .presentation, .target, .tags { + .modal, .header-infos, .presentation-wrapper, .target, .tags { display: flex; } @@ -127,7 +128,7 @@ function EventModal({event, isPassed, onClose}) { opacity: 70%; } - .presentation { + .presentation-wrapper { gap: 2em; justify-content: space-between; margin-top: .5em; @@ -184,6 +185,10 @@ function EventModal({event, isPassed, onClose}) { background: ${theme.colors.blue}; } + .presentation-backg { + background: rgb(26, 168, 255); + } + .adresse-region-backg { background: ${theme.colors.purple}; } @@ -205,7 +210,7 @@ function EventModal({event, isPassed, onClose}) { } @media (max-width: 624px) { - .presentation { + .presentation-wrapper { flex-wrap: wrap; justify-content: flex-end; } diff --git a/components/evenement/event.js b/components/evenement/event.js index 04c10e5b8..5ff7e1246 100644 --- a/components/evenement/event.js +++ b/components/evenement/event.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types' import Image from 'next/legacy/image' import {dateWithDay} from '@/lib/date' +import {removeAccents} from '@/lib/format-strings' import theme from '@/styles/theme' @@ -17,9 +18,9 @@ function Event({event, background, isPassed}) { return (
-
-
- +
+
+
{title}
{subtitle}
@@ -70,7 +71,7 @@ function Event({event, background, isPassed}) { gap: 1em; } - .presentation { + .presentation-wrapper { display: flex; flex-direction: column; align-items: center; @@ -119,7 +120,7 @@ function Event({event, background, isPassed}) { background: ${theme.colors.green}; } - .présentation { + .presentation { background: rgb(26, 168, 255); } diff --git a/lib/format-strings.js b/lib/format-strings.js new file mode 100644 index 000000000..e3b315bad --- /dev/null +++ b/lib/format-strings.js @@ -0,0 +1 @@ +export const removeAccents = str => str.normalize('NFD').replace(/[\u0300-\u036f]/g, '') // eslint-disable-line unicorn/escape-case diff --git "a/public/images/icons/event-pr\303\251sentation.svg" b/public/images/icons/event-presentation.svg similarity index 100% rename from "public/images/icons/event-pr\303\251sentation.svg" rename to public/images/icons/event-presentation.svg