Procházet zdrojové kódy

multiple modification in the front, modification on css rules, adding icon in jsx

AlexiCauvin před 6 roky
rodič
revize
134e9a51f5

+ 4 - 4
jsonserver/static_db.json Zobrazit soubor

@@ -99,7 +99,7 @@
99 99
   }],
100 100
   "workspace_detail": {
101 101
     "id": 1,
102
-    "title": "Liste des contenus",
102
+    "title": "Tous les contenus",
103 103
     "owner_id": 5,
104 104
     "content": [
105 105
       {
@@ -218,7 +218,7 @@
218 218
       "day": "27/11/17",
219 219
       "hour": "11h45"
220 220
     },
221
-    "text": "Voici le début de ce qui nous servira de cachier des charges pour la partie design du logiciel, chacun peut completer le documents, nésité pas à faire des retours ! "
221
+    "text": "Voici le début de ce qui nous servira de cachier des charges pour la partie design du logiciel, chacun peut completer le documents, n'hésité pas à faire des retours ! "
222 222
   }, {
223 223
     "id": 1,
224 224
     "type": "message",
@@ -249,8 +249,8 @@
249 249
     "id": 3,
250 250
     "type": "version",
251 251
     "author": {
252
-      "id": 1,
253
-      "username": "smoi",
252
+      "id": 5,
253
+      "username": "stoi",
254 254
       "avatar": "https://www.algoo.fr/static/images/algoo_images/algoo-logo.jpg"
255 255
     },
256 256
     "createdAt": {

+ 8 - 2
src/component/Header/MenuActionListItem/MenuProfil.jsx Zobrazit soubor

@@ -15,9 +15,15 @@ const MenuProfil = props => {
15 15
             </div>
16 16
           </button>
17 17
           <div className='profilgroup__setting dropdown-menu' aria-labelledby='dropdownMenuButton'>
18
-            <Link className='setting__link dropdown-item' to={PAGE.ACCOUNT}>Mon compte</Link>
18
+            <Link className='setting__link dropdown-item' to={PAGE.ACCOUNT}>
19
+              <i className='fa fa-fw fa-user-o mr-2' />
20
+              Mon compte
21
+            </Link>
19 22
             {/* <div className='setting__link dropdown-item'>Mot de passe</div> */}
20
-            <div className='setting__link dropdown-item' onClick={props.onClickLogout}>Se déconnecter</div>
23
+            <div className='setting__link dropdown-item' onClick={props.onClickLogout}>
24
+              <i className='fa fa-fw fa-sign-out mr-2' />
25
+              Se déconnecter
26
+            </div>
21 27
           </div>
22 28
         </div>
23 29
       </li>

+ 4 - 1
src/component/common/layout/PageTitle.jsx Zobrazit soubor

@@ -5,7 +5,10 @@ import classnames from 'classnames'
5 5
 const PageTitle = props => {
6 6
   return (
7 7
     <div className={classnames(props.parentClass, props.customClass, 'pageTitleGeneric')}>
8
-      <div className={classnames(`${props.parentClass}__title`, 'pageTitleGeneric__title')}>
8
+      <div className={classnames(`${props.parentClass}__title`, 'pageTitleGeneric__title d-flex align-items-center')}>
9
+        <div className='pageTitleGeneric__title__icon mr-3'>
10
+          <i className='fa fa-fw fa-th' />
11
+        </div>
9 12
         {props.title}
10 13
       </div>
11 14
       {props.children}

+ 1 - 1
src/container/Sidebar.jsx Zobrazit soubor

@@ -78,7 +78,7 @@ class Sidebar extends React.Component {
78 78
           </nav>
79 79
 
80 80
           <div className='sidebar__btnnewworkspace'>
81
-            <button className='sidebar__btnnewworkspace__btn btn btn-primary'>
81
+            <button className='sidebar__btnnewworkspace__btn btn btn-primary mb-5'>
82 82
               {t('Sidebar.create_new_workspace')}
83 83
             </button>
84 84
           </div>

+ 0 - 9
src/css/ExtandedAction.styl Zobrazit soubor

@@ -1,13 +1,4 @@
1 1
 .extandedaction
2
-  .btn-outline-primary
3
-    color fontColor
4
-    border-color secondColor
5
-    &:hover, &:focus, &:active
6
-      color off-white
7
-      border-color thirdColor
8
-      background-color thirdColor
9
-      box-shadow 0 0 1px 2px fifthColor
10
-      outline fifthColor
11 2
   &__subdropdown
12 3
     margin 0
13 4
     padding 0

+ 6 - 1
src/css/Generic.styl Zobrazit soubor

@@ -32,6 +32,11 @@
32 32
   border-color hover-button
33 33
   box-shadow 0 0 1px 2px secondColor
34 34
 
35
+.dropdown-item
36
+  &:hover, &:focus, &:visited, &:focus-within
37
+    background-color thirdColor
38
+    color off-white
39
+
35 40
 .sidebarpagecontainer
36 41
   display flex
37 42
   padding-top 88px
@@ -110,7 +115,7 @@
110 115
       cursor pointer
111 116
 
112 117
 .fa-file-image-o
113
-  color previewColor
118
+  color fileColor
114 119
 
115 120
 .fa-comments-o
116 121
   color threadColor

+ 2 - 3
src/css/Header.styl Zobrazit soubor

@@ -102,10 +102,9 @@
102 102
             left inherit
103 103
             right 0
104 104
             cursor pointer
105
-            .dropdown-item
105
+            .setting__link
106
+              padding 10px
106 107
               color fontColor
107
-            &__link
108
-              padding 10px 0
109 108
 
110 109
 @media (min-width: min-lg) and (max-width: max-lg)
111 110
   .header

+ 2 - 2
src/css/Login.styl Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 .loginpage
2 2
   padding-top 85px // 85 = header height
3 3
   min-height calc(100% - 50px)
4
-  background darkBlue url('../img/tracimLogoAsBg.png') no-repeat 25% 3px
4
+  background secondColor url('../img/tracimLogoAsBg.png') no-repeat 25% 3px
5 5
   background-size contain
6 6
   width 100%
7 7
   &__logo
@@ -13,7 +13,7 @@
13 13
     box-shadow shadow-right
14 14
     margin-bottom 50px
15 15
     .connection__header
16
-      background-color blue
16
+      background-color thirdColor
17 17
       color #FFF
18 18
       font-size 25px
19 19
   .connection__form

+ 2 - 4
src/css/Sidebar.styl Zobrazit soubor

@@ -27,7 +27,6 @@ sidebar-animate-speed = 0.5s
27 27
   top 87px
28 28
 
29 29
 leftside()
30
-  flex-grow 0
31 30
   height 100%
32 31
   font-size 18px
33 32
   background-color rgba(253, 253, 253, 0.3)
@@ -83,12 +82,12 @@ leftside()
83 82
           &:hover
84 83
             background-color fifthColor
85 84
         &__number
85
+          display flex
86 86
           leftside()
87 87
           padding 12px
88 88
           width 50px
89 89
           letter-spacing 2px
90 90
         &__name
91
-          flex-grow 2
92 91
           padding 10px
93 92
           font-size 20px
94 93
           color off-white
@@ -96,8 +95,7 @@ leftside()
96 95
           overflow hidden
97 96
           text-overflow ellipsis
98 97
         &__icon
99
-          flex-grow 0
100
-          padding 10px
98
+          margin 0 10px 0 auto
101 99
           color white
102 100
         &__submenu
103 101
           margin 0

+ 1 - 1
src/css/Variable.styl Zobrazit soubor

@@ -79,7 +79,7 @@ danger = #e81a32
79 79
 /**** BOX SHADOW ****/
80 80
 shadow-bottom = 0px 0px 5px 1px #606060
81 81
 shadow-right = 2px 2px 5px 0px #404040
82
-shadow-all = 1px 1px 5px 2px #ababab
82
+shadow-all = 0px 0px 3px 1px #656565
83 83
 shadow-all-side-blue = 0px 0px 1px 1px lightBlue
84 84
 shadow-all-side-green = 0 0 1px 2px green
85 85
 shadow-all-side-thread = 0 0 1px 2px threadColor