zen-audio-player / zen-audio-player.github.io

Listen to YouTube videos, without the distracting visuals.
https://zen-audio-player.github.io/
MIT License
228 stars 180 forks source link

added navbar #415

Closed sarmadhamdani02 closed 1 year ago

sarmadhamdani02 commented 1 year ago
shakeelmohamed commented 1 year ago

Hi @sarmadhamdani02, thanks for the PR.

I don’t think the hierarchy of this nav bar is appropriate given that the text size of menu items is noticeably larger than the rest of the UI elements (which should be prioritized). Screenshot below. Additionally, the horizontal rule is too prominent. How else might we add that division, do we need it at all?

Also, please run npm test locally and address the linting issues. Due to #379 we don’t have proper CI running on the repo.

I ran the command locally and this was the output:

$ npm test

> zen-audio-player@1.1.0 pretest
> npm run stylelint:css && npm run lint

> zen-audio-player@1.1.0 stylelint:css
> stylelint css/*.css

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

css/styles.css
   4:3   βœ–  Expected indentation of 0 spaces       indentation                              
  21:8   βœ–  Expected single space before "{"       block-opening-brace-space-before         
  28:32  βœ–  Expected "#777" to be "#777777"        color-hex-length                         
  32:3   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
  35:24  βœ–  Expected single space before "{"       block-opening-brace-space-before         
  43:1   βœ–  Expected no more than 2 empty lines    max-empty-lines                          
  52:28  βœ–  Expected single space before "{"       block-opening-brace-space-before         
  61:18  βœ–  Expected double quotes                 string-quotes                            
  64:21  βœ–  Unexpected unit                        length-zero-no-unit                      
  70:34  βœ–  Expected single space before "{"       block-opening-brace-space-before         
  71:12  βœ–  Unexpected named color "white"         color-named                              
  72:23  βœ–  Unexpected named color "black"         color-named                              
  74:4   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
  77:35  βœ–  Expected single space before "{"       block-opening-brace-space-before         
  78:12  βœ–  Unexpected named color "black"         color-named                              
  79:23  βœ–  Unexpected named color "white"         color-named                              
  83:26  βœ–  Expected single space before "{"       block-opening-brace-space-before         
  93:18  βœ–  Expected double quotes                 string-quotes                            
  96:21  βœ–  Unexpected unit                        length-zero-no-unit                      
  98:4   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 101:28  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 102:12  βœ–  Expected "#222" to be "#222222"        color-hex-length                         
 107:32  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 108:23  βœ–  Unexpected named color "black"         color-named                              
 112:34  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 113:12  βœ–  Unexpected named color "white"         color-named                              
 116:33  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 117:12  βœ–  Unexpected named color "black"         color-named                              
 118:23  βœ–  Unexpected named color "white"         color-named                              
 123:1   βœ–  Expected empty line before rule        rule-empty-line-before                   
 123:13  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 140:13  βœ–  Unexpected empty block                 block-no-empty                           
 141:8   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 143:4   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 144:25  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 146:6   βœ–  Expected indentation of 4 spaces       indentation                              
 148:6   βœ–  Expected indentation of 4 spaces       indentation                              
 148:19  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 150:6   βœ–  Expected indentation of 4 spaces       indentation                              
 152:6   βœ–  Expected indentation of 4 spaces       indentation                              
 152:42  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 154:6   βœ–  Expected indentation of 4 spaces       indentation                              
 155:6   βœ–  Expected empty line before rule        rule-empty-line-before                   
 155:6   βœ–  Expected indentation of 4 spaces       indentation                              
 155:40  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 157:6   βœ–  Expected indentation of 4 spaces       indentation                              
 159:5   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 160:1   βœ–  Expected indentation of 4 spaces       indentation                              
 160:22  βœ–  Expected single space before "{"       block-opening-brace-space-before         
 161:5   βœ–  Expected indentation of 8 spaces       indentation                              
 161:12  βœ–  Expected "#777" to be "#777777"        color-hex-length                         
 162:5   βœ–  Expected indentation of 8 spaces       indentation                              
 164:1   βœ–  Expected indentation of 4 spaces       indentation                              
 258:24  βœ–  Expected newline after ";"             declaration-block-semicolon-newline-after
 258:24  βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 378:3   βœ–  Unexpected whitespace at end of line   no-eol-whitespace                        
 393:8   βœ–  Unexpected whitespace at end of line   no-eol-whitespace
Screenshot 2023-07-30 at 1 26 56 PM
sarmadhamdani02 commented 1 year ago

Thanks for reviewing @shakeelmohamed Ok, let me decrease the font size of navBar items and I think I should remove the horizontal line πŸ‘

sarmadhamdani02 commented 1 year ago

Hey @shakeelmohamed πŸ‘‹

sarmadhamdani02 commented 1 year ago

Hey @shakeelmohamed πŸ‘‹!

In the last few commits, I have added the following changes to the UI,

Kindly review it as soon as possible πŸ™‚πŸ™‚

sarmadhamdani02 commented 1 year ago

In the latest commit, I have added a dark mode and added some icons for the dark mode in the top right corner and some animation for the dark mode.

The only problem I am facing is an npm error saying "'gsap' is not defined" (I have used the GSAP library for animation and that is why I used gsap keyword in many places in the code). Not sure how should I remove this error. Apart from this everything is pretty much fine.