Skip to content

Commit

Permalink
Merge pull request CSID-DGU#70 from study2895:main
Browse files Browse the repository at this point in the history
[Fix] νŽ˜μ΄μ§€ μ•ˆλœ¨λŠ” 였λ₯˜ μˆ˜μ •
  • Loading branch information
study2895 authored Dec 2, 2024
2 parents 0cca499 + 42d4696 commit 77b9279
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 224 deletions.
Original file line number Diff line number Diff line change
@@ -1,77 +1,75 @@
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;
margin-bottom: 1rem;
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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
}
16 changes: 1 addition & 15 deletions src/views/calendar/CalendarMainView.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
<script setup>
import {
PageContainer,
InnerContainer,
MainContent,
SectionTitle,
MonthTitle,
CalendarContainer,
CalendarGrid,
CalendarDay,
CalendarWeek,
DayButton,
SchedulePopup,
LinkButton
} from './CalendarMainStyled.js'
import { ref, onMounted } from 'vue'
import {
DAY_LIST,
Expand All @@ -37,6 +22,7 @@ import {
} from './CalendarMainScript.js'
import MainHeader from '@/components/layout/Header.vue'
import MainFooter from '@/components/layout/Footer.vue'
import './CalendarMainStyled.css'
onMounted(() => {
currentDate.value = new Date()
Expand Down
130 changes: 130 additions & 0 deletions src/views/mainpage/MainpageStyled.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/* μ™ΈλΆ€ μ»¨ν…Œμ΄λ„ˆ */
.page-container {
min-height: 100vh;
background-color: #fff9f2;
font-family: 'NanumSquareRound', sans-serif;
display: flex;
justify-content: center;
}

/* λͺ¨λ°”일 μ»¨ν…Œμ΄λ„ˆ */
.mobile-container {
width: 395px;
min-width: 340px;
background-color: #fae8da;
min-height: 100vh;
position: relative;
overflow-y: auto;
}

/* 메인 컨텐츠 */
.main-content {
display: flex;
flex-direction: column;
padding: 6rem 1.5rem 6rem;
font-family: 'NanumSquareRound', sans-serif;
}

.main-content .title {
margin-bottom: 70px;
font-size: 1.25rem;
font-weight: 500;
text-align: center;
color: #4a4a4a;
font-family: 'UhBeeSehyun', sans-serif;
}

/* μŠ€νƒ¬ν”„ μ˜μ—­ */
.stamp-container {
position: relative;
width: 390px;
height: 520px;
margin: 0 auto;
}

.stamp-container .stamp {
position: absolute;
width: 95px;
height: 95px;
display: flex;
justify-content: center;
align-items: center;
}

.stamp-container .stamp img {
width: 100%;
height: 100%;
}

/* ν•  일 ν‘œμ‹œ μ˜μ—­ */
.task-container {
margin-top: -80px;
margin-bottom: 3rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
}

.task-container .task-row {
display: flex;
gap: 0.75rem;
width: 100%;
max-width: 290px;
}

.task-container .task-row .task {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
height: 40px;
padding: 0 1rem;
background-color: white;
border-radius: 17px;
}

.task-container .task-row .task span {
font-size: 0.875rem;
font-family: 'NanumSquareRound', sans-serif;
color: var(--task-color, #b3b3b3);
}

.task-container .task-row .task img {
width: 20px;
height: 20px;
filter: var(--task-filter, grayscale(100%));
}

/* μ•„μ½” 이미지 μ˜μ—­ */
.ako-image-container {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2.5rem;
}

.ako-image-container .ako-status {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
}

.ako-image-container .ako-status img {
width: 32px;
height: 32px;
margin-right: 0.5rem;
}

.ako-image-container .ako-status p {
font-size: 0.875rem;
color: #757575;
font-family: 'NanumSquareRound', sans-serif;
}

.ako-image-container .ako-image {
width: 256px;
height: 256px;
margin: 0 auto;
}
Loading

0 comments on commit 77b9279

Please sign in to comment.