Skip to content
Merged
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
38 changes: 19 additions & 19 deletions src/components/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ export default function Text({ data }) {
<div className="container-text mt-3 mt-xl-5" style={{
backgroundImage: `url(${bgImage})`,
}}>
<div className="container">
{title !== "" && title !== undefined && title !== null ? (
<div className="text d-flex flex-column flex-md-row">
<div className="title">
<h2 className="titleText pt-5 px-3 ps-md-0">{title}</h2>
</div>
<MarkdownView
markdown={description}
className="description"
/>
</div>
) : (
<div className="container-markdown">
<MarkdownView
markdown={description}
className="notTitle"
/>

{title !== "" && title !== undefined && title !== null ? (
<div className="container text d-flex flex-column flex-md-row gap-xl-5">
<div className="title">
<h2 className="titleText pt-5 ps-md-0 pt-md-3">{title}</h2>
</div>
)}
</div>
<MarkdownView
markdown={description}
className="description"
/>
</div>
) : (
<div className="container container-markdown">
<MarkdownView
markdown={description}
className="notTitle"
/>
</div>
)}
</div>

)
}
18 changes: 9 additions & 9 deletions src/components/Text/Text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
}
}
.description {
background-color: $grey-light-bg;

background-color: $primary-container;
border-radius: 10px;
p:first-child {
padding-top: 1rem;
}
p:last-child {
margin-bottom: 0.5rem;
}
p {
color: $black;
color: $primary;
padding: 0rem 0.5rem;
}
}
Expand All @@ -31,10 +28,10 @@
.notTitle {
color: $primary;
border-radius: 20px;
background-color: $white;
background-color: $primary-container;
padding: 1rem;
margin: 1.5rem 0rem;
p:nth-last-child(-n+2) {
p:nth-last-child(-n + 2) {
margin-bottom: 0px;
}
}
Expand All @@ -45,11 +42,14 @@
.container-text {
.text {
.title {
flex-basis: 20%;
padding-top: 4rem;
}
.description {
margin-left: 2rem;
margin-top: 2rem;
margin-top: 6rem;
margin-bottom: 3rem;
flex-basis: 80%;
}
}
}
Expand Down