aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_modal/post_status_modal.vue
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-09-19 13:27:37 -0400
committertaehoon <th.dev91@gmail.com>2019-09-20 11:29:24 -0400
commitf4bbf1d4e205e3c3438226d0cf71e77d4bc0be11 (patch)
treedeed786195f463ffcf40e9d3d8d71faba9812f3d /src/components/post_status_modal/post_status_modal.vue
parent90981dcce6bbed1ba7700a7f1f4d74838e217b55 (diff)
add new module and modal to post new status
Diffstat (limited to 'src/components/post_status_modal/post_status_modal.vue')
-rw-r--r--src/components/post_status_modal/post_status_modal.vue42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/components/post_status_modal/post_status_modal.vue b/src/components/post_status_modal/post_status_modal.vue
new file mode 100644
index 00000000..85a5401c
--- /dev/null
+++ b/src/components/post_status_modal/post_status_modal.vue
@@ -0,0 +1,42 @@
+<template>
+ <div
+ v-if="isOpen"
+ class="post-form-modal-view modal-view"
+ @click="closeModal"
+ >
+ <div
+ class="post-form-modal-panel panel"
+ @click.stop=""
+ >
+ <div class="panel-heading">
+ {{ $t('post_status.new_status') }}
+ </div>
+ <PostStatusForm
+ class="panel-body"
+ @posted="closeModal"
+ />
+ </div>
+ </div>
+</template>
+
+<script src="./post_status_modal.js"></script>
+
+<style lang="scss">
+@import '../../_variables.scss';
+
+.post-form-modal-view {
+ align-items: flex-start;
+}
+
+.post-form-modal-panel {
+ flex-shrink: 0;
+ margin-top: 25%;
+ margin-bottom: 2em;
+ width: 100%;
+ max-width: 700px;
+
+ @media (orientation: landscape) {
+ margin-top: 8%;
+ }
+}
+</style>