cern-sis / issues

0 stars 0 forks source link

academic training NextJS from scratch #67

Open drjova opened 2 years ago

ErnestaP commented 1 year ago

Setup the next js project on git: https://github.com/cern-sis/cern-academic-training-next-js

ErnestaP commented 1 year ago

Plan:

for ideas: https://raygun.com/blog/javascript-unit-testing-frameworks/

ErnestaP commented 1 year ago

I managed to adapt the styles for the header. There are small differences- the font looks bigger on the original CAT. However, none of the buttons and neither search field doesn't work.

ErnestaP commented 1 year ago

The original intention was to continue using the same style files as the CAT project is currently using. The React app project and NextJS, however, do not load styles in the same way. Because style classes are grouped for various cases and components, it is very challenging to investigate each class separately. As a result, it becomes difficult to keep track of each of them.

Due to the simplicity of the library, it has been decided to switch to using styled-components. We can style each component individually with styled-components, which makes it simpler to comprehend how each component is styled.

The new strategy is to replace all CSS classes that are currently being read from files with the built-in styling of styled-components.

Image

ErnestaP commented 1 year ago

Started the lecture page:

Image

ErnestaP commented 1 year ago

more improvements on the lecture page:

  1. Video
  2. Fixed overlaying/duplicated components
  3. Header is visibility

Image

ErnestaP commented 1 year ago

Image

Got rid off App.css file