Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Bartek532/pozywka.pl int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
Bartek532 committed Mar 13, 2024
2 parents 36e6167 + 67871f0 commit fcd8e82
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 25 deletions.
4 changes: 2 additions & 2 deletions components/common/image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useState } from "react";

import styles from "./Image.module.scss";

export const Image = (props: Omit<ImageProps, "onLoadingComplete">) => {
export const Image = (props: Omit<ImageProps, "onLoad">) => {
const [isLoaded, setIsLoaded] = useState(false);
const [isSkeleton, setIsSkeleton] = useState(true);

Expand All @@ -17,7 +17,7 @@ export const Image = (props: Omit<ImageProps, "onLoadingComplete">) => {
data-loaded={isLoaded}
onTransitionEnd={(event) => event.propertyName === "opacity" && setIsSkeleton(false)}
>
<NextImage {...props} onLoadingComplete={() => setIsLoaded(true)} />
<NextImage {...props} onLoad={() => setIsLoaded(true)} />
</div>
</div>
);
Expand Down
7 changes: 6 additions & 1 deletion components/home/instagram/Instagram.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1/1;
aspect-ratio: 4 / 5;
overflow: hidden;
box-shadow: 0px 12px 30px -10px rgba(0, 0, 0, 0.1);

.image {
width: 100%;
height: 100%;

img {
object-fit: cover;
}
}

@media (max-width: 992px) {
Expand Down
190 changes: 168 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcd8e82

Please sign in to comment.