diff --git a/src/components/Text/Text.js b/src/components/Text/Text.js
index a43046e5..28b01d9c 100644
--- a/src/components/Text/Text.js
+++ b/src/components/Text/Text.js
@@ -8,27 +8,29 @@ export default function Text({ data }) {
const bgImage = data?.backgroundImage?.url
return (
-
- {title !== "" && title !== undefined && title !== null ? (
-
-
-
{title}
+ }}>
+
+ {title !== "" && title !== undefined && title !== null ? (
+
-
-
- ) : (
-
-
-
- )}
+ ) : (
+
+
+
+ )}
+
)
}
diff --git a/src/components/Text/Text.scss b/src/components/Text/Text.scss
index 02c5b153..6abd1b42 100644
--- a/src/components/Text/Text.scss
+++ b/src/components/Text/Text.scss
@@ -4,21 +4,23 @@
.text {
color: $primary;
.title {
- width: 100%;
.titleText {
- margin: 0;
text-transform: uppercase;
margin-top: 2rem;
}
}
.description {
- background-color: $primary-container;
- padding-bottom: 3rem;
+ background-color: $grey-light-bg;
+
p:first-child {
padding-top: 1rem;
}
+ p:last-child {
+ margin-bottom: 0.5rem;
+ }
p {
- padding: 0rem 1rem;
+ color: $black;
+ padding: 0rem 0.5rem;
}
}
}
@@ -29,10 +31,10 @@
.notTitle {
color: $primary;
border-radius: 20px;
- background-color: $primary-container;
+ background-color: $white;
padding: 1rem;
- margin: 1rem;
- p:nth-last-child(2) {
+ margin: 1.5rem 0rem;
+ p:nth-last-child(-n+2) {
margin-bottom: 0px;
}
}
@@ -46,9 +48,8 @@
padding-top: 4rem;
}
.description {
- p:first-child {
- padding-top: 4rem;
- }
+ margin-left: 2rem;
+ margin-top: 2rem;
}
}
}
@@ -58,8 +59,7 @@
.text {
.description {
p {
- padding: 0rem 2.5rem;
- padding-right: 7rem;
+ padding: 0rem 2rem;
}
}
}
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 04e6c766..fdbcef0b 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -57,7 +57,7 @@ $grey: #545468;
$light-grey: #c4c4c4;
$alt: #67f293;
$blackBit: #242424;
-
+$grey-light-bg: #FAF8F8;
/* Sizes */
$small: 15px;
$medium: 20px;