diff --git a/src/Bookmark.module.css b/src/Bookmark.module.css deleted file mode 100644 index 37840ef..0000000 --- a/src/Bookmark.module.css +++ /dev/null @@ -1,56 +0,0 @@ -.container { - display: flex; - gap: 1rem; - flex-direction: column; -} - -.card { - border: 1px solid #e0e0e0; - border-radius: 8px; - padding: 1.5rem; - background-color: #fff; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); - display: flex; - justify-content: space-between; - align-items: center; - flex-shrink: 0; - height: 100px; -} - -.header { - display: flex; - align-items: center; - gap: 0.75rem; - margin-bottom: 1rem; -} - -.companyName { - font-size: 1.1rem; - font-weight: bold; - margin: 0; -} - -.positionTitle { - font-size: 1.25rem; - margin: 0 0 1.5rem 0; -} - -.footer { - text-align: right; - margin-top: -1rem; -} - -.details { - display: flex; - flex-direction: column; - align-items: flex-end; -} -.deadline { - color: red; - font-weight: bold; -} - -.recruiting { - color: royalblue; - font-weight: bold; -} diff --git a/src/MyPage.module.css b/src/MyPage.module.css deleted file mode 100644 index 3731ae7..0000000 --- a/src/MyPage.module.css +++ /dev/null @@ -1,100 +0,0 @@ -.container { - width: 768px; - margin: 0rem auto auto; - padding: 2rem; - border-radius: 8px; -} - -.title { - font-size: 2rem; - font-weight: bold; - margin-bottom: 2rem; -} - -.menu { - display: flex; - gap: 1rem; -} - -.menu button { - background: none; - border: none; - padding: 1rem; - cursor: pointer; - font-size: 1rem; - color: #888; - border-bottom: 2px solid transparent; -} - -.menu button:hover { - background-color: #f0f0f0; -} - -.menu button.active { - color: #333; - font-weight: bold; - border-bottom: 2px solid #ccc; -} - -.content { - padding: 1rem 0; -} - -.menuHeader { - display: flex; - justify-content: space-between; - align-items: center; - border-bottom: 1px solid #e0e0e0; - margin-bottom: 2rem; -} - -.createProfileButton { - background-color: #f0f0f0; - color: #333; - border: none; - border-radius: 8px; - padding: 0.75rem 1rem; - font-size: 0.9rem; - font-weight: 500; - cursor: pointer; -} - -.createProfileButton:hover { - background-color: #e0e0e0; -} - -.profilePromptContainer { - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - padding: 4rem 0; -} - -.promptTitle { - font-size: 1.5rem; - font-weight: bold; - margin: 0 0 1rem 0; -} - -.promptSubtitle { - font-size: 1rem; - color: #555; - margin: 0 0 2rem 0; -} - -.promptButton { - background-color: #333; - color: white; - border: none; - border-radius: 8px; - padding: 1rem 1.5rem; - font-size: 1.1rem; - font-weight: bold; - cursor: pointer; - min-width: 300px; -} - -.promptButton:hover { - background-color: #000000; -} diff --git a/src/components/CreateProfile.tsx b/src/components/CreateProfile.tsx index 7f00ef0..2487ab3 100644 --- a/src/components/CreateProfile.tsx +++ b/src/components/CreateProfile.tsx @@ -6,7 +6,7 @@ import { useProfile } from '../contexts/ProfileContext'; import styles from '../styles/Profile.module.css'; const CreateProfile = () => { - const { profile } = useProfile(); + const { profile, fetchProfile } = useProfile(); const [isSaving, setIsSaving] = useState(false); // 마지막 확인 : 학번/학과/이력서 다 valid한 input으로 차있음 @@ -344,6 +344,7 @@ const CreateProfile = () => { links: cleanedLinks, }); setCanSave(true); + await fetchProfile(); navigate('/mypage'); } catch (e) { console.error(e);