Browse Source

changing the way comments are published

AlexiCauvin 6 years ago
parent
commit
c8ae091670
2 changed files with 53 additions and 18 deletions
  1. 25 13
      src/component/Timeline/Timeline.jsx
  2. 28 5
      src/component/Timeline/Timeline.styl

+ 25 - 13
src/component/Timeline/Timeline.jsx View File

@@ -70,20 +70,32 @@ const Timeline = props => {
70 70
         })}
71 71
       </ul>
72 72
 
73
-      <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor')}>
74
-        <div className={classnames(`${props.customClass}__texteditor__wysiwyg`, 'timeline__texteditor__wysiwyg')}>
75
-          <textarea />
73
+      <form className={classnames(`${props.customClass}__texteditor`, 'timeline__texteditor d-flex align-items-center justify-content-between flex-wrap')}>
74
+
75
+        <div className={classnames(`${props.customClass}__texteditor__textinput`, 'timeline__texteditor__textinput')}>
76
+          <textarea placeholder='Taper votre message ici'/>
76 77
         </div>
77
-        <div className={classnames(`${props.customClass}__texteditor__submit`, 'timeline__texteditor__submit d-inline-flex d-lg-flex justify-content-lg-center')}>
78
-          <button
79
-            type='submit'
80
-            className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}
81
-          >
82
-            Envoyer
83
-            <div className={classnames(`${props.customClass}__texteditor__submit__btn__icon`, 'timeline__texteditor__submit__btn__icon')}>
84
-              <i className='fa fa-paper-plane-o' />
85
-            </div>
86
-          </button>
78
+
79
+        <div className={classnames(`${props.customClass}__texteditor__wrapper`, 'timeline__texteditor__wrapper')}>
80
+
81
+          <div className={classnames(`${props.customClass}__texteditor__advancedtext`, 'timeline__texteditor__advancedtext')}>
82
+            <button type='button' className={classnames(`${props.customClass}__texteditor__advancedtext__btn`, 'timeline__texteditor__advancedtext__btn btn btn-outline-primary')}>
83
+              Texte Avancé
84
+            </button>
85
+          </div>
86
+
87
+          <div className={classnames(`${props.customClass}__texteditor__submit`, 'timeline__texteditor__submit mb-2')}>
88
+            <button
89
+              type='submit'
90
+              className={classnames(`${props.customClass}__texteditor__submit__btn`, 'timeline__texteditor__submit__btn btn')}
91
+            >
92
+              Envoyer
93
+              <div className={classnames(`${props.customClass}__texteditor__submit__btn__icon`, 'timeline__texteditor__submit__btn__icon')}>
94
+                <i className='fa fa-paper-plane-o' />
95
+              </div>
96
+            </button>
97
+          </div>
98
+
87 99
         </div>
88 100
       </form>
89 101
     </div>

+ 28 - 5
src/component/Timeline/Timeline.styl View File

@@ -58,7 +58,7 @@
58 58
         font-size 17px
59 59
         & > i
60 60
           margin-right 10px
61
-          color darkGrey
61
+          color off-white
62 62
           font-size 22px
63 63
       &__date
64 64
         color fontColor
@@ -66,16 +66,25 @@
66 66
         margin auto 0
67 67
   &__texteditor
68 68
     flex 0 1 auto
69
-    padding 2px
70
-    &__wysiwyg
71
-      display block
69
+    border-top 1px solid grey
70
+    padding 25px 10px
71
+    &__textinput
72
+      width 70%
72 73
       & > textarea
74
+        border-radius 5px
75
+        border 1.5px solid grey
76
+        padding 5px
77
+        height 80px
73 78
         width 100%
74
-        height 130px
79
+    &__wrapper
80
+      display flex
81
+      flex-direction column
82
+      justify-content center
75 83
     &__submit
76 84
       margin 10px 0
77 85
       &__btn
78 86
         display flex
87
+        width 118px
79 88
         cursor pointer
80 89
         &:hover , &:focus
81 90
           box-shadow shadow-all-btn
@@ -93,6 +102,20 @@
93 102
     &__content
94 103
       color white
95 104
 
105
+.activeAdvancedText
106
+  .timeline
107
+    &__texteditor
108
+      padding 10px
109
+      height 220px
110
+      &__textinput
111
+        width 100%
112
+      &__wrapper
113
+        flex-direction row
114
+        align-items center
115
+        width 100%
116
+      &__advancedtext
117
+        margin-right 20px
118
+
96 119
 
97 120
 /**** MEDIA 576px & 1199px ****/
98 121