From 5827eb83be2029d99e3ac01e065d44c820f08e90 Mon Sep 17 00:00:00 2001 From: Wander06 Date: Thu, 1 Feb 2024 15:03:03 -0300 Subject: [PATCH] Finalizando a descricao das paginas com descricao --- src/pages/events-description/index.js | 10 +++++++- src/pages/events-description/styled.js | 7 +++++- src/pages/therapies-description/index.js | 15 +++++++++--- src/pages/therapies-description/styled.js | 28 ++++++++++++++++------- src/pages/workshop-description/index.js | 14 ++++++++++-- src/pages/workshop-description/styled.js | 28 ++++++++++++++++------- 6 files changed, 79 insertions(+), 23 deletions(-) diff --git a/src/pages/events-description/index.js b/src/pages/events-description/index.js index b58b709..82f164b 100644 --- a/src/pages/events-description/index.js +++ b/src/pages/events-description/index.js @@ -19,6 +19,8 @@ import { faLocationDot } from '@fortawesome/free-solid-svg-icons' import NavBar from '../../components/navbar' +import ReactMarkdown from 'react-markdown' +import rehypeRaw from 'rehype-raw' export const EventsPageDescription = () => { const [event, setEvent] = useState([]) @@ -167,7 +169,13 @@ export const EventsPageDescription = () => {

Descrição

-

{event?.attributes?.descricao}

+ {( +
+ + {event?.attributes?.descricao} + +
+ )}
diff --git a/src/pages/events-description/styled.js b/src/pages/events-description/styled.js index 8bde6c1..1a6b535 100644 --- a/src/pages/events-description/styled.js +++ b/src/pages/events-description/styled.js @@ -65,6 +65,7 @@ const EventsStyleDescription = styled.div` } .text-title-description { + padding-bottom: 0.5em; font-size: 1.875em; font-weight: bold; } @@ -79,9 +80,13 @@ const EventsStyleDescription = styled.div` .description { padding-top: 1em; + li { + padding-top: 0em; + } p { - padding-top: 3em; + padding-top: 1em; + } } diff --git a/src/pages/therapies-description/index.js b/src/pages/therapies-description/index.js index 646a05f..4849522 100644 --- a/src/pages/therapies-description/index.js +++ b/src/pages/therapies-description/index.js @@ -18,6 +18,8 @@ import 'swiper/css/navigation' import 'swiper/css/thumbs' import NavBar from '../../components/navbar' import { Link, useParams } from 'react-router-dom' +import ReactMarkdown from 'react-markdown' +import rehypeRaw from 'rehype-raw' export const DetailsTherapies = () => { const [therapies, setTherapies] = useState([]) @@ -158,9 +160,16 @@ export const DetailsTherapies = () => { - -

Descrição

-

{therapies.attributes?.descricao}

+
+

Descrição

+ {( +
+ + {therapies?.attributes?.descricao} + +
+ )} +
{therapies.attributes?.url_agendamento !== null && ( { const [thumbsSwiper, setThumbsSwiper] = useState(null) @@ -164,8 +166,16 @@ export const WorkshopDetails = () => { -

Descrição

-

{workshops.attributes?.descricao}

+
+

Descrição

+ {( +
+ + {workshops.attributes?.descricao} + +
+ )} +
{workshops.attributes?.url_inscricao !== null && (