Skip to content

Commit

Permalink
Added a block on the right side, does not work with resizing yet
Browse files Browse the repository at this point in the history
  • Loading branch information
sajochems committed Dec 4, 2023
1 parent 1168cc0 commit c24fbdf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/photos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ export const Photos: FunctionalComponent = () => {
class={style.gallery}
onClick={() => (shouldAnimate.current = false)}
>
<div class={style.block}></div>
<div class={style.blockleft}></div>

{photosMap.map((url) => (
<Photo url={url} />
))}

<div class={style.blockright}></div>
</div>
</section>
);
Expand Down
14 changes: 13 additions & 1 deletion src/components/photos/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
}

.block {
.blockleft {
position: absolute;
margin-top: -120px;
margin-left: 120px;
Expand All @@ -32,6 +32,18 @@
transform: rotate(-90deg);
}

.blockright {
position: absolute;
margin-top: -120px;
margin-left: 775px;
display: block;
width: 260px;
height: 500px;
background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.00) 50%);
z-index: 2;
transform: rotate(90deg);
}


.gallery {
display: flex;
Expand Down

0 comments on commit c24fbdf

Please sign in to comment.