Live Repo

Mobile first solo

The image of the Learning journal project
The image of the Learning journal project

Welcome to the "Learning journal" solo project!

This was a Solo project in Scrimba's front-end developer course. Solo means I created it from scratch, looking only at a Figma design. The theoretical part of the module, that preceded the project was about Responsive design and Mobile first approach principle, so you'll see a lot of CSS, media queries, and a little JS in my project. But as I love JS, I couldn't help myself but try and play with things.

The requirements of the project were:

null

How did I build it?

Firstly, I created a project structure, that consists of 3 HTML files, 3 corresponding CSS files, 1 separate CSS file, that contains the shared classes and properties (styles.css), and 3 corresponding JS files. I built an HTML template, with elements, which are similar on every page (navigation, grid, footer, blogs section) and styled them, using a mobile-first approach and measuring gaps and sizes in Figma. Then I created media queries for larger screens and styled the common elements in them (typography and a grid layout). After that, I created unique elements for every page and separate CSS style sheets for every page, for a more convenient and readable code. I styled those unique elements and also the elements, that are not unique but have a different size on a larger screen.

Finally, I brought some movement to the project with some JS. As there were stretch goals, I'll tell you all about them in the next section (yeah this is separation of concerns in action) ;)

Stretch goals

Scrimbas' suggested stretch goals:

null

What I did:

  1. I made the navigation responsive.

It may seem easy, but there are some hidden catches in it. One important thing that I found out is that for better accessibility:

Don’t hide the