diff --git a/src/views/calendar/CalendarMainStyled.js b/src/views/calendar/CalendarMainStyled.css similarity index 65% rename from src/views/calendar/CalendarMainStyled.js rename to src/views/calendar/CalendarMainStyled.css index fe48de2..fb6468d 100644 --- a/src/views/calendar/CalendarMainStyled.js +++ b/src/views/calendar/CalendarMainStyled.css @@ -1,47 +1,45 @@ -import styled from 'vue-styled-components' - -// 전체 컨테이너 -export const PageContainer = styled.div` +/* 전체 컨테이너 */ +.page-container { min-height: 100vh; background-color: #fff9f2; font-family: 'NanumSquareRound', sans-serif; display: flex; justify-content: center; position: relative; -` +} -export const InnerContainer = styled.div` +.inner-container { width: 395px; min-width: 340px; background-color: #fae8da; min-height: 100vh; position: relative; overflow-y: auto; -` +} -// 메인 컨텐츠 -export const MainContent = styled.main` +/* 메인 컨텐츠 */ +.main-content { display: flex; flex-direction: column; padding: 20px 1.5rem 6rem; margin-top: 30px; -` +} -export const SectionTitle = styled.h2` +.section-title { font-size: 1.25rem; font-weight: 500; color: #4a4a4a; margin-bottom: 0.5rem; -` +} -export const MonthTitle = styled.h3` +.month-title { font-size: 1.5rem; font-weight: bold; color: #4a4a4a; -` +} -// 캘린더 관련 스타일 -export const CalendarContainer = styled.div` +/* 캘린더 관련 스타일 */ +.calendar-container { background-color: #fae8da; border-radius: 0.5rem; padding: 1rem; @@ -49,29 +47,29 @@ export const CalendarContainer = styled.div` display: flex; flex-direction: column; align-items: center; -` +} -export const CalendarGrid = styled.div` +.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; text-align: center; margin-bottom: 1rem; -` +} -export const CalendarDay = styled.span` +.calendar-day { font-size: 0.875rem; color: #b3b3b3; -` +} -export const CalendarWeek = styled.div` +.calendar-week { display: flex; width: 100%; justify-content: space-between; margin-bottom: 0.25rem; -` +} -export const DayButton = styled.button` +.day-button { display: flex; flex-direction: column; align-items: center; @@ -81,18 +79,22 @@ export const DayButton = styled.button` font-size: 0.75rem; border-radius: 0.5rem; margin: 0.125rem; - background-color: ${(props) => - props.isSelected ? '#FF7F00' : 'transparent'}; - color: ${(props) => - props.isSundayOrSaturday - ? '#17A1FA' - : props.isSelected - ? 'white' - : '#B3B3B3'}; -` + background-color: transparent; + color: #b3b3b3; + transition: background-color 0.3s, color 0.3s; +} + +.day-button.selected { + background-color: #ff7f00; + color: white; +} + +.day-button.sunday-saturday { + color: #17a1fa; +} -// 학사 일정 팝업 -export const SchedulePopup = styled.div` +/* 학사 일정 팝업 */ +.schedule-popup { position: fixed; bottom: 0; left: 0; @@ -104,9 +106,10 @@ export const SchedulePopup = styled.div` max-height: 60vh; width: 395px; margin: 0 auto; -` +} -export const LinkButton = styled.a` +/* 링크 버튼 */ +.link-button { display: flex; align-items: center; justify-content: space-between; @@ -122,8 +125,8 @@ export const LinkButton = styled.a` margin: 0 auto 0.625rem; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); transition: background-color 0.3s ease; +} - &:hover { - background-color: #f1cdb1; - } -` +.link-button:hover { + background-color: #f1cdb1; +} diff --git a/src/views/calendar/CalendarMainView.vue b/src/views/calendar/CalendarMainView.vue index b327703..55bb0e6 100644 --- a/src/views/calendar/CalendarMainView.vue +++ b/src/views/calendar/CalendarMainView.vue @@ -1,19 +1,4 @@ + +