فهرست منبع

adjust GrowiNavbarBottom

Yuki Takei 2 سال پیش
والد
کامیت
363a3f237f

+ 15 - 0
apps/app/src/components/Navbar/GrowiNavbarBottom.module.scss

@@ -14,3 +14,18 @@
     bottom: #{-1 * var.$grw-navbar-bottom-height};
     bottom: #{-1 * var.$grw-navbar-bottom-height};
   }
   }
 }
 }
+
+
+// centering icons
+.grw-navbar-bottom :global {
+  .nav-link {
+    display: flex;
+    align-items: center;
+  }
+}
+
+// == Colors
+.grw-navbar-bottom {
+  background-color: rgba(var(--bs-body-bg-rgb), 0.7);
+  backdrop-filter: blur(35px);
+}

+ 22 - 9
apps/app/src/components/Navbar/GrowiNavbarBottom.tsx

@@ -18,7 +18,7 @@ export const GrowiNavbarBottom = (): JSX.Element => {
   const { data: currentPagePath } = useCurrentPagePath();
   const { data: currentPagePath } = useCurrentPagePath();
   const { data: isSearchPage } = useIsSearchPage();
   const { data: isSearchPage } = useIsSearchPage();
 
 
-  const additionalClasses = ['grw-navbar-bottom', styles['grw-navbar-bottom']];
+  const additionalClasses = [styles['grw-navbar-bottom']];
   if (isDrawerOpened) {
   if (isDrawerOpened) {
     additionalClasses.push('grw-navbar-bottom-drawer-opened');
     additionalClasses.push('grw-navbar-bottom-drawer-opened');
   }
   }
@@ -34,18 +34,29 @@ export const GrowiNavbarBottom = (): JSX.Element => {
         </div>
         </div>
       ) }
       ) }
 
 
-      <div className={`navbar navbar-expand navbar-dark bg-primary px-0 ${additionalClasses.join(' ')}`}>
+      <div className={`navbar navbar-expand px-4 px-sm-5 ${additionalClasses.join(' ')}`}>
 
 
-        <ul className="navbar-nav w-100">
-          <li className="nav-item me-auto">
+        <ul className="navbar-nav flex-grow-1 d-flex align-items-center justify-content-between">
+          <li className="nav-item">
             <a
             <a
               role="button"
               role="button"
               className="nav-link btn-lg"
               className="nav-link btn-lg"
               onClick={() => mutateDrawerOpened(true)}
               onClick={() => mutateDrawerOpened(true)}
             >
             >
-              <i className="icon-menu"></i>
+              <span className="material-symbols-outlined fs-2">reorder</span>
             </a>
             </a>
           </li>
           </li>
+
+          <li className="nav-item">
+            <a
+              role="button"
+              className="nav-link btn-lg"
+              onClick={() => openCreateModal(currentPagePath || '')}
+            >
+              <span className="material-symbols-outlined fs-2">edit</span>
+            </a>
+          </li>
+
           {
           {
             !isSearchPage && (
             !isSearchPage && (
               <li className="nav-item">
               <li className="nav-item">
@@ -55,20 +66,22 @@ export const GrowiNavbarBottom = (): JSX.Element => {
                   data-bs-target="#grw-global-search-collapse"
                   data-bs-target="#grw-global-search-collapse"
                   data-bs-toggle="collapse"
                   data-bs-toggle="collapse"
                 >
                 >
-                  <i className="icon-magnifier"></i>
+                  <span className="material-symbols-outlined fs-2">search</span>
                 </a>
                 </a>
               </li>
               </li>
             )
             )
           }
           }
-          <li className="nav-item ms-auto">
+
+          <li className="nav-item">
             <a
             <a
               role="button"
               role="button"
               className="nav-link btn-lg"
               className="nav-link btn-lg"
-              onClick={() => openCreateModal(currentPagePath || '')}
+              onClick={() => {}}
             >
             >
-              <i className="icon-pencil"></i>
+              <span className="material-symbols-outlined fs-2">notifications</span>
             </a>
             </a>
           </li>
           </li>
+
         </ul>
         </ul>
       </div>
       </div>
 
 

+ 1 - 1
apps/app/src/styles/_variables.scss

@@ -8,7 +8,7 @@ $grw-marker-green: #6f6;
 //== Layout
 //== Layout
 $grw-sidebar-nav-width: 48px;
 $grw-sidebar-nav-width: 48px;
 
 
-$grw-navbar-bottom-height: 48px;
+$grw-navbar-bottom-height: 62px;
 $grw-editor-navbar-bottom-height: 48px;
 $grw-editor-navbar-bottom-height: 48px;
 
 
 $grw-scroll-margin-top-in-view: 130px;
 $grw-scroll-margin-top-in-view: 130px;