Skip to content

Commit

Permalink
0.3.1 배포 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
doputer authored Dec 8, 2022
2 parents d2fb96c + 2357c0a commit 4cb14a3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 8 deletions.
55 changes: 50 additions & 5 deletions frontend/components/common/Content/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,30 @@ export const ContentBody = styled.div`
padding-top: 10px;
> * {
line-height: 1.4;
line-height: 2;
font-weight: 400;
}
h1,
h2,
h3,
strong {
font-weight: 700;
}
h1 {
font-size: 24px;
font-weight: 700;
margin: 16px 0 8px 0;
}
h2 {
font-size: 20px;
font-weight: 700;
margin: 16px 0 8px 0;
}
h3 {
font-size: 16px;
font-weight: 700;
font-size: 18px;
margin: 16px 0 8px 0;
}
ol {
Expand All @@ -47,4 +55,41 @@ export const ContentBody = styled.div`
width: 100%;
}
}
a {
color: var(--primary-color);
&:hover {
color: var(--primary-color);
text-decoration: underline;
}
}
blockquote {
margin: 24px 0;
padding: 24px 16px;
/* background-color: var(--light-orange-color); */
/* border-radius: 4px; */
border-left: 8px solid var(--light-orange-color);
}
code {
padding: 2px 4px;
background-color: var(--light-orange-color);
border-radius: 4px;
}
pre {
padding: 24px 16px;
background-color: var(--light-orange-color);
border-radius: 4px;
font-family: 'consolas';
font-size: 16px;
font-weight: 700;
line-height: 1.4;
code {
padding: 0;
}
}
`;
2 changes: 1 addition & 1 deletion frontend/components/edit/Editor/core/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function theme() {
const highlightStyle = HighlightStyle.define([
{ tag: tags.heading1, fontSize: '24px', fontWeight: '700' },
{ tag: tags.heading2, fontSize: '20px', fontWeight: '700' },
{ tag: tags.heading3, fontSize: '16px', fontWeight: '700' },
{ tag: tags.heading3, fontSize: '18px', fontWeight: '700' },
{ tag: tags.link, textDecoration: 'underline' },
{ tag: tags.strikethrough, textDecoration: 'line-through' },
{ tag: tags.invalid, color: '#cb2431' },
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/sitemap.xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>

const defaultFields = [
{
loc: `${process.env.NEXT_PUBLIC_NEXT_URL}`,
loc: `${process.env.NEXT_PUBLIC_CLIENT_URL}`,
changefreq: 'daily',
priority: '1.0',
lastmod,
},
];

const scrapFields = scraps.map((scrap: { book_id: number; article_id: number }) => ({
loc: `${process.env.NEXT_PUBLIC_NEXT_URL}/viewer/${scrap.book_id}/${scrap.article_id}`,
loc: `${process.env.NEXT_PUBLIC_CLIENT_URL}/viewer/${scrap.book_id}/${scrap.article_id}`,
changefreq: 'daily',
priority: '1.0',
lastmod,
Expand Down

0 comments on commit 4cb14a3

Please sign in to comment.