Skip to content

Commit

Permalink
Design: 블러이미지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 committed Aug 6, 2024
1 parent f7f1ccc commit 4ef64d6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
9 changes: 9 additions & 0 deletions src/assets/blur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/pages/Share/Share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useMoveonStarP } from "@/hooks/useStar";
import shareIcon from "@/assets/shareIcon.svg";
import ClearStarPIcon1 from "@/assets/starclearPicon1.svg";
import ClearStarPIcon2 from "@/assets/starclearPicon2.svg";
import blur from "@/assets/blur.svg";

const SharePage = ({ onBack }) => {
const { starP } = useMoveonStarP();
Expand Down Expand Up @@ -83,6 +84,7 @@ const SharePage = ({ onBack }) => {
alt={starData.name}
onLoad={() => setIsImageReady(true)}
/>
<S.BlurImage className="blur" />
<S.BannerTitle>
<div>{starData.name}</div>
<div className="profession">{starData.profession}</div>
Expand Down
16 changes: 10 additions & 6 deletions src/pages/Share/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,25 @@ export const BannerImage = styled.img`
width: 100%;
height: 282px;
object-fit: cover;
mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 1) 60%,
rgba(0, 0, 0, 0) 100%
);
position: relative;
`;

export const BlurImage = styled.img`
position: absolute;
z-index: 2;
bottom: 0;
left: 0;
width: 100%;
`;
export const BannerTitle = styled.div`
position: absolute;
display: flex;
flex-direction: column;
bottom: 70px;
left: 10px;
z-index: 2;
z-index: 3;
font-size: 1.8rem;
color: white;
font-weight: 600;
Expand Down

0 comments on commit 4ef64d6

Please sign in to comment.