You need to create home
and menu
pages according to the Design in Figma - only [D] Home and [D] Menu [1440] > Coffee in [D] Desktop 1440px group.
The content width of 1440px should not change when resizing the browser window.
- Task should be done in private school's repository
- Create new branch
coffee-house
frommain
. Create a foldercoffee-house
in the created branch. Place your code in this folder. - Complete the task.
- Check if your work meets Layout Requirements
- Evaluate your work yourself according to the provided Criteria for evaluation, taking into account the Specifics of verifying layout for compliance with the layout
- To make the assessment of your work easier, print your self-assessment to the browser console. To do this, include the
index.js
file in your*.html
file, write aconsole.log()
function in it, and in parentheses within quotes, write your self-assessment points. Use the\n
character to insert line breaks.
For example:
console.log('1. First criteria's name: +5\n2.Second criteria's name: +10')
- Deploy your work to gh-pages. For example, create and merge a Pull Request from the
coffee-house
branch intogh-pages
branch. The Pull Request title can be arbitrary. There is no need to describe this Pull Request. - After completing your work, open a Pull Request from the
coffee-house
branch to themain
branch. Give the Pull Request a title based on the task name. Provide a description for the Pull Request following template
There is no need to merge this Pull Request. - Submit the link to the deployment of your work in the RS APP section "Cross-Check Submit"
- After the task deadline, the cross-check process begins. The cross-check lasts for three days. To receive points for the task, you need to review all the submissions sent for review and submit the results of the review in the "Cross-Check Review" section of RS APP.
- Checking validation of pages: +16
- The layout of both pages is valid: to check the validity of the layout, use the service https://validator.w3.org/ . +12 (6 points per page)
Valid markup of checked page corresponds to the message "Document checking completed. No errors or warnings to show." In this case, we assign the full points for the checked page (+6). If there arewarnings
but noerrors
, we assign half of the points (+3) for the checked page - Favicon is added to each page +4
- The layout of both pages is valid: to check the validity of the layout, use the service https://validator.w3.org/ . +12 (6 points per page)
- The layout matches the design +42
<header>
block on each page +6Enjoy
block onhome
page +6Favourites Coffee
block onhome
page +6About
block onhome
page +6Mobile App
block onhome
page +6Menu
block onmenu
page +6<footer>
block on each page +6
- CSS Requirements +10
- For positioning images in
About
block onhome
page and products inMenu
block onmenu
page used Flexbox or Grid Layout +4 - When scaling the browser page (<100%) or increasing the page width (>1440px), the layout of both pages is centered rather than shifted to the side and not stretched across the entire width +4
- The background color Body stretches across the entire width of the page +2
- For positioning images in
- Interactivity +32
- Navigation elements (except
Contacts
) lead to corresponding blocks onhome
page (anchor links) +4 Contacts
in navigation panel links to the<footer>
block on its own page (anchor link) +2- Smooth scrolling with anchor links +2
- When clicking on the Menu buttons in
header
andEnjoy
block onhome
page, it navigates to themenu
page +2 - The Menu button in
header
onmenu
page is non-interactive +2 - When clicking on the Logo in
header
, it navigates to thehome
page +2 - The active Coffee button in
Menu
block ofMenu
page is non-interactive +2 - Each Coffee-card in the
Menu
section of theMenu
page is interactive when hovering over any area of the card +4 - In the
<footer>
block, clicking on the link with phone number (all area including icon) should initiate a phone call +2 - In the
<footer>
block, clicking on the link with the address (all area including icon) should open a new browser tab with Google Maps displaying any location of your choice +2 - Interactivity of links and buttons is implemented according to Figma layout. Interactivity includes not only changing cursor's appearance, for example, using the
cursor: pointer
property, but also the use of other visual effects, such as changing the background color or font color, following the Styleguide in Figma layout +4 - Mandatory requirement for interactivity: smooth change in the appearance of an element on hover and click, without affecting adjacent elements +4
- Navigation elements (except
Maximum score for the task: 100 points
Scores for requirement points are specified in Layout Requirements section
All disputed issues are resolved in favor of the student being assessed.
To make the assessment of your work easier, print self-assessment of your project in the browser console, listing points for each criteria you have completed.
- Layout of the entire design or individual blocks is implemented using images -100
- Using frameworks, libraries, and technologies prohibited in technical requirements -100
- Deviation from the layout of up to 10px horizontally and vertically is allowed, provided that the visual similarity between the layout and the markup is maintained.
- Use the PerfectPixel extension as a tool to check the layout's conformity with the design
- When checking the layout using the PerfectPixel extension, make sure that the extension is set to a scale of 1, while the browser and operating system are set to a scale of 100%.
- If the screen resolution is greater than 1440 pixels, to check for compliance with the layout, it is sufficient to center horizontally the layout or manually align it with the top-left corner guides.
- If the screen resolution is 1440 pixels or less, use the device toolbar in Google Chrome browser in responsive mode for checking.
- Please note that when checking the work in a window with a width of 1440 pixels, the layout may compress by approximately 17 pixels. This happens because part of the layout space is consumed by the vertical scroll (17 pixels - the standard scroll size for Google Chrome).
- Each block and section are reviewed separately, meaning that shortcomings in the previous block do not carry over to next one. When transitioning to the review of the next block, we align it with overlaid layout.
- Regarding text, we check its alignment and spacing relative to the block's boundaries. Text sizes are only checked for height. Deviations in word width and letter spacing when comparing the layout and the markup are not considered errors if the correct font with the specified properties is used
- Coffee-House.Part_1 - Fixed layout task is checked by cross-check.
- After receiving the task but before the deadline, please go to the RS App at https://app.rs.school/. Select Cross-Check: Submit, choose the relevant task from the dropdown menu, and add the link to the deployed version of your created website in the Solution URL field. Then, click Submit button.
- It is recommended to submit the task as early as possible, as soon as the option becomes available in the rs app. After submission, you can continue working on the task until the deadline
- Since the project is being done in a private repository, there is no point in submitting a link to the repository or a pull request - the reviewer won't be able to see it. The private school repository is only visible to you, course admins, and your mentors when they become available
- Make sure that the deployed link you provide opens in incognito mode of the browser
- Instructions for conducting a cross-check: https://docs.rs.school/#/en/cross-check-flow