+
- {image && (
+ {(image && !videoUrl) && (
)}
+ {(videoUrl !== null && videoUrl !== undefined) && (
+
+ {(url !== undefined && code !==undefined) && (
+
+
+ )}
+
+
+ )}
+
{title}
{description}
+
+ {profile && (
+
+

+
+
+
+
+ )}
+ {button && (
+
+ )}
- {profile && (
-
-

-
- )}
)
@@ -40,6 +85,9 @@ Quote.defaultProps = {
description: "",
title: "",
variant: "",
+ profileDescription: "",
+ videoUrl: "",
+ button: {},
profile: {},
image: {},
}
diff --git a/src/components/quote/quote.scss b/src/components/quote/quote.scss
index 7e8b2318..413af895 100644
--- a/src/components/quote/quote.scss
+++ b/src/components/quote/quote.scss
@@ -8,46 +8,35 @@
grid-area: quote-body;
img {
width: 100%;
- height: 70vh;
object-fit: cover;
}
+ iframe {
+ width: 100%;
+ margin-bottom: 0;
+ min-height: 250px;
+ max-height: 400px;
+ }
}
&-person {
- padding-top: 1em;
grid-area: quote-person;
display: flex;
flex-direction: column;
&-title {
- margin-bottom: 1.5em;
font-weight: 700;
+ margin-bottom: 5px;
+ line-height: 35px;
}
&-text {
- font-weight: 700;
max-height: 300px;
+ margin-bottom: 0;
+ text-align: justify;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
- @keyframes move-shadow {
- 0% {
- transform: translate3d(12px, 0px, 0px);
- }
- 25% {
- transform: translate3d(0px, 12px, 0px);
- }
- 50% {
- transform: translate3d(-12px, 0px, 0px);
- }
- 75% {
- transform: translate3d(0px, -12px, 0px);
- }
- 100% {
- transform: translate3d(12px, 0px, 0px);
- }
- }
}
&-profile {
@@ -55,59 +44,99 @@
flex-grow: 0;
align-self: flex-start;
border-radius: 50%;
- position: relative;
- width: 200px;
- height: 200px;
+ width: 100%;
z-index: 4;
- &::before {
- content: "";
- inset: 0px 0px 0px 0px;
- position: absolute;
- background-color: #22c0c329;
+ img {
+ width: 65px;
+ height: 65px;
border-radius: 50%;
- animation: move-shadow 7s infinite linear;
- z-index: -1;
}
- &::after {
- content: "";
- inset: 0px 0px 0px 0px;
- position: absolute;
- background-color: #22c0c325;
- border-radius: 50%;
- animation: move-shadow 7s infinite linear;
- animation-delay: 3s;
- z-index: -1;
+ .markdown {
+ p {
+ margin: 0;
+ }
}
- img {
- width: 200px;
- height: 200px;
- border-radius: 50%;
+ }
+ &-btn {
+ button {
+ @include primaryBtn;
+ border-radius: 8px;
+ width: 131px;
+ height: 30px;
}
}
}
+@media (min-width: $breakpoint-md) {
+ .quote {
+ &-body {
+ iframe {
+ min-height: 300px !important;
+ }
+ }
+ }
+}
+@media (min-width: $breakpoint-lg) {
+ .quote {
+ &-body {
+ iframe {
+ min-height: 350px !important;
+ }
+ }
+ &-btn {
+ button {
+ width: 150px;
+ height: 40px;
+ }
+ }
+ &-profile {
+ img {
+ width: 100px;
+ height: 100px;
+ }
+ }
+ }
+}
+
+@media (min-width: $breakpoint-xl) {
+ .quote {
+ &-body {
+ iframe {
+ min-height: 500px !important;
+ }
+ }
+ &-person {
+ &-title {
+ margin-bottom: 15px;
+ }
+ }
+ }
+}
// variantes
.variant {
&-quote {
- grid-template-areas: "quote-person quote-body" "quote-profile quote-body";
+ grid-template-areas:
+ "quote-person quote-body"
+ "quote-profile quote-body";
grid-template-columns: 1fr 2fr;
@extend .variant;
}
- &-image {
- grid-template-areas: "quote-body quote-person" "quote-body quote-profile";
+ &-media {
+ grid-template-areas:
+ "quote-body quote-person"
+ "quote-body quote-profile";
grid-template-columns: 2fr 1fr;
@extend .variant;
}
grid-template-rows: auto 1fr;
- @media screen and (max-width: $breakpoint-lg) {
+ @media screen and (max-width: calc($breakpoint-md - 3px)) {
grid-template-areas: "quote-body quote-body" "quote-profile quote-person";
grid-template-columns: auto 1fr;
- padding: 1em;
+ padding: 0.5em;
}
-
- @media screen and (max-width: $breakpoint-md) {
+ @media screen and (max-width: calc($breakpoint-md - 3px)) {
display: flex;
flex-direction: column;
gap: 1em;
@@ -115,4 +144,15 @@
margin-bottom: 0;
}
}
+ /* @media screen and (max-width: calc($breakpoint-xl - 3px)) {
+ .variant {
+ &-quote {
+ grid-template-columns: 1fr 2fr !important;
+ }
+
+ &-media {
+ grid-template-columns: 2fr 1fr;
+ }
+ }
+ } */
}
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 498a3fc4..8bdd0d18 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -143,12 +143,12 @@ body {
@media screen and (min-width: $breakpoint-lg) {
body {
- font-size: 18px;
+ font-size: 20px;
p {
em {
- font-size: 18px;
+ font-size: 20px;
}
- font-size: 18px;
+ font-size: 20px;
}
h1 {
font-size: 69px;