victormafra / BootstrapCards

:rocket: Responsive Bootstrap template implementing card-based design.

Home Page:http://suyashlakhotia.com/BootstrapCards/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bootstrap Cards

Responsive Bootstrap template implementing card-based design. Demo here.

Screenshot

How to Install

Default Bootstrap Cards

  1. Download this repo here.
  2. Navigate to the dist/ folder on Terminal.
  3. Install all the Bower dependencies using bower install.
  4. Copy the contents of dist/ to your project folder.

Customising Bootstrap Cards

Setup

  1. Download this repo here.
  2. Install Gulp globally using npm install -g gulp-cli.
  3. Install the Node.js modules needed in this project using npm install.
  4. Navigate to dist/ and install all the Bower dependencies using bower install.
  5. (Optional) This project uses HTML-CSS-JS Prettify for Sublime Text to maintain a consistent coding style. The custom options are defined in .jsbeautifyrc.

Writing Code

  1. Navigate to this repo and run gulp. This will serve the files in dist/ through a local web server and take care of JS linting, Sass compilation and refreshing the browser when any changes are made.
  2. To change the CSS, edit the Sass code inside src/sass/.
  3. To change the JS, edit the JS code inside src/js/.

Contents of Source Folder & Overview of Gulp Tasks

BootstrapCards/
└── src/
    ├── fonts/
    ├── img/
    ├── js/
    ├── sass/
    │   ├── layout/
    │   ├── pages/
    │   ├── utils/
    │   └── main.scss
    ├── blog-post.html
    ├── blog.html
    └── index.html
  • src/fonts/: Contains all custom fonts. Gulp copies them over to dist/fonts/.
  • src/img/: Contains all images. Gulp copies them over to dist/img/.
  • src/js/: Contains all custom JavaScript files. Gulp lints them and then copies them over to dist/js/.
  • src/sass/: Contains all custom styles. Gulp compiles main.scss into dist/css/cards.css.
  • src/*.html: Gulp lints the Bootstrap styles and then copies the files over to dist/.
Sass Files
  • sass/layout/: Contains styles for the cards, navbar, jumbotrons & footer.
  • sass/pages/: Contains page-specific styles.
  • sass/utils/: Contains globally used variables, mixins & base styles.
  • sass/main.scss: Imports all the necessary Sass files.

Bower Components

Listed below are all the Bower components used in Bootstrap Cards. The ones in bold are necessary while the others are optional.

About

:rocket: Responsive Bootstrap template implementing card-based design.

http://suyashlakhotia.com/BootstrapCards/

License:MIT License


Languages

Language:HTML 67.2%Language:CSS 26.7%Language:JavaScript 6.1%