Week 9 - Responsive Design Review

Monday

  1. What is a CSS rule?
  2. How to import other CSS files into your CSS file How to link a stylesheet into an HTML page
  3. Explain how CSS rules are applied based on their order and specificity, and be able to calculate the specificity of CSS rules and determine which rule override the properties of another.

  4. Write “combinators” to create compound selector statements to target specific elements
  5. Explain and apply pseudo selectors for specific elements in specific states (i.e. :hover)
  6. Explain and apply the ::before and ::after pseudo elements, & Use the content CSS property to define the content of an element:
  7. What are these ?!
  8. Colors expressed as names, hexadecimal RGB values, and decimal RGB values
  9. Everything about borders, Shadows, & Opacity
  10. Covering an element with a background image css #picture-here { background-image: url(https://appacademy.github.io/styleguide/assets/logo/logo-emblem-black-1000.png); background-size: cover; height: 100px; width: 100px; }

  11. Explain why using Web fonts helps with consistent experience across viewing devices: -Your explanation here.`
  12. Explain absolute and relative length units in CSS

Wednesday

  1. display property:
  2. Identify the different types of media that a media query can target
  3. Know the Box Model
Box Model
Box Model
  1. Describe the following
  2. Identify elements rendered with specific padding and margin settings

  3. Apply padding and margins to HTML elements to achieve a desired layout

  4. Apply positioning settings to elements (fixed, relative, and absolute) to HTML elements to achieve a desired layout

  5. Identify which HTML elements have a default “inline” display value
  6. Identify which HTML elements have a default “block” display value
  7. Describe and use z-index positioning of elements
  8. Explain how flexible box layout lays out elements
  9. For the following LOs please revisit your project work and project solutions (i.e. AA Times, Wednesday EOD demo, etc.) for how you’ve done the following:

  10. Explain how grid layout lays out elements
  11. Explain and use the shorthand versions of grid-column and grid-row to define how an element will span a grid layout
  12. Explain and use the “fr” unit of measure

Thursday

  1. Describe what Block, Element, and Modifier means in BEM
  2. Identify CSS class names that follow the BEM principle.
  3. Describe and use the transition property show animated changes due to class and pseudo-class CSS rule application
  4. Describe and use the overflow, overflow-x, and overflow-y properties to effect clipping and scrolling on elements

Tuesday - AJAX

  1. Explain what an AJAX request is
  2. Identifying the advantages of using an AJAX request.
  3. Identify what the acronym AJAX means and how it relates to modern Web programming
  4. Describe the different steps in an AJAX request/response cycle
  5. Fully use the fetch API to make dynamic Web pages without refreshing the page

// Using async/await document.querySelector(‘#downvote’).addEventListener(‘click’, async () => { // Notice the async keyword on the callback definition! // We create a standard try/catch block try { // We await each asynchronous function call const resJSON = await fetch(‘http://localhost:3000/kitten/downvote’, { method: ‘PATCH’ }); const resObj = await handleResponse(resJSON); // updateImageScore is synchronous, so we do not have to await its response updateImageScore(resObj); } catch (e) { handleError(e) } });

// Functions used above, for reference const handleResponse = (response) => { stopLoader(); clearError();

if (!response.ok) {
    throw response;
}
return response.json();

};

const handleError = (error) => { if (error.json) { error.json().then((errorJSON) => { document.querySelector(‘.error’).innerHTML = Error occured: ${errorJSON.message}; }); } else { console.error(error); alert(‘Something went wrong. Please try again!’); } };

const updateImageScore = (data) => { const { score } = data; document.querySelector(‘.score’).innerHTML = score; }; ```