Skip to content

Commit

Permalink
Merge pull request #37 from UNICEFECAR/feature/issue_95
Browse files Browse the repository at this point in the history
Feature/issue 95
  • Loading branch information
sebastian-7DIGIT authored Feb 12, 2024
2 parents 9ddbb8d + fc2d4c3 commit d5a2d0d
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 41 deletions.
29 changes: 21 additions & 8 deletions src/blocks/FindYourself/FindYourself.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { useWindowDimensions } from "@USupport-components-library/utils";

import "./find-yourself.scss";

import image1 from "./assets/image_1.png";
import image2 from "./assets/image_2.png";
import image3 from "./assets/image_3.png";
import image4 from "./assets/image_4.png";

/**
* FindYourself
*
Expand Down Expand Up @@ -46,20 +51,28 @@ export const FindYourself = () => {
</GridItem>
)}
<GridItem md={4} lg={6} classes="find-yourself__image-item box box-1">
<div className="overlay" />
<h3>{t("card_text_1")}</h3>
<div className="overlay">
<img src={image1} className="box__image" />
<h3>{t("card_text_1")}</h3>
</div>
</GridItem>
<GridItem md={4} lg={6} classes="find-yourself__image-item box box-2">
<div className="overlay" />
<h3>{t("card_text_2")}</h3>
<div className="overlay">
<img src={image2} className="box__image" />
<h3>{t("card_text_2")}</h3>
</div>
</GridItem>
<GridItem md={4} lg={6} classes="find-yourself__image-item box box-3">
<div className="overlay" />
<h3>{t("card_text_3")}</h3>
<div className="overlay">
<img src={image3} className="box__image" />
<h3>{t("card_text_3")}</h3>
</div>
</GridItem>
<GridItem md={4} lg={6} classes="find-yourself__image-item box box-4">
<div className="overlay" />
<h3>{t("card_text_4")}</h3>
<div className="overlay">
<img src={image4} className="box__image" />
<h3>{t("card_text_4")}</h3>
</div>
</GridItem>
</Grid>
</Block>
Expand Down
Binary file added src/blocks/FindYourself/assets/image_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/blocks/FindYourself/assets/image_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/blocks/FindYourself/assets/image_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/blocks/FindYourself/assets/image_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 48 additions & 33 deletions src/blocks/FindYourself/find-yourself.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
text-align: center;
min-width: 40.7rem;

& h2,
& h3,
& p,
& .paragraph {
color: $color_white_ff !important;
}

&__h3 {
text-align: center;
@media screen and (min-width: $screen-md) {
Expand Down Expand Up @@ -67,13 +74,6 @@
}
}

& h2,
& h3,
& p,
& .paragraph {
color: $color_white_ff !important;
}

&__text-item {
width: 100vw;
@include themify($themes, "background-color", "color_purple_200e2f");
Expand All @@ -84,6 +84,13 @@
align-items: center;
justify-content: center;
min-width: 40.7rem;

& h2,
& h3,
& p,
& .paragraph {
color: $color_white_ff !important;
}
}

&__text {
Expand Down Expand Up @@ -117,28 +124,28 @@
background-repeat: no-repeat;
background-size: cover;
justify-self: center;
}

&.box-1 {
.no-webp & {
background-image: url("./assets/NeedHelp.png");
& h3 {
color: #6a4a4c;
margin-top: 1rem;
font-weight: $font_medium;
}
.webp & {
background-image: url("./assets/NeedHelp.webp");

& img {
width: 10.5rem;
}
}

&.box-1 {
background-color: #fe9c91;
margin-top: $spacing_4_8;
@media screen and (min-width: $screen-md) {
place-self: end;
}
}

&.box-2 {
.no-webp & {
background-image: url("./assets/OnlineConsultations.png");
}
.webp & {
background-image: url("./assets/OnlineConsultations.webp");
}
background-color: #bbe0fa;
margin-top: $spacing_3_2;
@media screen and (min-width: $screen-md) {
margin-top: $spacing_4_8;
Expand All @@ -147,44 +154,52 @@
}

&.box-3 {
.no-webp & {
background-image: url("./assets/FreeResources.png");
}
.webp & {
background-image: url("./assets/FreeResources.webp");
}
background-color: #6085cb;
margin-top: $spacing_3_2;

& h3 {
color: #fff3d7;
}

@media screen and (min-width: $screen-md) {
margin-top: $spacing_4_8;
place-self: end;
}
}

&.box-4 {
.no-webp & {
background-image: url("./assets/EasyAndSelfAccess.png");
}
.webp & {
background-image: url("./assets/EasyAndSelfAccess.webp");
}
background-color: #fdccbe;
margin-top: $spacing_3_2;

@media screen and (min-width: $screen-md) {
margin-top: $spacing_4_8;
place-self: start;
}

& img {
width: 9rem;
padding-right: 2rem;
}

& h3 {
margin-top: 1.5rem;
color: #535150;
}
}

& > .overlay {
@include themify($themes, "background-color", "color_black_010101");
border-radius: $border_radius_4_0;
height: inherit;
position: absolute;
width: inherit;
z-index: $z_index_1;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}

h3 {
position: relative;
text-align: center;
z-index: $z_index_2;
}
Expand Down

0 comments on commit d5a2d0d

Please sign in to comment.