Skip to content

Commit

Permalink
Merge pull request #100 from Team-INSERT/fix/chore
Browse files Browse the repository at this point in the history
Fix/chore
  • Loading branch information
Ubinquitous authored Nov 2, 2023
2 parents 9882058 + e9b6fa5 commit e5f41ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useMeisterHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,19 @@ export const useMeisterHTML = () => {
.replaceAll("`", "")
.replaceAll(
"(상점 : ",
`\n<span style="font-size: 24px !important; font-weight: 600 !important;">상점 `,
`\n<span style="font-size: 20px !important; font-weight: 600 !important;">상점 `,
)
.replaceAll(
"(벌점 : ",
`\n<span style="font-size: 24px !important; font-weight: 600 !important;">벌점 `,
`\n<span style="font-size: 20px !important; font-weight: 600 !important;">벌점 `,
)
.replaceAll("점)", "점</span>")
.replaceAll("부여일 : ", "20")
.replace(/상\d{2}-/gi, "")
.replace(/기숙사\d{2}-/gi, "")
.replace(/학교\d{2}-/gi, "")
.replace(/\(([^)]*선생님[^)]*)\)/g, "$1")
.replace(/·/gi, "asdfasfsf");
.replace(/\(([^)]*선생님[^)]*)\)/gi, "$1")
.replace(/\([^)]*\)/gi, "");
};

return { getBasicJobSkills, scoreParser, pointParser };
Expand Down
10 changes: 8 additions & 2 deletions src/templates/home/layouts/HomeCalender.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { color, flex, font } from "@/styles";
import { CalenderIcon } from "@/assets/icons";
import getPlanType from "@/helpers/getPlanType.helper";
import React from "react";
import styled from "styled-components";
import HomeHead from "./HomeHead";
Expand All @@ -19,7 +20,7 @@ const HomeCalender = ({ calenders }: IHomeCalenderProps) => {
<CalenderBody>
{calenders.map((calender) => (
<CalenderContent>
- {calender.title} ({calender.type})
- {calender.title} <span>{getPlanType(calender.type)}</span>
</CalenderContent>
))}
</CalenderBody>
Expand All @@ -43,10 +44,15 @@ const CalenderBody = styled.div`
`;

const CalenderContent = styled.p`
${font.p3};
${font.p2};
padding-left: 6px;
white-space: pre;
line-height: 160%;
span {
${font.p4};
color: ${color.gray};
}
`;

export default HomeCalender;
4 changes: 2 additions & 2 deletions src/templates/meister/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const PointHTMLContent = styled.div`
}
li > div > div {
font-size: 20px !important;
font-size: 16px !important;
font-weight: 500 !important;
text-align: center !important;
white-space: pre-wrap !important;
Expand All @@ -378,7 +378,7 @@ const PointHTMLContent = styled.div`
}
li > div > div:first-child > div {
font-size: 20px !important;
font-size: 18px !important;
font-weight: 500 !important;
color: black !important;
}
Expand Down

0 comments on commit e5f41ac

Please sign in to comment.