주식 히스토리 API 및 블로그 작성 API 추가

This commit is contained in:
2026-03-11 08:08:39 +09:00
parent bbc9bf36f9
commit c6ac849a25
5 changed files with 1121 additions and 142 deletions

View File

@@ -10,6 +10,30 @@
align-items: center;
}
.blog-header__actions {
display: flex;
flex-direction: column;
gap: 12px;
}
.blog-new-btn {
align-self: flex-start;
border: 1px solid rgba(192, 132, 252, 0.45);
background: rgba(192, 132, 252, 0.1);
color: var(--accent-blog);
border-radius: 999px;
padding: 8px 18px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
.blog-new-btn:hover {
background: rgba(192, 132, 252, 0.2);
border-color: rgba(192, 132, 252, 0.7);
}
.blog-kicker {
text-transform: uppercase;
letter-spacing: 0.3em;
@@ -56,23 +80,27 @@
.blog-toggle-list {
display: none;
position: fixed;
top: 20px;
left: 20px;
/* 사이드바 토글 버튼(top-left) 과 겹치지 않도록 오른쪽 하단 배치 */
bottom: 24px;
right: 24px;
top: auto;
left: auto;
z-index: 1000;
width: 40px;
height: 40px;
width: 44px;
height: 44px;
border-radius: 50%;
border: 1px solid var(--line);
background: rgba(10, 12, 20, 0.8);
color: var(--text);
border: 1px solid rgba(192, 132, 252, 0.45);
background: rgba(10, 12, 20, 0.88);
color: var(--accent-blog);
font-size: 18px;
cursor: pointer;
backdrop-filter: blur(10px);
backdrop-filter: blur(12px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
transition: transform 0.2s ease, opacity 0.2s ease;
}
.blog-toggle-list:hover {
transform: scale(1.1);
transform: scale(1.08);
opacity: 0.9;
}
@@ -103,31 +131,84 @@
color: var(--accent-blog);
}
.blog-list__item {
.blog-list__item-wrap {
border: 1px solid var(--line);
background: var(--surface);
padding: 16px;
border-radius: var(--radius-md);
text-align: left;
cursor: pointer;
display: grid;
gap: 8px;
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
box-shadow: var(--shadow-inset);
overflow: hidden;
}
.blog-list__item:hover {
.blog-list__item-wrap:hover {
border-color: var(--line-strong);
background: var(--surface-raised);
box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.blog-list__item.is-active {
.blog-list__item-wrap.is-active {
border-color: rgba(192, 132, 252, 0.5);
box-shadow: 0 4px 20px rgba(192, 132, 252, 0.12), var(--shadow-inset);
background: rgba(192, 132, 252, 0.05);
}
.blog-list__item-btn {
width: 100%;
padding: 16px;
text-align: left;
cursor: pointer;
display: grid;
gap: 8px;
background: transparent;
border: none;
color: inherit;
}
.blog-list__actions {
display: flex;
gap: 6px;
padding: 0 12px 10px;
}
.blog-list__action-btn {
font-size: 11px;
padding: 3px 10px;
border-radius: 999px;
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
}
.blog-list__action-btn:hover {
border-color: var(--accent-blog);
color: var(--accent-blog);
}
.blog-list__action-btn--del:hover {
border-color: #f04452;
color: #f04452;
}
.blog-article__edit-btn {
font-size: 11px;
padding: 4px 12px;
border-radius: 999px;
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
cursor: pointer;
text-transform: none;
letter-spacing: 0;
transition: border-color 0.15s, color 0.15s;
}
.blog-article__edit-btn:hover {
border-color: var(--accent-blog);
color: var(--accent-blog);
}
.blog-pagination {
display: flex;
align-items: center;
@@ -376,6 +457,12 @@
grid-template-columns: 1fr;
}
.blog-header__actions {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.blog-toggle-list {
display: block;
}
@@ -427,7 +514,7 @@
gap: 10px;
}
.blog-list__item {
.blog-list__item-btn {
padding: 14px;
}
@@ -476,3 +563,207 @@
padding: 16px;
}
}
/* ── 블로그 에디터 모달 ──────────────────────────────────────────────────── */
.blog-editor-overlay {
position: fixed;
inset: 0;
background: rgba(4, 6, 14, 0.75);
backdrop-filter: blur(6px);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.blog-editor {
background: #0c0f1e;
border: 1px solid rgba(192, 132, 252, 0.25);
border-radius: var(--radius-xl, 20px);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(192, 132, 252, 0.06);
width: 100%;
max-width: 860px;
max-height: 92vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.blog-editor__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 24px 14px;
border-bottom: 1px solid var(--line);
flex-shrink: 0;
}
.blog-editor__heading {
margin: 0;
font-size: 17px;
font-weight: 700;
color: var(--accent-blog);
letter-spacing: 0.04em;
}
.blog-editor__close {
background: transparent;
border: none;
color: var(--muted);
font-size: 18px;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
line-height: 1;
transition: color 0.15s;
}
.blog-editor__close:hover {
color: var(--text-bright, #fff);
}
.blog-editor__title-input {
margin: 14px 24px 0;
padding: 10px 14px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--line);
border-radius: var(--radius-md, 10px);
color: var(--text-bright, #f8f3ee);
font-size: 16px;
font-weight: 600;
outline: none;
transition: border-color 0.15s;
flex-shrink: 0;
}
.blog-editor__title-input:focus {
border-color: rgba(192, 132, 252, 0.5);
}
.blog-editor__title-input::placeholder {
color: var(--muted);
}
.blog-editor__tag-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 12px 24px 0;
flex-shrink: 0;
}
.blog-editor__tab-bar {
display: flex;
gap: 4px;
padding: 12px 24px 0;
flex-shrink: 0;
}
.blog-editor__tab {
padding: 5px 14px;
border-radius: 999px;
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
font-size: 12px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.blog-editor__tab.is-active {
border-color: rgba(192, 132, 252, 0.55);
background: rgba(192, 132, 252, 0.12);
color: var(--accent-blog);
}
.blog-editor__textarea {
flex: 1;
margin: 10px 24px 0;
padding: 14px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--line);
border-radius: var(--radius-md, 10px);
color: var(--text-bright, #f8f3ee);
font-size: 14px;
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
line-height: 1.75;
resize: none;
outline: none;
min-height: 320px;
transition: border-color 0.15s;
}
.blog-editor__textarea:focus {
border-color: rgba(192, 132, 252, 0.4);
}
.blog-editor__preview {
flex: 1;
margin: 10px 24px 0;
padding: 14px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--line);
border-radius: var(--radius-md, 10px);
overflow-y: auto;
min-height: 320px;
}
.blog-editor__footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 14px 24px 18px;
border-top: 1px solid var(--line);
flex-shrink: 0;
margin-top: 12px;
}
.blog-editor__save-btn {
border-color: rgba(192, 132, 252, 0.55) !important;
background: rgba(192, 132, 252, 0.15) !important;
color: var(--accent-blog) !important;
}
.blog-editor__save-btn:hover:not(:disabled) {
background: rgba(192, 132, 252, 0.25) !important;
}
.blog-editor__save-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
@media (max-width: 768px) {
.blog-editor-overlay {
align-items: flex-end;
padding: 0;
}
.blog-editor {
max-width: 100%;
max-height: 95vh;
border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0;
}
.blog-editor__title-input,
.blog-editor__tag-row,
.blog-editor__tab-bar,
.blog-editor__textarea,
.blog-editor__preview {
margin-left: 16px;
margin-right: 16px;
}
.blog-editor__header,
.blog-editor__footer {
padding-left: 16px;
padding-right: 16px;
}
.blog-new-btn {
align-self: stretch;
text-align: center;
}
}