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: 30 additions & 8 deletions src/components/Banner/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
display: inline-block;
}
.imagen {
padding: 2rem;
padding: 1rem;
display: flex;
justify-content: center;
img {
Expand Down Expand Up @@ -49,16 +49,19 @@
.imagen {
display: flex;
justify-content: flex-end;
height: 100%;
width: 100%;
img {
max-width: 450px;
max-width: 100%;

}
}
.title {
padding-top: 2rem;
padding-bottom: 2rem;
h2 {
text-transform: uppercase;
text-align: center;
text-align: left;
word-wrap: initial;
}
.banner-markdown {
Expand Down Expand Up @@ -212,15 +215,26 @@
font-weight: 600;
}
}

@media screen and (min-width: $breakpoint-sm) {
&.hero{
.imagen{
justify-content: flex-end;
}
}
}
@media screen and (min-width: $breakpoint-md) {
align-items: flex-start;
&.hero{
.imagen{
justify-content: flex-end;
}
}
&.top {
height: 400px;
height: 300px;
position: relative;
align-items: center;
.imagen {
max-height: 500px;
max-height: 300px;
overflow: hidden;
padding: 0;
justify-content: flex-end;
Expand Down Expand Up @@ -346,6 +360,8 @@
}
}
}


@media screen and (min-width: $breakpoint-lg) {
flex-direction: row;

Expand All @@ -356,7 +372,6 @@
max-height: 500px;
overflow: hidden;
padding: 0;
justify-content: flex-end;
}

.title {
Expand All @@ -375,9 +390,16 @@
}
}
&.top {
height: 400px;
.imagen {
max-height: 400px;
img {
max-width: 400px;
max-width: 700px;
}
}
.title{
h2 {
padding-right: 0rem;
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/components/BannerList/BannerList.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ export default function BannerList({ data }) {
return (
<div className="card_item d-flex mb-2">
{item.icon && (
<div className="card_item ">
<div className="card_item">
<img class="d-block" src={item.icon?.url} placeholder="blurred" />
</div>
)}
<div
style={!item.icon ? { marginLeft: "2em" } : {}}
className="card_item col-9 ps-2 pe-2"
className="card_item col-9 pe-2"
>
{item.landing_page ? (
<Link to={"/" + item.landing_page?.slug}>
Expand All @@ -33,7 +32,7 @@ export default function BannerList({ data }) {
})

return (
<div className="container py-5" id={data.strapi_component + "-" + data.id}>
<div className="container py-4" id={data.strapi_component + "-" + data.id}>
<div className="bannerList d-md-flex flex-row">
<h1 className="bannerList__title col-md-6 col-xl-6 align-self-center mb-4">
{title}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FeaturedBlogs/featuredBlogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.featured {
color: $primary;
margin-bottom: 3rem;
padding-bottom: 3rem;
h2 {
margin-top: 2em;
flex-grow: 1;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ const Form = ({ location, data }) => {
return (
<div id={anchor} className="form">
<div className="container d-flex px-lg-2 flex-wrap">
<div className="col-12 col-md-6 px-4 ps-md-0 pe-md-5">
<div className="col-12 col-md-6 pe-md-5">
{title && (
<h2 className="title text-center text-md-start">{title}</h2>
<h2 className="title text-start">{title}</h2>
)}
{content && (
<MarkdownView
markdown={content}
className="form__content text-center text-md-start"
className="form__content text-start"
/>
)}
<div className="form__img mt-md-5 text-center text-md-start">
Expand Down
13 changes: 6 additions & 7 deletions src/components/quote/Quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const Quote = ({
code = code.substring(0, code.indexOf("?"))
}


return (
<div className="container my-3 mb-lg-5" id={strapi_component + "-" + id}>
<section className={`quote variant-${variant}`}>
Expand All @@ -34,16 +33,16 @@ const Quote = ({
<iframe
loading="lazy"
type="text/html"
src={url}
srcDoc={`<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;
width:100%;height:100%;object-fit: cover;top:0;bottom:0;max-height: 500px}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;margin:auto;text-shadow:0 0 0.5em black}</style>
<a href=${url + "?rel=0"}>
<img src=https://img.youtube.com/vi/${code}/hqdefault.jpg alt='Video'>
<span>▶</span></a>`}
src={url + "?rel=0"}
frameBorder="0"
allowFullScreen
title="benefits_video"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
srcDoc={`<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;
width:100%;height:100%;object-fit: cover;top:0;bottom:0;max-height: 500px}span{height:1.5em;text-align:center;font:48px/1.5 sans-serif;color:white;margin:auto;text-shadow:0 0 0.5em black}</style>
<a href=${url}>
<img src=https://img.youtube.com/vi/${code}/hqdefault.jpg alt='Video'>
<span>▶</span></a>`}
webkitallowfullscreen="true"
mozallowfullscreen="true"
></iframe>
Expand Down