Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions src/pages/RollingPaper/RollingPaperPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const DivWrap = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;

@media (max-width: 1248px) {
grid-template-columns: repeat(2, 1fr);
}
Expand All @@ -35,7 +35,7 @@ const DivWrap = styled.div`
`;

const BackgroundWrap = styled.div`
background-image: ${({ backgroundImageURL }) =>
background-image: ${({ backgroundImageURL }) =>
backgroundImageURL
? `linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.54) 100%), url(${backgroundImageURL})`
: "ffffff"};
Expand All @@ -51,19 +51,6 @@ const BackgroundWrap = styled.div`
}
`;


const BackgroundWrap = styled.div.withConfig({
shouldForwardProp: (prop) =>
!["bgColor", "backgroundImageURL"].includes(prop),
})`
background-image: ${({ backgroundImageURL }) =>
backgroundImageURL ? `url(${backgroundImageURL})` : "none"};
background-color: ${({ bgColor }) => bgColor || "#FFE2AD"};
min-height: calc(100vh - 65px);
background-size: cover;
background-position: center;
`;

const colorMap = {
beige: "#FFE2AD",
purple: "#ECD9FF",
Expand Down Expand Up @@ -102,7 +89,7 @@ function RollingPaperDetailPage() {
if (id) fetchInitialData();
}, [id]);



// 메시지 로드 함수
const loadMoreMessages = async () => {
Expand Down
Loading