Skip to content

Commit

Permalink
Merge pull request #348 from LikeLion-at-DGU/dev
Browse files Browse the repository at this point in the history
🚀 Deploy
  • Loading branch information
Chaem03 authored Aug 5, 2024
2 parents d6a7355 + 930b55c commit b120024
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/pages/MyPage/MyPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ const MyPage = () => {

const handleLogoutClick = () => setIsLogoutVisible(true);
const handleSubscribeClick = () => setIsSubscribeVisible(true);
const handlePrivacyClick = (content) => {
setSelectedContent(content);
setIsPrivacyVisible(true);
const handlePrivacyClick = () => {
return <AgreePage />;
};

const handleRoutineChangeClick = () => setRoutineVisible(true);
Expand All @@ -47,6 +46,7 @@ const MyPage = () => {
);

const moveOnstarP = (id) => {
console.log("id:", id);
navigate(`/star/${id}`);
};
return (
Expand Down
10 changes: 8 additions & 2 deletions src/pages/RandomDice/RandomDice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export const RandomDice = () => {
};

const textColor = !showContent ? "black" : "white";

const contentArray = data.content.split("-");
console.log("contentArray", contentArray);
contentArray.shift();
return (
<S.Layout>
<GradientBackground showContent={showContent} />
Expand Down Expand Up @@ -142,7 +144,11 @@ export const RandomDice = () => {
<div className="content">
<div className="title">{data.title}</div>

<div>{data.content}</div>
<div className="routinecontent">
{contentArray.map((line, index) => (
<div key={index}>{line.trim()}</div>
))}
</div>
</div>
)}
{!showContent ? (
Expand Down
21 changes: 18 additions & 3 deletions src/pages/RandomDice/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,22 @@ export const Container = styled.div`
}
.title {
color: var(--Font-Color, #2a2a2a);
text-align: center;
font-family: "AppleSDGothicNeoL";
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.routinecontent {
color: rgba(255, 255, 255, 0.7);
font-family: "AppleSDGothicNeoM";
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.buttons {
display: flex;
Expand All @@ -83,10 +98,10 @@ export const Container = styled.div`
}
.Add {
display: flex;
width: 100%;
width: 200px;
height: 32px;
padding: 5px;
color: white;
justify-content: center;
align-items: center;
flex-shrink: 0;
Expand All @@ -97,7 +112,7 @@ export const Container = styled.div`
.Again {
display: flex;
width: 100%;
width: 200px;
height: 32px;
padding: 5px;
justify-content: center;
Expand Down

0 comments on commit b120024

Please sign in to comment.