@@ -137,7 +161,13 @@ export default {
&__content {
display: flex;
flex-direction: column;
- padding-top: 1.5em;
+ margin-top: 1.5em;
+ }
+
+ &__field {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
line-height: 1.8;
}
@@ -151,10 +181,9 @@ export default {
display: flex;
}
- &__snack &__content {
- @include from($tablet) {
- flex-direction: row;
- justify-content: space-between;
+ &__snack &__field {
+ @include until($tablet) {
+ flex-direction: column;
}
}
@@ -164,6 +193,14 @@ export default {
&__ingang {
display: flex;
+ flex-direction: row;
+ align-items: flex-end;
+ justify-content: space-between;
+ }
+
+ &__ingang--field {
+ display: flex;
+ width: 50%;
flex-direction: column;
}
@@ -177,4 +214,14 @@ export default {
font-weight: $font-weight-bold;
}
}
+
+.progress.snack {
+ display: flex;
+ margin-top: 1em;
+}
+
+.progress.ingang {
+ display: flex;
+ padding-left: 0.5em;
+}
From 9fe5a35c88f04f2c25e45cd6966e7e496a45397c Mon Sep 17 00:00:00 2001
From: JunhoYeo <32605822+JunhoYeo@users.noreply.github.com>
Date: Mon, 20 May 2019 12:56:55 +0900
Subject: [PATCH 3/3] feat: add DimiBarChart component for afterschool status
---
app/dimiru/components/DimiBarChart.vue | 99 +++++++++++++++++
app/dimiru/components/index.js | 4 +-
app/pages/paths/management/ManageRequest.vue | 110 ++++++++++++++++++-
3 files changed, 205 insertions(+), 8 deletions(-)
create mode 100644 app/dimiru/components/DimiBarChart.vue
diff --git a/app/dimiru/components/DimiBarChart.vue b/app/dimiru/components/DimiBarChart.vue
new file mode 100644
index 00000000..538512fd
--- /dev/null
+++ b/app/dimiru/components/DimiBarChart.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
diff --git a/app/dimiru/components/index.js b/app/dimiru/components/index.js
index ac8ac465..f3426615 100644
--- a/app/dimiru/components/index.js
+++ b/app/dimiru/components/index.js
@@ -1,7 +1,7 @@
export { default as DimiBadge } from './DimiBadge.vue'
-export { default as DimiBadgeGroup } from './DimiBadgeGroup.vue'
-export { default as DimiButton } from './DimiButton.vue'
export { default as DimiButtonGroup } from './DimiButtonGroup.vue'
+export { default as DimiBarChart } from './DimiBarChart.vue'
+export { default as DimiButton } from './DimiButton.vue'
export { default as DimiButtonRadio } from './DimiButtonRadio.vue'
export { default as DimiCard } from './DimiCard.vue'
export { default as DimiCheckbox } from './DimiCheckbox.vue'
diff --git a/app/pages/paths/management/ManageRequest.vue b/app/pages/paths/management/ManageRequest.vue
index 6b48821f..1adc848e 100644
--- a/app/pages/paths/management/ManageRequest.vue
+++ b/app/pages/paths/management/ManageRequest.vue
@@ -29,7 +29,7 @@ export default {
-
+
총인원 620명 중
150명 신청
@@ -60,7 +60,71 @@ export default {
{{ year }}년 상반기 방과 후 활동 신청 현황
- 차트 컴포넌트를 만들자
+
+
+ 월요일
+
+
+
+ 50%(310명)
+
+
+
+
+ 화요일
+
+
+
+ 25%(155명)
+
+
+
+
+ 수요일
+
+
+
+ 60%(372명)
+
+
+
+
+ 목요일
+
+
+
+ 50%(310명)
+
+
+
+
+ 금요일
+
+
+
+ 80%(496명)
+
+
@@ -85,7 +149,7 @@ export default {
1타임
-
@@ -101,7 +165,7 @@ export default {
2타임
-
@@ -171,13 +235,13 @@ export default {
line-height: 1.8;
}
- &__percent {
+ &__snack &__percent {
color: $orange;
font-size: 48px;
font-weight: $font-weight-regular;
}
- &__status {
+ &__snack &__status {
display: flex;
}
@@ -191,6 +255,35 @@ export default {
line-height: normal;
}
+ &__afterschool &__title {
+ margin-bottom: 0.7em;
+ }
+
+ &__afterschool &__content {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ padding-right: 2.5em;
+ padding-left: 2.5em;
+ }
+
+ &__afterschool &__cell {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ }
+
+ &__afterschool &__day {
+ margin-bottom: 0.8em;
+ color: $gray-dark;
+ font-size: 18px;
+ font-weight: $font-weight-regular;
+ }
+
+ &__afterschool &__percent {
+ margin-top: 1em;
+ }
+
&__ingang {
display: flex;
flex-direction: row;
@@ -224,4 +317,9 @@ export default {
display: flex;
padding-left: 0.5em;
}
+
+.barchart.afterschool {
+ display: flex;
+ height: 120px;
+}