Giter Site home page Giter Site logo

cunytechprep / lab-bootstrap-5.2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 66.0 4.26 MB

Learn to use the Bootstrap 5.2 grid and styles to build a responsive cookie store web page

Home Page: https://cunytechprep.github.io/lab-bootstrap-5.2/

HTML 98.84% CSS 1.16%

lab-bootstrap-5.2's Introduction

Bootstrap 5.2 Lab

Build a responsive cookie store web page

In this lab, you are given an index.html file that contains our web page's content, and we will be using Bootstrap to build a responsive layout and style the page.

NOTE 1: the goal of this lab is familiarity with bootstrap and grid systems. Your page does NOT have to be a pixel-perfect recreation of the screenshots provided. Feel free to use your own creativity for colors, fonts, and other undefined parts of the assignment.

NOTE 2: You can add additional <div> tags and other tags as necessary, but don't change the order of the original content tags. Reordering those tags would impact the accessibility of the content.

Screenshot of the cookie store on a large-screen

Part 1. Add Bootstrap

  1. Fork this repository
  2. Clone your fork of the project
  3. Open the index.html file in your code editor
  4. Open the index.html file in your web browser
  5. Link the css/styles.css file in the <head> section of index.html
    • We will use this css file to add our own custom styles
  6. Link the Bootstrap CSS file in the <head> section of index.html
  7. Reload index.html in your web browser

After reloading the page you should notice subtle changes to the page like a different font, margins, and spacing on the page. This lets us know that Bootstrap was added properly.

Part 2. Responsive layouts

  1. Apply the bootstrap grid classes to the cookies on the page in the <main> section. The resulting responsive layout should display as follows:

  2. Apply styling and classes so that the title text is displayed centered within the <header> section. Below are some hints on how to do this:

    • Use custom styles for this section
    • Give the header section a fixed height, I used 400px
    • Read about using images with a cover background-size
    • Read about how to center a div block
    • Choose a background image of your own or use the image provided
    • There are multiple ways to solve this section
  3. Style the "About us" section and the <footer> section of the page to display similar to the screenshots

    • Use a grid for the "About us" section
    • style the footer as you like

Part 3. Reordering grid columns visually

  1. Open the alternating.html page in your code editor

  2. Open the alternating.html page in your web browser

  3. Using only bootstrap grid styles make the cookie products alternate as shown and described in the following screenshots:

IMPORTANT:

  • Don't change the order of the 3 main cookie html tags, the <h3>, followed by the <p>, and then the <img> tags. Remember, we want to keep semantic order.
  • You can add <div>'s and bootstrap classes as needed, you can wrap the tags in div's as needed, as long as you don't change the order.

Submitting your work

  • Add and commit your code to your forked repo
  • Make a pull request back to this repo
  • Fill out the template repo noting which class section you're in

Additional Resources

Credits

lab-bootstrap-5.2's People

Contributors

medgardo avatar

Stargazers

 avatar

Watchers

 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.