Hey everyone! Would really appreciate any feedback and critique of my project. Also if anyone has any solution to the overflow of the code section when resizing the window?
Also forgot to mention! Took some inspiration from css-tricks
Hey Miyagii!
It looks nice, well done!
As for wrapping code - you can look into white-space
property. I am not sure whether thatās the best way but it worked for me
3 small things that came to my mind:
- Blocks that contain more text are a bit hard to read. The lines are a bit too long. You can try to shorten it or increase the line height a bit maybe? For example āJavaScript and Javaā
- On navbar, the ā>ā sign makes me thing that after a click the topic will expand with more sub-topics.
- I know its your choice but the black background seems a little too dark. I would make it slightly lighter.
Like I said - those are tiny things, that not everyone even has to agree with.
Cheers!
Also another idea for smaller windows - set overflow to auto
Hey Kubus!
Thank you very much for the kind words and the time taken to leave your suggestions! It is very much appreciated. Iāll make some adjustments soon and see how your points make a difference
Peace!
Hello @Miyagii. Your project is so cool and the design is fantastic. But, these tips are recommended:
-
Add
html {scroll-behavior: smooth; }
to your CSS code. Now click on the links in the sidebar and you will get a very cool smooth scrolling effect. -
You donāt need to add the
head
element and thebody
tags in CodePen. Itās already set for you. Only include the code that goes inside thebody
tags. If you want to add any tags in thehead
, do the following:- Click on the settings icon at the top of the HTML box.
- Enter your code inside the "Stuff for
<head>
" box.
-
There are some errors in your HTML code. Validate it with the built-in CodePen validator by clicking on the down arrow at the top of the respective code box and click on Analyze.
Anyway, great design and font choice. I like it very muchā¦
Your page looks good @Miyagii. Something to revisit;
- The test script should be included, with all tests passing, when you submit your projects.
- Your page passes 15/16 user stories. Click the red button to see which test(s) are failing and text to help you correct the issue.
-
User Story #14: On regular sized devices (laptops, desktops), the element with
id="navbar"
should be shown on the left side of the screen and should always be visible to the user. (Your media query negates laptops)
- Make your page responsive. Remember, the R in RWD stands for Responsive.
- The code snippets fall out of the container on smaller screens.
Hey Paulsontech! Thank you very much for the kind words, really appreciate it
-
Iāve tried to add the property scroll-behavior though itās not working on this project specifically, although it does on my other projects Iāll have to look further into this.
-
Helpful tip! Thank you
-
Errors fixed. Thanks for another tip on how to error check!
Hi Roma! Thank you
- Mine is saying 16/16 without changing it
- Dangā¦ Iām still trying to wrap my head around web responsiveness, how did you understand that it negates laptops, was it from the width Iād used on my media query?
Really appreciate the feedback, thanks Roma!
Iām on a laptop and the test fails for me but saying it negates laptops was a poor choice of words on my part.
Setting a breakpoint at 1380px is setting it for a large screen. Neither my laptop screen or my desktop screen is that large.
You can search for media query breakpoints. This is pretty typical;
(scroll down to ātypical device breakpointsā
Hmmmā¦ That seems so strange. You typed scroll-behaviour
instead of scroll-behavior
(notice the u at the end). But, that didnāt seem to fix the problem. Another problem I found is that you already had an html
selector. So, I put this property there and tried again. Still doesnāt seem to fix.
@Miyagii
Yes, you have a typo there but it still doesnāt work.
I am not exactly sure why, but if you move this property to * {}
- it will.
Quick answer is;
- Spell the property correctly. The standard states that spelling is US English
- Place it correctly. If the
property: value;
(scroll-behavior: smooth;
) is placed in the#main-doc
declaration it works as expected.
Read more here;