diff --git a/src/components/Banners/BannerTop.scss b/src/components/Banners/BannerTop.scss index 8607018d..1908d07e 100644 --- a/src/components/Banners/BannerTop.scss +++ b/src/components/Banners/BannerTop.scss @@ -2,9 +2,10 @@ .banner { &__bgImage { - min-height: 60vh; + min-height: 40vh; display: flex; align-items: flex-end; + width: 100%; } &__titleContainer { background-color: rgba(36, 39, 42, 0.4); @@ -40,7 +41,7 @@ @media (min-width: $breakpoint-md) { .banner { &__bgImage { - min-height: 600px; + min-height: 55vh; } &__titleContainer { padding: 30px; diff --git a/src/components/BlogPage/BlogArticle/BlogArticle.js b/src/components/BlogPage/BlogArticle/BlogArticle.js index 558a823f..d0e27644 100644 --- a/src/components/BlogPage/BlogArticle/BlogArticle.js +++ b/src/components/BlogPage/BlogArticle/BlogArticle.js @@ -18,9 +18,9 @@ const BlogArticle = ({ title, summary, image, slug, text }) => { {title} )}
-
{`${title} ...`}
+
{`${title}`}
- + {/* */}
diff --git a/src/components/BlogPage/BlogArticle/BlogArticle.scss b/src/components/BlogPage/BlogArticle/BlogArticle.scss index b51c107a..22da4ecc 100644 --- a/src/components/BlogPage/BlogArticle/BlogArticle.scss +++ b/src/components/BlogPage/BlogArticle/BlogArticle.scss @@ -6,23 +6,24 @@ justify-content: center; align-items: center; width: 100%; - padding: 1.5rem 0; + padding: 0.5em; color: $primary; } &__image { width: 100%; - height: 150px; + height: 170px; transition: opacity 3s ease-in; border-radius: 8px; } &__description { - display: flex; - flex-direction: column; - justify-content: space-between; + // display: flex; + // flex-direction: column; + // justify-content: flex-start; + position: relative; width: 100%; - height: 150px; + height: 170px; padding: 0 0 0 15px; h1, h2, @@ -31,13 +32,13 @@ h5, h6 { padding-left: 0; - font-size: 15px !important; + // font-size: 15px !important; margin-bottom: 15px; - line-height: 1rem; + // line-height: 1rem; display: -webkit-box; -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - overflow: hidden; + -webkit-line-clamp: 3; + overflow: hidden; } p { @@ -51,12 +52,12 @@ } &__link { + position: absolute; + bottom: 0; a { margin-right: 0; - font-size: 12px; font-weight: $max_bold; cursor: pointer; - button { @include primaryBtn; } @@ -79,25 +80,20 @@ .article { &__container { flex-direction: column; - padding: 2rem; + padding: 1rem; + } &__image { width: 100%; - height: 300px; + height: 250px; margin-bottom: 1rem; } &__description { width: 100%; - height: 200px; + height: 190px; padding: 0; - - h6 { - line-height: 1.6rem; - -webkit-line-clamp: 2; - } - p { font-size: 18px; line-height: 30px; diff --git a/src/components/FeaturedBlogs/FeaturedBlogs.js b/src/components/FeaturedBlogs/FeaturedBlogs.js index 4232a113..06223fe1 100644 --- a/src/components/FeaturedBlogs/FeaturedBlogs.js +++ b/src/components/FeaturedBlogs/FeaturedBlogs.js @@ -5,9 +5,9 @@ import BlogArticle from "../BlogPage/BlogArticle/BlogArticle" const FeaturedBlogs = ({ data }) => { return ( -
+

{data.title}

-
{data.subtitle}
+
{data.subtitle}
{data.articles.slice(0, 3).map((item, idx) => ( diff --git a/src/components/FeaturedBlogs/featuredBlogs.scss b/src/components/FeaturedBlogs/featuredBlogs.scss index 3816bcd3..3a1f3c45 100644 --- a/src/components/FeaturedBlogs/featuredBlogs.scss +++ b/src/components/FeaturedBlogs/featuredBlogs.scss @@ -6,14 +6,18 @@ h2 { margin-top: 2em; flex-grow: 1; - text-align: center; font-weight: 700; text-transform: uppercase; + @media screen and (min-width: $breakpoint-md) { + text-align: center; + } } h6 { - text-align: center; - line-height: 30px; + line-height: 28px; font-weight: 400; + @media screen and (min-width: $breakpoint-md) { + text-align: center; + } } &-blogs { @@ -32,12 +36,11 @@ .article { &__container { - color: $black; + color: $primary; margin: 0.5em; - background-color: #efefef; + background-color: $blog-card-container; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); border-radius: 8px; - padding: 1em; h6 { text-align: left; font-weight: 700; @@ -46,6 +49,7 @@ } &__link { button { + font-size: 18px; background: none; color: $secondary; text-decoration: underline; diff --git a/src/components/Professionals/Professionals.js b/src/components/Professionals/Professionals.js index 9fa433b6..a6846018 100644 --- a/src/components/Professionals/Professionals.js +++ b/src/components/Professionals/Professionals.js @@ -40,7 +40,7 @@ const Professionals = ({ data }) => { }) return ( -
+
{title &&

{title}

} {summary &&
{summary}
} {(professionalsCards !== undefined && professionalsCards.length > 0) && diff --git a/src/styles/global.scss b/src/styles/global.scss index b7d5b05a..1fc7f4d1 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -76,13 +76,14 @@ $extra-large: 45px; color: $primary-invert; border-radius: 5px; transition: filter 200ms ease-in; - font-size: 18px; + font-size: 14px; &:hover { filter: brightness(135%); box-shadow: 0px 3px 10px rgba(138, 254, 113, 0.5); } @media screen and (min-width: $breakpoint-lg) { padding: 12px 30px; + font-size: 18px; } }