Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bootstrap and Design Hacks by Omar Qunsul

Bootstrap and Design Hacks by Omar Qunsul

Omar got into some of the ways to hack good design using tools like Bootstrap to easily beautify your applications

Rails Girls Munich

December 02, 2013
Tweet

More Decks by Rails Girls Munich

Other Decks in Technology

Transcript

  1. <head> <title>Railsgirls</title> <%= stylesheet_link_tag "application", media: "all", "data- turbolinks-track" =>

    true %> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap. min.css" rel="stylesheet"> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> </head> app/views/layouts/application.html.erb First include Bootstrap 3 in your application
  2. <body> <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header">

    <a class="navbar-brand" href="/">Project</a> </div> <div class="navbar-collapse collapse"> <a class="navbar-brand" href="/ideas">Ideas</a> </div> </div> </div> <div class="container"> <%= yield %> </div> app/views/layouts/application.html.erb Navigation
  3. <%= link_to 'New Idea', new_idea_path, :class => "btn btn-primary btn-lg"

    %> app/views/ideas/index.html.erb Buttons should look like ........well buttons !
  4. <div class="field form-group"> <%= f.label :name, :class => "control-label col-sm-2"

    %> <div class="col-sm-10"> <%= f.text_field :name , :class => "form-control", :placeholder => "Write the idea name" %> </div> </div> app/views/ideas/_form.html.erb Each form element
  5. <head> <title>Railsgirls</title> <%= stylesheet_link_tag "application", media: "all", "data- turbolinks-track" =>

    true %> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap. min.css" rel="stylesheet"> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2 /css/bootstrap-theme.min.css"> <%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= csrf_meta_tags %> </head> app/views/layouts/application.html.erb Themes