${loadmapButton.render({
+
${curriculumButton.render({
content: '확인',
type: this.validation() ? buttonTypes.grey : buttonTypes.primary,
size: 'md',
- key: 'loadmap-btn',
+ key: 'curriculum-btn',
disabled: this.validation(),
onClick: this.submitData.bind(this),
})}
diff --git a/src/components/curriculum/curriculum.style.scss b/src/components/curriculum/curriculum.style.scss
new file mode 100644
index 0000000..b3c5eec
--- /dev/null
+++ b/src/components/curriculum/curriculum.style.scss
@@ -0,0 +1,78 @@
+.curriculum {
+ width: 100%;
+ &__explain {
+ &-icon {
+ margin-right: 0.3rem;
+ width: 3%;
+ @include mobile {
+ width: 5%;
+ }
+ }
+ &-title {
+ @include title5;
+ margin: 0.3rem 0;
+ }
+ &-detail {
+ @include subhead5;
+ color: $color-grey-scale4;
+ }
+ }
+ &__select {
+ margin: 1.25rem 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border: 1px solid #cfcfcf;
+ border-radius: 0.75rem;
+ display: flex;
+ @include mobile {
+ display: flex;
+ flex-direction: column;
+ }
+ @include tablet {
+ display: flex;
+ flex-direction: column;
+ }
+ &__bundle {
+ display: flex;
+ margin: 1.25rem auto;
+ @include mobile {
+ margin: 0.5rem 0;
+ }
+ @include tablet {
+ margin: 0.5rem 0;
+ }
+ &-label {
+ margin-right: 0.5rem;
+ margin-top: 0.1rem;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 1.25rem;
+ width: 2.5rem;
+ background-color: $color-g2;
+ border-radius: 100px;
+ @include subhead5;
+ color: #ffffff;
+ }
+ &-input {
+ padding-right: 0rem;
+ }
+ }
+ }
+ &__btn {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+}
+.box {
+ @include mobile {
+ padding: 1rem;
+ }
+ padding: 2rem;
+ background-color: white;
+ border-radius: 16px;
+ box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1), 0px 4px 20px rgba(0, 0, 0, 0.1);
+ margin-bottom: 1rem;
+}
diff --git a/src/components/loadmap-image/loadmap-image.style.scss b/src/components/loadmap-image/loadmap-image.style.scss
deleted file mode 100644
index 2c8a88d..0000000
--- a/src/components/loadmap-image/loadmap-image.style.scss
+++ /dev/null
@@ -1,11 +0,0 @@
-.loadmap-image{
- width: 100%;
-
- &__title{
- @include title4;
- }
- &__content{
- width: 90%;
- margin: 0.8rem 5%;
- }
-}
\ No newline at end of file
diff --git a/src/components/loadmap-list/loadmap-list.component.js b/src/components/loadmap-list/loadmap-list.component.js
deleted file mode 100644
index 3111ba8..0000000
--- a/src/components/loadmap-list/loadmap-list.component.js
+++ /dev/null
@@ -1,107 +0,0 @@
-import Component from '../../core/component';
-import * as utils from '../../helper/utils';
-import { detailCategoryToKorean, categoryNameToKorean } from '../../helper/parse';
-
-export default class LoadmapList extends Component {
- setDefaultProps() {
- this.props = {
- lecture: [],
- };
- }
-
- initState() {
- this.state = {
- common: false,
- };
- }
-
- isNote(partName) {
- const { year } = this.props;
- let text = '';
- if (this.state.common) {
- text = '* 선택 1';
- }
- if (partName === '기독교') {
- year < 20 ? (text = '* 성서와 인간이해(필수)외 선택 1') : (text = '* 선택 2');
- }
- if (partName === '영어') {
- text = '* 교과목(영어, 영어회화)당 1,2 또는 3,4 이수';
- }
- return text;
- }
-
- getList(props) {
- return props
- .map((prop) => {
- return `
-
-
${prop.name}
-
${
- prop.credit === 0 ? `0.5` : prop.credit
- }학점
-
`;
- })
- .join('');
- }
-
- getTable() {
- const { common } = this.state;
- const { lecture } = this.props;
- return (
- lecture &&
- Object.values(common ? lecture[1] : lecture[0])
- .map((obj) => {
- return `
-
-
${categoryNameToKorean[Object.keys(obj)[0]]}
-
- ${Object.values(obj)[0]
- .map((value) => {
- const partName =
- value.categoryName in detailCategoryToKorean
- ? detailCategoryToKorean[value.categoryName]
- : value.categoryName;
- return `
-
${partName}
-
${this.getList(value.lectures)}
-
${this.isNote(partName)}
-
`;
- })
- .join('')}
-
-
`;
- })
- .join('')
- );
- }
-
- template() {
- return (props) => {
- if (props) this.setProps(props);
- const { common } = this.state;
- const barStyle = { right: common ? '1.3rem' : '6.7rem' };
- return `
-
-
과목 정보
-
-
${this.getTable()}
-
- `;
- };
- }
-
- setEvent() {
- this.addEvent('click', '.loadmap-list__content__option-major', () => {
- this.setState({ common: false });
- });
- this.addEvent('click', '.loadmap-list__content__option-culture', () => {
- this.setState({ common: true });
- });
- }
-}
diff --git a/src/components/loadmap-list/loadmap-list.style.scss b/src/components/loadmap-list/loadmap-list.style.scss
deleted file mode 100644
index 225b6e8..0000000
--- a/src/components/loadmap-list/loadmap-list.style.scss
+++ /dev/null
@@ -1,105 +0,0 @@
-.loadmap-list{
-
- &__title{
- @include title5;
- }
- &__content{
- margin: 2rem 0;
- width: 100%;
- border-top: 5px solid $color-grey-scale3;
- &__option{
- position: relative;
- top: -50px;
- right: -40px;
- @include mobile{top: -30px;}
- float: right;
- @include subhead4;
- display: flex;
- &-major{ cursor: pointer;}
- &-culture{
- cursor: pointer;
- margin-left: 1.5rem;
- }
- }
- &__bar{
- border-radius: 4px;
- border-top: 7px solid $color-g2;
- width: 2rem;
- position: relative;
- top:-6px;
- z-index:1;
- float: right;
- }
- }
- &__info{
- &__category{
- @include mobile {
- width: 100%;
- margin: 1.5rem 0rem;
- font: smaller;
- }
- margin: 1.5rem 1rem;
- &__categoryName{
- width:fit-content;
- background-color: $color-secondary;
- padding: .33rem 1rem;
- color : white;
- @include title2;
- margin-bottom: .5rem;
- }
- &__content{
- display: flex;
- flex-direction: row-reverse;
- flex-wrap: wrap-reverse;
- justify-content: flex-start;
- &__item{
- width: 45%;
- margin: .33rem auto;
- &-detailcatogory{
- display: flex;
- justify-content: center;
- background-color: $color-g1;
- padding: .33rem;
- color : $color-g2;
- @include title2;
- border-radius: 1.875rem;
- margin-bottom: .5rem;
- }
- &-list{
- border : 1px solid rgba(0, 0, 0, 0.3);
- border-radius: 1rem;
- height: 8rem;
- overflow: scroll;
- @include subhead3;
- color: $color-title;
- &__item{
- display: flex;
- padding: .33rem 0.5rem;
- justify-content:space-between;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- &-name{
- width: 75%;
- }
- &-credit{
- color: $color-grey-scale4;
- }
- }
- &__item:last-child{border-bottom:0px}
- }
- &-notice{
- @include subhead3;
- color: $color-grey-scale4;
- padding: 0.2rem 0.5rem;
- @include mobile{
- font: smaller;
- }
-
-
-
- }
- }
- }
- }
-
-}
-}
\ No newline at end of file
diff --git a/src/components/loadmap-more/loadmap-more.style.scss b/src/components/loadmap-more/loadmap-more.style.scss
deleted file mode 100644
index 8bfc47c..0000000
--- a/src/components/loadmap-more/loadmap-more.style.scss
+++ /dev/null
@@ -1,35 +0,0 @@
-.loadmap-more{
- width: 100%;
-
- &__img{
- position: relative;
- top: 10px;
- left: 15%;
- z-index: 0;
- width: 15%;
- min-width: 130px;
- }
- &__content{
- position: relative;
- padding: 1rem;
- border-radius: 150px;
- background-color: $color-g2;
- display: flex;
- justify-content: space-around;
- @include tablet{ padding: 1rem 0.5rem;}
- &-explain{
- @include mobile{ display: none; }
- @include tablet{ font-size: smaller; }
- padding: 0;
- color: white;
- &__title{ @include title4; }
- &__subtitle{ @include body2; }
- }
- &-btn{
- display: flex;
- &-item{
- margin-left: 0.5rem;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/components/loadmap-result/loadmap-result.component.js b/src/components/loadmap-result/loadmap-result.component.js
deleted file mode 100644
index 252286d..0000000
--- a/src/components/loadmap-result/loadmap-result.component.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import Component from '../../core/component';
-import LoadmapList from '../loadmap-list/loadmap-list.component';
-import LoadmapSort from '../loadmap-sort/loadmap-sort.component';
-import LoadmapImage from '../loadmap-image/loadmap-image.component';
-import LoadmapMore from '../loadmap-more/loadmap-more.component';
-
-export default class LoadmapResult extends Component {
- template() {
- const loadmapSort = this.addChild(LoadmapSort);
- const loadmapList = this.addChild(LoadmapList);
- const loadmapImage = this.addChild(LoadmapImage);
- const loadmapmore = this.addChild(LoadmapMore);
- return (props) => {
- if (props) this.setProps(props);
- const { credit, lecture, major, year } = this.props;
-
- return `
-
-
${loadmapSort.render({ ...credit })}
-
-
${loadmapList.render({ lecture, year })}
-
-
${loadmapImage.render({ major })}
-
${loadmapmore.render({ major })}
-
- `;
- };
- }
-}
diff --git a/src/components/loadmap-result/loadmap-result.style.scss b/src/components/loadmap-result/loadmap-result.style.scss
deleted file mode 100644
index 527403e..0000000
--- a/src/components/loadmap-result/loadmap-result.style.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-.loadmap-result{
- &-bar{
- background-color: $color-grey-scale5;
- height: 1px;
- width: 100%;
- margin: 2.5rem 0;
- }
-}
\ No newline at end of file
diff --git a/src/components/loadmap-sort/loadmap-sort.style.scss b/src/components/loadmap-sort/loadmap-sort.style.scss
deleted file mode 100644
index 8dabe29..0000000
--- a/src/components/loadmap-sort/loadmap-sort.style.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-.loadmap-sort{
- &__title{
- @include title5;
- }
- &__list{
- display: flex;
- max-width: 26rem;
- margin: auto;
- flex-wrap: wrap;
- justify-content: center;
- align-items: center;
- }
-}
\ No newline at end of file
diff --git a/src/components/loadmap/loadmap.style.scss b/src/components/loadmap/loadmap.style.scss
deleted file mode 100644
index c7817ed..0000000
--- a/src/components/loadmap/loadmap.style.scss
+++ /dev/null
@@ -1,68 +0,0 @@
-.loadmap{
- width: 100%;
- &__explain{
- &-icon{
- margin-right: 0.3rem;
- width: 3%;
- @include mobile{width: 5%}
- }
- &-title{
- @include title5;
- margin: 0.3rem 0;
- }
- &-detail{
- @include subhead5;
- color:$color-grey-scale4;
- }
- }
- &__select{
- margin: 1.25rem 0;
- display: flex;
- justify-content: center;
- align-items: center;
- border: 1px solid #CFCFCF;
- border-radius: .75rem;
- display: flex;
- @include mobile{
- display: flex;
- flex-direction: column;
- }
- @include tablet{
- display: flex;
- flex-direction: column;
- }
- &__bundle{
- display: flex;
- margin: 1.25rem auto;
- @include mobile{ margin: 0.5rem 0;}
- @include tablet{ margin: 0.5rem 0;}
- &-label{
- margin-right: 0.5rem;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 1.25rem;
- width: 2.5rem;
- background-color:$color-g2;
- border-radius: 100px;
- @include subhead5;
- color: #FFFFFF;
- }
- }
- }
- &__btn{
- display: flex;
- align-items: center;
- justify-content: center;
- }
-}
-.box{
- @include mobile{
- padding: 1rem;
- }
- padding: 2rem;
- background-color: white;
- border-radius: 16px;
- box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1), 0px 4px 20px rgba(0, 0, 0, 0.1);
- margin-bottom: 1rem;
-}
\ No newline at end of file
diff --git a/src/components/mobile-category/mobile-category.component.js b/src/components/mobile-category/mobile-category.component.js
index b9051cd..bdc2242 100644
--- a/src/components/mobile-category/mobile-category.component.js
+++ b/src/components/mobile-category/mobile-category.component.js
@@ -17,7 +17,7 @@ export default class MobileCategory extends Component {
template() {
const myInfo = this.addChild(MyInfo);
const tutorialNavigate = this.addChild(MobileNavigate);
- const loadmapNavigate = this.addChild(MobileNavigate);
+ const curriculumNavigate = this.addChild(MobileNavigate);
const mypageNavigate = this.addChild(MobileNavigate);
const resultNavigate = this.addChild(MobileNavigate);
const aboutNavigate = this.addChild(MobileNavigate);
@@ -40,9 +40,9 @@ export default class MobileCategory extends Component {
-