Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
"preview": "vite preview"
},
"dependencies": {
"@allcll/common": "workspace:^",
"@allcll/allcll-ui": "workspace:^",
"@allcll/common": "workspace:^",
"@svgr/webpack": "^8.1.0",
"@tanstack/react-query": "^5.83.0",
"@vitejs/plugin-basic-ssl": "^2.1.0",
"dexie": "^4.0.11",
"dotenv": "^16.6.1",
"react-datepicker": "^8.4.0",
"react-helmet": "^6.1.0"
"react-helmet": "^6.1.0",
"react-markdown": "^10.1.0",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.1"
},
"devDependencies": {
"@allcll/mock-server": "workspace:^",
Expand Down
97 changes: 97 additions & 0 deletions packages/admin/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,100 @@ body {
:root {
background-color: #f9fafb;
}

/* Markdown prose styles for notice editor preview */
.prose {
color: #364153;
line-height: 1.75;
}

.prose h1,
.prose h2 {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding-bottom: 0.3em;
color: #202123;
font-weight: 600;
}

.prose h1 { font-size: 1.875rem; margin: 1rem 0 0.5rem; }
.prose h2 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.prose h3 { font-size: 1.25rem; color: #202123; font-weight: 600; margin: 0.75rem 0 0.5rem; }

.prose p { margin: 0.75rem 0; }

.prose code {
background: #eff6ff;
color: #2563eb;
padding: 0.2em 0.4em;
border-radius: 0.25rem;
font-family: ui-monospace, monospace;
font-size: 0.875em;
}

.prose pre {
background: #f1f5f9;
border-left: 3px solid #3b82f6;
border-radius: 0.5rem;
padding: 1rem;
overflow-x: auto;
}

.prose pre code {
background: none;
color: #2563eb;
padding: 0;
font-size: inherit;
}

.prose blockquote {
border-left: 4px solid #3b82f6;
padding-left: 1em;
color: #6b7280;
font-style: italic;
margin: 0.75rem 0;
}

.prose a {
color: #2563eb;
text-decoration: underline;
}

.prose ul {
list-style-type: disc;
padding-left: 1.5em;
margin: 0.5rem 0;
}

.prose ul ul {
list-style-type: circle;
}

.prose ul ul ul {
list-style-type: square;
}

.prose ol {
list-style-type: decimal;
padding-left: 1.5em;
margin: 0.5rem 0;
}

.prose li { margin: 0.25rem 0; }

.prose table {
width: 100%;
border-collapse: collapse;
margin: 0.75rem 0;
}

.prose th,
.prose td {
border: 1px solid #e5e7eb;
padding: 0.5rem 0.75rem;
text-align: left;
}

.prose th {
background: #f9fafb;
font-weight: 600;
}
5 changes: 5 additions & 0 deletions packages/admin/src/assets/alert-triangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/admin/src/assets/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/admin/src/assets/bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/admin/src/assets/code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/admin/src/assets/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/admin/src/assets/file-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/src/assets/italic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/admin/src/assets/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/admin/src/assets/list-ordered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions packages/admin/src/assets/list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/admin/src/assets/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/src/assets/quote.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/admin/src/assets/save.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/admin/src/assets/trash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/admin/src/components/SideNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const Menus = [
title: '사용자 후기',
link: '/reviews',
},
{
title: '공지사항',
link: '/notices',
},
];

function SideNavBar() {
Expand Down
Loading
Loading