Giter Club home page Giter Club logo

html-css-layout-bootstrap-sass's Introduction

General Assembly Logo

CSS: Layout with Bootstrap

Prequisites

Objectives

By the end of this, developers should be able to:

  • Create mobile-first, responsive site layouts using bootstrap.
  • Reference bootstrap documentation.
  • Add a modal to a front end project.

Preparation

  1. Fork and clone this repository.
  2. Install dependencies with npm install.

Twitter Bootstrap

Bootstrap is a free and open-source collection of tools for creating websites and web applications. It contains HTML- and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions. It aims to ease the development of dynamic websites and web applications.

"Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web." - bootstrap.com

Bootstrap is the most-starred project on GitHub, with over 90K stars and more than 38K forks.

Bootstrap Wiki

Bootstrap is built on a grid like design that consists of rows and columns, like a table. In each row, Bootstrap utilizes a 12 column system.

Bootstrap Grid Example

Lab: Review Sites Made With Bootstrap

In squads closely inspect the following site list. Keeping these questions in mind please write down your thoughts and we will discuss them as a class.

  1. How are the the pages similar?

  2. How is the HTML similar among the pages?

  3. As you interact with the site how does the DOM change (if at all)?

  4. How are elements on the pages horizontally arranged?

  5. Notice any similarities among bootstrap pages in general?

Bootstrap Documentation

For components and jQuery plugins always reference the Bootstrap docs.

Bootstrap Documentation

Do not use premade bootstrap templates. They often have alternate versions of jQuery or Bootstrap which are different than the versions we will be using to practice.

Lab: 12-Column Grid

Lets get some firsthand experience writing Boootstrap it. Using the documentation we discussed earlier write a simple grid in the index.html file located in this repo. Make use of col-xs-#, col-sm-#, col-md-#, and col-lg-#. Try making an evenly spaced 3x3 grid.

  • Place your column divs within a row div.
  • Place your row divs within a container div
  • Experiment with various viewport sizes

Lab: Modals and More

Follow along as I add a bootstrap modal to our current sandbox page.

On your own:

  • Referencing the Bootstrap documentation add an input-group to your modal.
  • Using your knowledge of jQuery write a function so that when "save changes" is clicked the input in the input field is console logged in Chrome.
  • Refrencing the Bootstrap documentation add a navbar to your page.
  • Move the button that opens up the modal to the navbar.

Useful Resources

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

html-css-layout-bootstrap-sass's People

Contributors

bengitscode avatar berziiii avatar jcornmanhomonoff avatar jrhorn424 avatar micfin avatar payne-chris-r avatar realweeks avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

html-css-layout-bootstrap-sass's Issues

Add code along for Golden Layout

It may be worthwhile to change the Lab: 12-Column Grid to making the Golden Layout. Start off with a code along that focuses on the mobile-first mentality of Bootstrap. Code together a stacked layout for mobile & then have the developers make the Golden Layout as the screen width becomes larger.

remove objective

Since mixins are no longer being taught.

Maintain semantic HTML markup using Sass mixins provided by bootstrap-sass.

Reflow this paragraph in README

## Bootstrap Documentation

For components and jQuery plugins always reference the Bootstrap docs.

 [Bootstrap Documentation](http://getbootstrap.com/)

+Do not use premade bootstrap templates.
+They often have alternate versions of jQuery or Bootstrap which are different
+than the versions we will be using to practice.

See this discussion #23 (comment)

Use `getFormFields`

#33 (comment)

#33 (review)

@Jcornmanhomonoff, please mention during LM01 delivery that we should not use jQuery to select input values manually. If they ask what we use instead, remind them of getFormFields from the jquery-ajax* lessons, and let them know that we'll have more practice with it in the future.

Bootstrap does not have a `col-xl-3` we would need to write it ourselves.

Suggesting change from:

Lets get some firsthand experience writing Boootstrap it. Using the documentation we discussed earlier write a simple grid in the index.html file located in this repo. Make use of col-xs, sm, md, lg and xl.

to removing xl, adding code style, and being more specific for how to use col-xs-# to match bootstrap documentation.

Lets get some firsthand experience writing Boootstrap it. Using the documentation we discussed earlier write a simple grid in the index.html file located in this repo. Make use of col-xs-#, col-sm-#, col-md-#, and col-lg-#.

Remove modals

@jrhorn424 and I are in violent agreement that we should not teach modals because they cause way more problems than they are worth.
Refactor to remove use of modals.

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.