-
Notifications
You must be signed in to change notification settings - Fork 1
TT-331 redesign of the sidebar #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ad49027
refactor: TT-331 Redesign of the sidebar
9c2cc05
fix: TT-331 css
scastillo-jp 4e8e5ad
code-smell: TT-331 Fixing bugs and code-smells
65c2c03
fix: TT-331 Changes in user and sidebar components
2f8aa05
fix: TT-331 Creating unit test for toggleSidebar method
7f947c9
fix: TT-331 Rebase from master and use of dark mode
89f611c
code-smell: TT-331 Deleting bugs and fixing code smells
1b36bd0
style: TT-331 Removing unused icons and scss styles
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 39 additions & 32 deletions
71
src/app/modules/shared/components/sidebar/sidebar.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,50 @@ | ||
| <div class="d-flex bg-grayTW-lightest dark:bg-grayTW-darker dark:text-whiteTW" id="wrapper"> | ||
| <div class="border-right bg-whiteTW dark:bg-grayTW-dark" id="sidebar-wrapper"> | ||
| <div class="sidebar-heading" style="text-align: center"> | ||
| <img src="assets/img/ioet.png" width="90" height="auto" style="padding-top: 2rem; padding-bottom: 2rem;" alt="logo" /> | ||
| </div> | ||
| <div id="wrapper" class="d-flex bg-grayTW-lightest dark:bg-grayTW-darker dark:text-whiteTW"> | ||
| <div id="sidebar-wrapper" class="table-row border-r border-grayTW-lighter shadow-sm bg-whiteTW dark:bg-grayTW-dark dark:border-grayTW"> | ||
| <div class="table-cell"> | ||
| <div class="relative flex items-center border-b border-grayTW-lighter dark:border-grayTW sidebar-heading"> | ||
| <img src="assets/img/ioet-logo-without-letters.png" alt="ioet-logo" width="50" height="auto" style="padding-top: 0.5rem; padding-left: 1rem;"/> | ||
| <h1 class="pl-2 pt-2" style="font-family:spinnaker,sans-serif">ioet</h1> | ||
| </div> | ||
| <app-user></app-user> | ||
| <div class="list-group list-group-flush bg-whiteTW dark:bg-grayTW-darker"> | ||
| <a | ||
| *ngFor="let item of itemsSidebar" | ||
| [routerLink]="item.route" | ||
| routerLinkActive="" | ||
| class="list-group-item list-group-item-action bg-whiteTW dark:bg-grayTW-dark dark:text-whiteTW" | ||
| [ngClass]="{active: item.active}" | ||
| > | ||
| <i class="{{ item.icon }}"></i> {{ item.text }} | ||
| </a> | ||
| <a | ||
| *ngFor="let item of itemsSidebar" | ||
| [routerLink]="item.route" | ||
| routerLinkActive="" | ||
| class="font-poppins relative pl-4 py-3 bg-whiteTW dark:bg-grayTW-dark dark:text-whiteTW" | ||
| [ngClass]="{active: item.active}" | ||
| > | ||
| <em class="{{ item.icon }}"></em> | ||
| <h3 class="font-poppins text-base ml-4 pl-3 -mt-6 text-left" >{{ item.text }}</h3> | ||
| </a> | ||
| <div class="bg-whiteTW pt-2 pr-24 absolute bottom-0 -mb-10 dark:bg-grayTW-dark"> | ||
| <a class="flex pl-4 mb-4 text-blackTW hover:text-grayTW dark:text-whiteTW" href="#"> | ||
| <em class="fas fa-sign-out-alt"></em> | ||
| <span class="font-poppins pl-3 font-medium -mt-1 dark:text-whiteTW" (click)="logout()">Sign out</span> | ||
| </a> | ||
| <app-dark-mode class="relative left-40 -top-14"></app-dark-mode> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="table-cell relative"> | ||
| <span class="absolute cursor-pointer inset-y-0 right-0 min-h-screen w-0.5 hover:z-0 hover:bg-primaryTW-light" (click)="toggleSideBar()"></span> | ||
| <span class="group cursor-pointer absolute w-5 top-28 -right-3"> | ||
| <img src="assets/icons/left-chevron.svg" alt="left-chevron" id="hide-sidebar" (click)="toggleSideBar()" width="20" height="20" class="bg-whiteTW rounded-full hover:bg-opacity-50 hover:bg-primaryTW-light sm:hidden md:block lg:block"/> | ||
| <div class="opacity-0 w-12 bg-blackTW text-whiteTW text-center text-xs rounded-lg py-2 absolute z-10 group-hover:opacity-100 bottom-full left-1/4 ml-4 -mb-6 px-1 pointer-events-none">Hide</div> | ||
| </span> | ||
| <span class="group cursor-pointer absolute top-20 -right-5"> | ||
| <img src="assets/icons/right-chevron.svg" alt="right-chevron" id="show-sidebar" (click)="toggleSideBar()" width="20" height="20" class="bg-whiteTW rounded-full hover:bg-opacity-50 hover:bg-primaryTW-light sm:block md:hidden lg:hidden"/> | ||
| <div class="opacity-0 w-12 bg-blackTW text-whiteTW text-center text-xs rounded-lg py-2 absolute z-10 group-hover:opacity-100 bottom-full left-1/4 ml-4 -mb-6 px-1 pointer-events-none">Show</div> | ||
| </span> | ||
| </div> | ||
| </div> | ||
| <div id="page-content-wrapper"> | ||
| <nav class="navbar navbar-expand-lg navbar-light border-bottom bg-whiteTW dark:bg-grayTW-dark"> | ||
| <button class="btn bg-primaryTW hover:bg-primaryTW-dark text-whiteTW hover:text-whiteTW" id="menu-toggle"> | ||
| Toggle Menu | ||
| </button> | ||
| <div class="dark-mode-toggle"> | ||
| <app-dark-mode></app-dark-mode> | ||
| </div> | ||
| <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
| <span class="navbar-toggler-icon"></span> | ||
| </button> | ||
| <div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
| <ul class="navbar-nav ml-auto mt-2 mt-lg-0"> | ||
| <app-user></app-user> | ||
| </ul> | ||
| </div> | ||
| </nav> | ||
| <div class="container-fluid px-0 full-height"> | ||
| <div class="content_app h-100"> | ||
| <div class="m-1 p-5 rounded-md bg-whiteTW dark:bg-grayTW-dark"> | ||
| <router-outlet></router-outlet> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
src/app/modules/shared/components/user/user.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| <li class="nav-item active dropdown"> | ||
| <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" | ||
| aria-haspopup="true" aria-expanded="false"> | ||
| <i class="far fa-user-circle"></i> | ||
| {{name}} | ||
| </a> | ||
| <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> | ||
| <a class="dropdown-item" href="#" (click)="logout()">Sign Out</a> | ||
| </div> | ||
| </li> | ||
| <div class=" py-8 flex items-center pl-3"> | ||
| <img src="assets/icons/user.svg" alt="user-icon" width="40" height="40"/> | ||
| <span class="pl-1"> | ||
| <h2 class="font-poppins text-base font-semibold pl-2 dark:text-whiteTW">{{userName}}</h2> | ||
| <p class="font-poppins mt-1 text-xs font-medium pl-2 text-grayTW dark:text-whiteTW">{{userEmail}}</p> | ||
| </span> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pp/modules/time-clock/components/time-entries-summary/time-entries-summary.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.