Explorar el Código

added popup of content and workspace creation

AlexiCauvin hace 7 años
padre
commit
68beca03f3

+ 44 - 0
src/component/PopupContent/FileContent.jsx Ver fichero

@@ -0,0 +1,44 @@
1
+import React, { Component } from 'react'
2
+
3
+class fileContent extends Component {
4
+  render () {
5
+    return (
6
+      <div className='filecontent p-3'>
7
+        <div className='filecontent__close d-flex justify-content-end'>
8
+          <i className='fa fa-times' />
9
+        </div>
10
+        <div className='filecontent__contentname d-flex align-items-center mb-4'>
11
+          <div className='filecontent__contentname__icon mr-3'>
12
+            <i className='fa fa-file-text-o' />
13
+          </div>
14
+          <div className='filecontent__contentname__title'>
15
+            Fichier de prévisualisation
16
+          </div>
17
+        </div>
18
+
19
+        <div className='filecontent__text'>Importer votre fichier :</div>
20
+        <div className='filecontent__form mb-4' drop='true'>
21
+          <div className='filecontent__form__icon d-flex justify-content-center'>
22
+            <label htmlFor='filecontentUpload' type='file'>
23
+              <i className='fa fa-download' />
24
+            </label>
25
+            <input type='file' className='d-none' id='filecontentUpload' />
26
+          </div>
27
+          <div className='filecontent__form__instruction text-center'>
28
+            Glisser votre fichier ici
29
+          </div>
30
+          <div className='filecontent__form__text text-center'>
31
+            Vous pouvez également importer votre fichier en cliquant sur l'icon
32
+          </div>
33
+        </div>
34
+        <div className='filecontent__button d-flex justify-content-end'>
35
+          <button className='filecontent__form__button btn btn-outline-primary'>
36
+            Créer et Valider
37
+          </button>
38
+        </div>
39
+      </div>
40
+    )
41
+  }
42
+}
43
+
44
+export default fileContent

+ 33 - 0
src/component/PopupContent/GenericContent.jsx Ver fichero

@@ -0,0 +1,33 @@
1
+import React, { Component } from 'react'
2
+
3
+class GenericContent extends Component {
4
+  render () {
5
+    return (
6
+      <div className='genericcontent p-3'>
7
+        <div className='genericcontent__close d-flex justify-content-end'>
8
+          <i className='fa fa-times' />
9
+        </div>
10
+        <div className='genericcontent__contentname d-flex align-items-center mb-4'>
11
+          <div className='genericcontent__contentname__icon mr-3'>
12
+            <i className='fa fa-file-word-o' />
13
+          </div>
14
+          <div className='genericcontent__contentname__title'>
15
+            Fichier Texte
16
+          </div>
17
+        </div>
18
+        <form className='genericcontent__form'>
19
+          <div className='genericcontent__form__input mb-2'>
20
+            <input type='text' placeholder='Titre du document' />
21
+          </div>
22
+          <div className='genericcontent__form__button d-flex justify-content-end p-3'>
23
+            <button className='genericcontent__form__button btn btn-outline-primary' type='submit'>
24
+              Créer et Valider
25
+            </button>
26
+          </div>
27
+        </form>
28
+      </div>
29
+    )
30
+  }
31
+}
32
+
33
+export default GenericContent

+ 30 - 0
src/component/PopupContent/WksContent.jsx Ver fichero

@@ -0,0 +1,30 @@
1
+import React, { Component } from 'react'
2
+
3
+class wksContent extends Component {
4
+  render () {
5
+    return (
6
+      <div className='wkscontent p-3'>
7
+        <div className='wkscontent__close d-flex justify-content-end'>
8
+          <i className='fa fa-times' />
9
+        </div>
10
+        <div className='wkscontent__contentname d-flex align-items-center mb-4'>
11
+          <div className='wkscontent__contentname__title'>
12
+            Création d'un espace de travail
13
+          </div>
14
+        </div>
15
+        <form className='wkscontent__form'>
16
+          <div className='wkscontent__form__input mb-2'>
17
+            <input type='text' placeholder='Titre du document' />
18
+          </div>
19
+          <div className='wkscontent__form__button d-flex justify-content-end p-3'>
20
+            <button className='wkscontent__form__button btn btn-outline-primary' type='submit'>
21
+              Créer et Valider
22
+            </button>
23
+          </div>
24
+        </form>
25
+      </div>
26
+    )
27
+  }
28
+}
29
+
30
+export default wksContent

