Giter Club home page Giter Club logo

layout_catalog's Introduction

Frontend practice with catalog page

Replace <your_account> with your Github username and copy the links to Pull Request description:

Follow this instruction


Write styles in src/styles/main.scss instead of src/style.css.


❗️❗️❗️ DON'T FORGET TO PROOFREAD YOUR CODE WITH CHECKLIST BEFORE SENDING YOUR PULL REQUEST❗️❗️❗️

The task

Create HTML page with catalog. Develop semantic page structure as shown on the mockup.

Requirements:

  • use Card and Header blocks from previous tasks but rewrite them using BEM and SCSS
  • Nav links color is not black any more
  • there should always be 4 cards in a row (not 2, 3 or 5)
    • use :nth-child(4n) to select every 4th element in flex container
    • use :nth-last-child(-n + 4) to select 4 last elements flex container
    • ❗️❗️❗️ if you already familiar with grid use it instead of flex and implement the Grid Layout instead
  • the distance between cards on the design includes borders (zoom in to see it);
  • cards should have fixed width and fixed distances between them
  • cards container should have fixed paddings (see 1024px example), bottom the same as top
  • use semantic tags. <header>, <nav>, <main>
  • add class is-active to the first link (Apple) in navigation
  • remove old data-qa attributes
  • add data-qa="nav-hover" (not just hover) to the 4th nav link for testing (Laptops & computers)
  • add data-qa="card" to the first card
  • add data-qa="card-hover" (not just hover) to the link Buy inside the first card

--> CHECKLIST


Tips & Hints

  • Don't use flex gap property, it's not yet supported by tests.
  • Check background-image: url() to be relative to the main.scss. So should start with ../images.

❗️❗️❗️ If you already familiar with transform and transition

Make all the changes smooth on hover (during 300ms):

  • increase the card by 20 percent (neighboring cards should not be affected)
  • change the card title text color to #34568b when the card is hovered (.card:hover .card__title)
  • change navigation link text color to #00acdc
  • change the button background to #00acdc on hover

screenshot

layout_catalog's People

Contributors

mgrinko avatar yuriiholiuk avatar ost-ptk avatar mkyloa avatar ivadimko avatar danheim avatar vladimir-beliy avatar irenhh avatar oleksiiblezniuk avatar vinniej-2k20 avatar danylo-onishchuk avatar solaryasha avatar olexandr6 avatar alinamatuschak avatar danmysak avatar ihor-karpyn avatar michalcywka avatar mhrynko avatar mykola-yarchuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.