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
5 changes: 3 additions & 2 deletions src/components/Banners/BannerTop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -40,7 +41,7 @@
@media (min-width: $breakpoint-md) {
.banner {
&__bgImage {
min-height: 600px;
min-height: 55vh;
}
&__titleContainer {
padding: 30px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/BlogPage/BlogArticle/BlogArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const BlogArticle = ({ title, summary, image, slug, text }) => {
<img src={image?.url} alt={title} className="article__image" />
)}
<div className="article__description">
<h6>{`${title} ...`}</h6>
<h6>{`${title}`}</h6>
<div>
<MarkdownView markdown={`${summary} ...`} />
<MarkdownView markdown={`${summary}`} />
{/* <ReactMarkdown source={`${summary} ...`} /> */}
</div>
<div className="article__link">
Expand Down
38 changes: 17 additions & 21 deletions src/components/BlogPage/BlogArticle/BlogArticle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {
Expand All @@ -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;
}
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/FeaturedBlogs/FeaturedBlogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import BlogArticle from "../BlogPage/BlogArticle/BlogArticle"

const FeaturedBlogs = ({ data }) => {
return (
<div className="container featured" id={data.strapi_component + "-" + data.id}>
<div className="container featured pb-3" id={data.strapi_component + "-" + data.id}>
<h2>{data.title}</h2>
<h6 className="px-5">{data.subtitle}</h6>
<h6 className="px-md-3">{data.subtitle}</h6>

<div className="featured-blogs">
{data.articles.slice(0, 3).map((item, idx) => (
Expand Down
16 changes: 10 additions & 6 deletions src/components/FeaturedBlogs/featuredBlogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand All @@ -46,6 +49,7 @@
}
&__link {
button {
font-size: 18px;
background: none;
color: $secondary;
text-decoration: underline;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Professionals/Professionals.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Professionals = ({ data }) => {
})

return (
<div className="container py-5 prosSection">
<div className="container pt-5 pb-1 prosSection">
{title && <h2>{title}</h2>}
{summary && <h6 className="prosSection__summary px-lg-3">{summary}</h6>}
{(professionalsCards !== undefined && professionalsCards.length > 0) &&
Expand Down
3 changes: 2 additions & 1 deletion src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down