+ 21 - 0
src/container/PopupCreateContainer.jsx Ver fichero

@@ -0,0 +1,21 @@
1
+import React, { Component } from 'react'
2
+import GenericContent from '../Component/PopupContent/GenericContent.jsx'
3
+import FileContent from '../Component/PopupContent/FileContent.jsx'
4
+import WksContent from '../Component/PopupContent/WksContent.jsx'
5
+
6
+class PopupCreateContainer extends Component {
7
+  render () {
8
+    return (
9
+      <div className='popupcontent'>
10
+        <div className='popupcontent__container card'>
11
+          <div className='popupcontent__container__header' />
12
+          <div className='card-body nopadding'>
13
+            <FileContent />
14
+          </div>
15
+        </div>
16
+      </div>
17
+    )
18
+  }
19
+}
20
+
21
+export default PopupCreateContainer

+ 37 - 0
src/css/FileContent.styl Ver fichero

@@ -0,0 +1,37 @@
1
+.filecontent
2
+  &__close
3
+    cursor pointer
4
+  &__contentname
5
+    &__icon
6
+      font-size 30px
7
+      color fileColor
8
+    &__title
9
+      font-size 20px
10
+      color fileColor
11
+  &__text
12
+    margin-bottom 15px
13
+    font-size 20px
14
+  &__form
15
+    border 1px dashed grey
16
+    padding 10px 15px
17
+    &__icon
18
+      margin-top 15px
19
+      font-size 30px
20
+      color fileColor
21
+      & > label
22
+        cursor pointer
23
+    &__instruction
24
+      font-size 20px
25
+      color fileColor
26
+    &__text
27
+      margin-bottom 20px
28
+  &__button
29
+    margin 15px 0
30
+    & > button
31
+      border-color fileColor
32
+      color fileColor
33
+      cursor pointer
34
+      &:focus, &:hover
35
+        border-color grey
36
+        background-color fileColor
37
+        color off-white

+ 18 - 0
src/css/Generic.styl Ver fichero

@@ -154,3 +154,21 @@
154 154
       border 1px solid grey
155 155
       border-radius 10px
156 156
       padding 15px 25px
157
+
158
+.genericcontent
159
+  &__close
160
+    cursor pointer
161
+  &__contentname
162
+    &__icon
163
+      font-size 30px
164
+    &__title
165
+      font-size 20px
166
+      color htmlColor
167
+  &__form
168
+    &__input
169
+      & > input
170
+        border: 1px solid grey;
171
+        border-radius: 5px;
172
+        padding: 5px;
173
+        width: 353PX;
174
+

+ 19 - 0
src/css/PopupCreateContainer.styl Ver fichero

@@ -0,0 +1,19 @@
1
+.popupcontent
2
+  position fixed
3
+  display flex
4
+  justify-content center
5
+  width 100%
6
+  z-index 3
7
+  &__container
8
+    margin-top 120px
9
+    border 0
10
+    border-radius 10px
11
+    width 400px
12
+    background lightGrey
13
+    box-shadow shadow-all
14
+    &__header
15
+      border-top-right-radius 10px
16
+      border-top-left-radius 10px
17
+      width 100%
18
+      height 8px
19
+      background-color fileColor

+ 1 - 1
src/css/Variable.styl Ver fichero

@@ -38,7 +38,7 @@ darkHtmlColor = darken(htmlColor, 15%)
38 38
 
39 39
 markdownColor = #e0082b
40 40
 
41
-fileColor = #263462
41
+fileColor = #FF9900
42 42
 lightFileColor = lighten(fileColor, 15%)
43 43
 
44 44
 taskColor = #2d5a88

+ 14 - 0
src/css/WksContent.styl Ver fichero

@@ -0,0 +1,14 @@
1
+.wkscontent
2
+  &__close
3
+    cursor pointer
4
+  &__contentname
5
+    &__title
6
+      font-size 20px
7
+      color htmlColor
8
+  &__form
9
+    &__input
10
+      & > input
11
+        border: 1px solid grey;
12
+        border-radius: 5px;
13
+        padding: 5px;
14
+        width: 353PX;

+ 4 - 0
src/css/index.styl Ver fichero

@@ -27,3 +27,7 @@ html, body, #content
27 27
 @import 'ProgressBar'
28 28
 
29 29
 @import 'FlashMessage'
30
+
31
+@import 'PopupCreateContainer'
32
+@import 'FileContent'
33
+@import 'WksContent'