Sfoglia il codice sorgente

changing the way comments are published

AlexiCauvin 6 anni fa
parent
commit
c8ae091670
2 ha cambiato i file con 53 aggiunte e 18 eliminazioni
  1. 25 13
      src/component/Timeline/Timeline.jsx
  2. 28 5
      src/component/Timeline/Timeline.styl

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

70
         })}
70
         })}
71
       </ul>
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
         </div>
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
         </div>
99
         </div>
88
       </form>
100
       </form>
89
     </div>
101
     </div>

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

58
         font-size 17px
58
         font-size 17px
59
         & > i
59
         & > i
60
           margin-right 10px
60
           margin-right 10px
61
-          color darkGrey
61
+          color off-white
62
           font-size 22px
62
           font-size 22px
63
       &__date
63
       &__date
64
         color fontColor
64
         color fontColor
66
         margin auto 0
66
         margin auto 0
67
   &__texteditor
67
   &__texteditor
68
     flex 0 1 auto
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
       & > textarea
73
       & > textarea
74
+        border-radius 5px
75
+        border 1.5px solid grey
76
+        padding 5px
77
+        height 80px
73
         width 100%
78
         width 100%
74
-        height 130px
79
+    &__wrapper
80
+      display flex
81
+      flex-direction column
82
+      justify-content center
75
     &__submit
83
     &__submit
76
       margin 10px 0
84
       margin 10px 0
77
       &__btn
85
       &__btn
78
         display flex
86
         display flex
87
+        width 118px
79
         cursor pointer
88
         cursor pointer
80
         &:hover , &:focus
89
         &:hover , &:focus
81
           box-shadow shadow-all-btn
90
           box-shadow shadow-all-btn
93
     &__content
102
     &__content
94
       color white
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
 /**** MEDIA 576px & 1199px ****/
120
 /**** MEDIA 576px & 1199px ****/
98
 
121