Skip to content

Commit

Permalink
chore: higher-resolution base-placeholder-image for larger displays
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Oct 17, 2023
1 parent 696f9da commit fe56a8a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 12 additions & 7 deletions src/components/base/BasePlaceholderImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,22 @@ export default {
$c: ".c-base-placeholder-image";

// VARIABLES
$illustration-max-width: 280px;
$illustration-margin-sides: 20px;
$illustration-image-width: 680px;
$illustration-image-scale-factor: 3;

$illustration-margin-sides: 40px;

$illustration-images: (
"empty": 226px,
"goodbye": 180px,
"welcome": 196px
"empty": 550px,
"goodbye": 437px,
"welcome": 477px
);

.c-base-placeholder-image {
max-width: ($illustration-max-width + (2 * $illustration-margin-sides));
max-width: calc(
($illustration-image-width / $illustration-image-scale-factor) +
(2 * $illustration-margin-sides)
);
text-align: center;

#{$c}__illustration {
Expand Down Expand Up @@ -108,7 +113,7 @@ $illustration-images: (
&--#{$illustration} {
#{$c}__illustration {
background-image: url("@/assets/images/components/base/BasePlaceholderImage/illustration-#{$illustration}.webp");
height: $height;
height: calc($height / $illustration-image-scale-factor);
}
}
}
Expand Down

0 comments on commit fe56a8a

Please sign in to comment.