rails_apps_pages 0.6.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.textile +26 -0
  3. data/README.textile +4 -2
  4. data/lib/generators/theme/bare/bare_generator.rb +1 -1
  5. data/lib/generators/theme/bare/templates/{index.html.erb → index.html} +0 -0
  6. data/lib/generators/theme/blog_home/blog_home_generator.rb +18 -0
  7. data/lib/generators/theme/blog_home/templates/blog-home.css +9 -0
  8. data/lib/generators/theme/blog_home/templates/blogpost.html +170 -0
  9. data/lib/generators/theme/blog_home/templates/index.html +150 -0
  10. data/lib/generators/theme/business_casual/business_casual_generator.rb +24 -0
  11. data/lib/generators/theme/business_casual/templates/_navigation.html.erb +24 -0
  12. data/lib/generators/theme/business_casual/templates/_navigation_links.html.erb +13 -0
  13. data/lib/generators/theme/business_casual/templates/about.html +61 -0
  14. data/lib/generators/theme/business_casual/templates/application.html.erb +19 -0
  15. data/lib/generators/theme/business_casual/templates/blog.html +59 -0
  16. data/lib/generators/theme/business_casual/templates/business-casual.css +192 -0
  17. data/lib/generators/theme/business_casual/templates/contact.html +76 -0
  18. data/lib/generators/theme/business_casual/templates/footer.html +10 -0
  19. data/lib/generators/theme/business_casual/templates/index.html +95 -0
  20. data/lib/generators/theme/business_frontpage/business_frontpage_generator.rb +17 -0
  21. data/lib/generators/theme/business_frontpage/templates/business-frontpage.css +31 -0
  22. data/lib/generators/theme/business_frontpage/templates/index.html +78 -0
  23. data/lib/generators/theme/clean_blog/clean_blog_generator.rb +24 -0
  24. data/lib/generators/theme/clean_blog/templates/_navigation.html.erb +24 -0
  25. data/lib/generators/theme/clean_blog/templates/_navigation_links.html.erb +13 -0
  26. data/lib/generators/theme/clean_blog/templates/about.html +27 -0
  27. data/lib/generators/theme/clean_blog/templates/application.html.erb +23 -0
  28. data/lib/generators/theme/clean_blog/templates/clean-blog.css +395 -0
  29. data/lib/generators/theme/clean_blog/templates/contact.html +64 -0
  30. data/lib/generators/theme/clean_blog/templates/footer.html +38 -0
  31. data/lib/generators/theme/clean_blog/templates/index.html +74 -0
  32. data/lib/generators/theme/clean_blog/templates/post.html +59 -0
  33. data/lib/generators/theme/four_col_portfolio/four_col_portfolio_generator.rb +17 -0
  34. data/lib/generators/theme/four_col_portfolio/templates/4-col-portfolio.css +13 -0
  35. data/lib/generators/theme/four_col_portfolio/templates/index.html +134 -0
  36. data/lib/generators/theme/full_width_pics/full_width_pics_generator.rb +18 -0
  37. data/lib/generators/theme/full_width_pics/templates/application.html.erb +18 -0
  38. data/lib/generators/theme/full_width_pics/templates/full-width-pics.css +60 -0
  39. data/lib/generators/theme/full_width_pics/templates/index.html +50 -0
  40. data/lib/generators/theme/heroic_features/heroic_features_generator.rb +17 -0
  41. data/lib/generators/theme/heroic_features/templates/heroic-features.css +17 -0
  42. data/lib/generators/theme/heroic_features/templates/index.html +92 -0
  43. data/lib/generators/theme/landing_page/landing_page_generator.rb +18 -0
  44. data/lib/generators/theme/landing_page/templates/application.html.erb +21 -0
  45. data/lib/generators/theme/landing_page/templates/index.html +189 -0
  46. data/lib/generators/theme/landing_page/templates/landing-page.css +170 -0
  47. data/lib/generators/theme/modern_business/modern_business_generator.rb +103 -0
  48. data/lib/generators/theme/modern_business/templates/404.html +98 -0
  49. data/lib/generators/theme/modern_business/templates/about.html +182 -0
  50. data/lib/generators/theme/modern_business/templates/application.html.erb +21 -0
  51. data/lib/generators/theme/modern_business/templates/blog-home-1.html +156 -0
  52. data/lib/generators/theme/modern_business/templates/blog-home-2.html +111 -0
  53. data/lib/generators/theme/modern_business/templates/blog-post.html +166 -0
  54. data/lib/generators/theme/modern_business/templates/contact.html +97 -0
  55. data/lib/generators/theme/modern_business/templates/faq.html +148 -0
  56. data/lib/generators/theme/modern_business/templates/footer.html +12 -0
  57. data/lib/generators/theme/modern_business/templates/full-width.html +28 -0
  58. data/lib/generators/theme/modern_business/templates/index.html +173 -0
  59. data/lib/generators/theme/modern_business/templates/modern-business.css +93 -0
  60. data/lib/generators/theme/modern_business/templates/portfolio-1-col.html +141 -0
  61. data/lib/generators/theme/modern_business/templates/portfolio-2-col.html +121 -0
  62. data/lib/generators/theme/modern_business/templates/portfolio-3-col.html +147 -0
  63. data/lib/generators/theme/modern_business/templates/portfolio-4-col.html +127 -0
  64. data/lib/generators/theme/modern_business/templates/portfolio-item.html +104 -0
  65. data/lib/generators/theme/modern_business/templates/pricing.html +85 -0
  66. data/lib/generators/theme/modern_business/templates/services.html +263 -0
  67. data/lib/generators/theme/modern_business/templates/sidebar.html +52 -0
  68. data/lib/generators/theme/one_col_portfolio/one_col_portfolio_generator.rb +17 -0
  69. data/lib/generators/theme/one_col_portfolio/templates/1-col-portfolio.css +9 -0
  70. data/lib/generators/theme/one_col_portfolio/templates/index.html +149 -0
  71. data/lib/generators/theme/one_page_wonder/one_page_wonder_generator.rb +18 -0
  72. data/lib/generators/theme/one_page_wonder/templates/application.html.erb +18 -0
  73. data/lib/generators/theme/one_page_wonder/templates/index.html +91 -0
  74. data/lib/generators/theme/one_page_wonder/templates/one-page-wonder.css +174 -0
  75. data/lib/generators/theme/portfolio_item/portfolio_item_generator.rb +17 -0
  76. data/lib/generators/theme/portfolio_item/templates/index.html +83 -0
  77. data/lib/generators/theme/portfolio_item/templates/portfolio-item.css +13 -0
  78. data/lib/generators/theme/round_about/round_about_generator.rb +17 -0
  79. data/lib/generators/theme/round_about/templates/index.html +77 -0
  80. data/lib/generators/theme/round_about/templates/round-about.css +13 -0
  81. data/lib/generators/theme/shop_homepage/shop_homepage_generator.rb +17 -0
  82. data/lib/generators/theme/shop_homepage/templates/index.html +191 -0
  83. data/lib/generators/theme/shop_homepage/templates/shop-homepage.css +50 -0
  84. data/lib/generators/theme/shop_item/shop_item_generator.rb +17 -0
  85. data/lib/generators/theme/shop_item/templates/index.html +117 -0
  86. data/lib/generators/theme/shop_item/templates/shop-item.css +28 -0
  87. data/lib/generators/theme/simple_sidebar/simple_sidebar_generator.rb +17 -0
  88. data/lib/generators/theme/simple_sidebar/templates/index.html +60 -0
  89. data/lib/generators/theme/simple_sidebar/templates/simple-sidebar.css +125 -0
  90. data/lib/generators/theme/small_business/small_business_generator.rb +17 -0
  91. data/lib/generators/theme/small_business/templates/index.html +66 -0
  92. data/lib/generators/theme/small_business/templates/small-business.css +9 -0
  93. data/lib/generators/theme/stylish_portfolio/stylish_portfolio_generator.rb +18 -0
  94. data/lib/generators/theme/stylish_portfolio/templates/application.html.erb +21 -0
  95. data/lib/generators/theme/stylish_portfolio/templates/index.html +261 -0
  96. data/lib/generators/theme/stylish_portfolio/templates/stylish-portfolio.css +239 -0
  97. data/lib/generators/theme/the_big_picture/templates/index.html +11 -0
  98. data/lib/generators/theme/the_big_picture/templates/the-big-picture.css +19 -0
  99. data/lib/generators/theme/the_big_picture/the_big_picture_generator.rb +19 -0
  100. data/lib/generators/theme/three_col_portfolio/templates/3-col-portfolio.css +13 -0
  101. data/lib/generators/theme/three_col_portfolio/templates/index.html +155 -0
  102. data/lib/generators/theme/three_col_portfolio/three_col_portfolio_generator.rb +17 -0
  103. data/lib/generators/theme/thumbnail_gallery/templates/index.html +84 -0
  104. data/lib/generators/theme/thumbnail_gallery/templates/thumbnail-gallery.css +13 -0
  105. data/lib/generators/theme/thumbnail_gallery/thumbnail_gallery_generator.rb +17 -0
  106. data/lib/generators/theme/two_col_portfolio/templates/2-col-portfolio.css +13 -0
  107. data/lib/generators/theme/two_col_portfolio/templates/index.html +129 -0
  108. data/lib/generators/theme/two_col_portfolio/two_col_portfolio_generator.rb +17 -0
  109. data/lib/rails_apps_pages/version.rb +1 -1
  110. metadata +107 -4
@@ -0,0 +1,10 @@
1
+ <!-- Footer -->
2
+ <footer>
3
+ <div class="container">
4
+ <div class="row">
5
+ <div class="col-lg-12 text-center">
6
+ <p>Copyright &copy; Your Website 2014</p>
7
+ </div>
8
+ </div>
9
+ </div>
10
+ </footer>
@@ -0,0 +1,95 @@
1
+ <div class="brand">Business Casual</div>
2
+ <div class="address-bar">3481 Melrose Place | Beverly Hills, CA 90210 | 123.456.7890</div>
3
+
4
+ <%= render 'layouts/navigation' %>
5
+
6
+ <div class="container">
7
+
8
+ <div class="row">
9
+ <div class="box">
10
+ <div class="col-lg-12 text-center">
11
+ <div id="carousel-example-generic" class="carousel slide">
12
+ <!-- Indicators -->
13
+ <ol class="carousel-indicators hidden-xs">
14
+ <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
15
+ <li data-target="#carousel-example-generic" data-slide-to="1"></li>
16
+ <li data-target="#carousel-example-generic" data-slide-to="2"></li>
17
+ </ol>
18
+
19
+ <!-- Wrapper for slides -->
20
+ <div class="carousel-inner">
21
+ <div class="item active">
22
+ <img class="img-responsive img-full" src="http://ironsummitmedia.github.io/startbootstrap-business-casual/img/slide-1.jpg" alt="">
23
+ </div>
24
+ <div class="item">
25
+ <img class="img-responsive img-full" src="http://ironsummitmedia.github.io/startbootstrap-business-casual/img/slide-2.jpg" alt="">
26
+ </div>
27
+ <div class="item">
28
+ <img class="img-responsive img-full" src="http://ironsummitmedia.github.io/startbootstrap-business-casual/img/slide-3.jpg" alt="">
29
+ </div>
30
+ </div>
31
+
32
+ <!-- Controls -->
33
+ <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
34
+ <span class="icon-prev"></span>
35
+ </a>
36
+ <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
37
+ <span class="icon-next"></span>
38
+ </a>
39
+ </div>
40
+ <h2 class="brand-before">
41
+ <small>Welcome to</small>
42
+ </h2>
43
+ <h1 class="brand-name">Business Casual</h1>
44
+ <hr class="tagline-divider">
45
+ <h2>
46
+ <small>By
47
+ <strong>Start Bootstrap</strong>
48
+ </small>
49
+ </h2>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="row">
55
+ <div class="box">
56
+ <div class="col-lg-12">
57
+ <hr>
58
+ <h2 class="intro-text text-center">Build a website
59
+ <strong>worth visiting</strong>
60
+ </h2>
61
+ <hr>
62
+ <img class="img-responsive img-border img-left" src="http://ironsummitmedia.github.io/startbootstrap-business-casual/img/intro-pic.jpg" alt="">
63
+ <hr class="visible-xs">
64
+ <p>The boxes used in this template are nested inbetween a normal Bootstrap row and the start of your column layout. The boxes will be full-width boxes, so if you want to make them smaller then you will need to customize.</p>
65
+ <p>A huge thanks to <a href="http://join.deathtothestockphoto.com/" target="_blank">Death to the Stock Photo</a> for allowing us to use the beautiful photos that make this template really come to life. When using this template, make sure your photos are decent. Also make sure that the file size on your photos is kept to a minumum to keep load times to a minimum.</p>
66
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc placerat diam quis nisl vestibulum dignissim. In hac habitasse platea dictumst. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
67
+ </div>
68
+ </div>
69
+ </div>
70
+
71
+ <div class="row">
72
+ <div class="box">
73
+ <div class="col-lg-12">
74
+ <hr>
75
+ <h2 class="intro-text text-center">Beautiful boxes
76
+ <strong>to showcase your content</strong>
77
+ </h2>
78
+ <hr>
79
+ <p>Use as many boxes as you like, and put anything you want in them! They are great for just about anything, the sky's the limit!</p>
80
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc placerat diam quis nisl vestibulum dignissim. In hac habitasse platea dictumst. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ </div>
86
+ <!-- /.container -->
87
+
88
+ <!-- Script to Activate the Carousel -->
89
+ <script>
90
+ $(document).on('ready', function () {
91
+ $('.carousel').carousel({
92
+ interval: 1000 //changes the speed
93
+ })
94
+ });
95
+ </script>
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+
3
+ module Theme
4
+ module Generators
5
+ class BusinessFrontpageGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "A Bootstrap HTML starter template (from startbootstrap.com)"
9
+
10
+ def create_page
11
+ copy_file 'index.html', 'app/views/visitors/index.html.erb'
12
+ copy_file 'business-frontpage.css', 'app/assets/stylesheets/business-frontpage.css'
13
+ end
14
+
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Start Bootstrap - Business Frontpage HTML Template (http://startbootstrap.com)
3
+ * Code licensed under the Apache License v2.0.
4
+ * For details, see http://www.apache.org/licenses/LICENSE-2.0.
5
+ */
6
+
7
+ /* Header Image Background - Change the URL below to your image path (example: ../images/background.jpg) */
8
+
9
+ .business-header {
10
+ height: 400px;
11
+ background: url('http://placehold.it/1920x400') center center no-repeat scroll;
12
+ -webkit-background-size: cover;
13
+ -moz-background-size: cover;
14
+ background-size: cover;
15
+ -o-background-size: cover;
16
+ }
17
+
18
+ /* Customize the text color and shadow color and to optimize text legibility. */
19
+
20
+ .tagline {
21
+ text-shadow: 0 0 10px #000;
22
+ color: #fff;
23
+ }
24
+
25
+ .img-center {
26
+ margin: 0 auto;
27
+ }
28
+
29
+ footer {
30
+ margin: 50px 0;
31
+ }
@@ -0,0 +1,78 @@
1
+ <!-- Image Background Page Header -->
2
+ <!-- Note: The background image is set within the business-casual.css file. -->
3
+ <header class="business-header">
4
+ <div class="container">
5
+ <div class="row">
6
+ <div class="col-lg-12">
7
+ <h1 class="tagline">Business Name or Tagline</h1>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ </header>
12
+
13
+ <!-- Page Content -->
14
+ <div class="container">
15
+
16
+ <hr>
17
+
18
+ <div class="row">
19
+ <div class="col-sm-8">
20
+ <h2>What We Do</h2>
21
+ <p>Introduce the visitor to the business using clear, informative text. Use well-targeted keywords within your sentences to make sure search engines can find the business.</p>
22
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et molestiae similique eligendi reiciendis sunt distinctio odit? Quia, neque, ipsa, adipisci quisquam ullam deserunt accusantium illo iste exercitationem nemo voluptates asperiores.</p>
23
+ <p>
24
+ <a class="btn btn-default btn-lg" href="#">Call to Action &raquo;</a>
25
+ </p>
26
+ </div>
27
+ <div class="col-sm-4">
28
+ <h2>Contact Us</h2>
29
+ <address>
30
+ <strong>Start Bootstrap</strong>
31
+ <br>3481 Melrose Place
32
+ <br>Beverly Hills, CA 90210
33
+ <br>
34
+ </address>
35
+ <address>
36
+ <abbr title="Phone">P:</abbr>(123) 456-7890
37
+ <br>
38
+ <abbr title="Email">E:</abbr> <a href="mailto:#">name@example.com</a>
39
+ </address>
40
+ </div>
41
+ </div>
42
+ <!-- /.row -->
43
+
44
+ <hr>
45
+
46
+ <div class="row">
47
+ <div class="col-sm-4">
48
+ <img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
49
+ <h2>Marketing Box #1</h2>
50
+ <p>These marketing boxes are a great place to put some information. These can contain summaries of what the company does, promotional information, or anything else that is relevant to the company. These will usually be below-the-fold.</p>
51
+ </div>
52
+ <div class="col-sm-4">
53
+ <img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
54
+ <h2>Marketing Box #2</h2>
55
+ <p>The images are set to be circular and responsive. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
56
+ </div>
57
+ <div class="col-sm-4">
58
+ <img class="img-circle img-responsive img-center" src="http://placehold.it/300x300" alt="">
59
+ <h2>Marketing Box #3</h2>
60
+ <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
61
+ </div>
62
+ </div>
63
+ <!-- /.row -->
64
+
65
+ <hr>
66
+
67
+ <!-- Footer -->
68
+ <footer>
69
+ <div class="row">
70
+ <div class="col-lg-12">
71
+ <p>Copyright &copy; Your Website 2014</p>
72
+ </div>
73
+ </div>
74
+ <!-- /.row -->
75
+ </footer>
76
+
77
+ </div>
78
+ <!-- /.container -->
@@ -0,0 +1,24 @@
1
+ require 'rails/generators'
2
+
3
+ module Theme
4
+ module Generators
5
+ class CleanBlogGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "A Bootstrap HTML starter template (from startbootstrap.com)"
9
+
10
+ def create_page
11
+ copy_file 'application.html.erb', 'app/views/layouts/application.html.erb'
12
+ copy_file 'footer.html', 'app/views/layouts/_footer.html.erb'
13
+ copy_file '_navigation.html.erb', 'app/views/layouts/_navigation.html.erb'
14
+ copy_file '_navigation_links.html.erb', 'app/views/layouts/_navigation_links.html.erb'
15
+ copy_file 'index.html', 'app/views/visitors/index.html.erb'
16
+ copy_file 'about.html', 'app/views/pages/about.html.erb'
17
+ copy_file 'contact.html', 'app/views/pages/contact.html.erb'
18
+ copy_file 'post.html', 'app/views/pages/post.html.erb'
19
+ copy_file 'clean-blog.css', 'app/assets/stylesheets/clean-blog.css'
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ <!-- Navigation -->
2
+ <nav class="navbar navbar-default navbar-custom navbar-fixed-top">
3
+ <div class="container-fluid">
4
+ <!-- Brand and toggle get grouped for better mobile display -->
5
+ <div class="navbar-header page-scroll">
6
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
7
+ <span class="sr-only">Toggle navigation</span>
8
+ <span class="icon-bar"></span>
9
+ <span class="icon-bar"></span>
10
+ <span class="icon-bar"></span>
11
+ </button>
12
+ <%= link_to 'Start Bootstrap', root_path, class: 'navbar-brand' %>
13
+ </div>
14
+
15
+ <!-- Collect the nav links, forms, and other content for toggling -->
16
+ <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17
+ <ul class="nav navbar-nav navbar-right">
18
+ <%= render 'layouts/navigation_links' %>
19
+ </ul>
20
+ </div>
21
+ <!-- /.navbar-collapse -->
22
+ </div>
23
+ <!-- /.container -->
24
+ </nav>
@@ -0,0 +1,13 @@
1
+ <%# add navigation links to this file %>
2
+ <li>
3
+ <%= link_to 'Home', root_path %>
4
+ </li>
5
+ <li>
6
+ <%= link_to 'About', page_path('about') %>
7
+ </li>
8
+ <li>
9
+ <%= link_to 'Sample Post', page_path('post') %>
10
+ </li>
11
+ <li>
12
+ <%= link_to 'Contact', page_path('contact') %>
13
+ </li>
@@ -0,0 +1,27 @@
1
+
2
+ <!-- Page Header -->
3
+ <!-- Set your background image for this header on the line below. -->
4
+ <header class="intro-header" style="background-image: url('http://ironsummitmedia.github.io/startbootstrap-clean-blog/img/about-bg.jpg')">
5
+ <div class="container">
6
+ <div class="row">
7
+ <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
8
+ <div class="page-heading">
9
+ <h1>About Me</h1>
10
+ <hr class="small">
11
+ <span class="subheading">This is what I do.</span>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ </header>
17
+
18
+ <!-- Main Content -->
19
+ <div class="container">
20
+ <div class="row">
21
+ <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
22
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe nostrum ullam eveniet pariatur voluptates odit, fuga atque ea nobis sit soluta odio, adipisci quas excepturi maxime quae totam ducimus consectetur?</p>
23
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eius praesentium recusandae illo eaque architecto error, repellendus iusto reprehenderit, doloribus, minus sunt. Numquam at quae voluptatum in officia voluptas voluptatibus, minus!</p>
24
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nostrum molestiae debitis nobis, quod sapiente qui voluptatum, placeat magni repudiandae accusantium fugit quas labore non rerum possimus, corrupti enim modi! Et.</p>
25
+ </div>
26
+ </div>
27
+ </div>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <title><%= content_for?(:title) ? yield(:title) : "My Application" %></title>
6
+ <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "My Application" %>">
7
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
8
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
9
+ <%= csrf_meta_tags %>
10
+ <!-- Custom Fonts -->
11
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
12
+ <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
13
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
14
+ </head>
15
+ <body>
16
+ <header>
17
+ <%= render 'layouts/navigation' %>
18
+ </header>
19
+ <%= render 'layouts/messages' %>
20
+ <%= yield %>
21
+ <%= render 'layouts/footer' %>
22
+ </body>
23
+ </html>
@@ -0,0 +1,395 @@
1
+ /*!
2
+ * Clean Blog v1.0.0 (http://startbootstrap.com)
3
+ * Copyright 2014 Start Bootstrap
4
+ * Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE)
5
+ */
6
+
7
+ body {
8
+ font-family: 'Lora', 'Times New Roman', serif;
9
+ font-size: 20px;
10
+ color: #404040;
11
+ }
12
+ p {
13
+ line-height: 1.5;
14
+ margin: 30px 0;
15
+ }
16
+ p a {
17
+ text-decoration: underline;
18
+ }
19
+ h1,
20
+ h2,
21
+ h3,
22
+ h4,
23
+ h5,
24
+ h6 {
25
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
26
+ font-weight: 800;
27
+ }
28
+ a {
29
+ color: #404040;
30
+ }
31
+ a:hover,
32
+ a:focus {
33
+ color: #0085a1;
34
+ }
35
+ a img:hover,
36
+ a img:focus {
37
+ cursor: zoom-in;
38
+ }
39
+ blockquote {
40
+ color: #808080;
41
+ font-style: italic;
42
+ }
43
+ hr.small {
44
+ max-width: 100px;
45
+ margin: 15px auto;
46
+ border-width: 4px;
47
+ border-color: white;
48
+ }
49
+ .navbar-custom {
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+ width: 100%;
54
+ z-index: 3;
55
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
56
+ }
57
+ .navbar-custom .navbar-brand {
58
+ font-weight: 800;
59
+ }
60
+ .navbar-custom .nav li a {
61
+ text-transform: uppercase;
62
+ font-size: 12px;
63
+ font-weight: 800;
64
+ letter-spacing: 1px;
65
+ }
66
+ @media only screen and (min-width: 768px) {
67
+ .navbar-custom {
68
+ background: transparent;
69
+ border-bottom: 1px solid transparent;
70
+ }
71
+ .navbar-custom .navbar-brand {
72
+ color: white;
73
+ padding: 20px;
74
+ }
75
+ .navbar-custom .navbar-brand:hover,
76
+ .navbar-custom .navbar-brand:focus {
77
+ color: rgba(255, 255, 255, 0.8);
78
+ }
79
+ .navbar-custom .nav li a {
80
+ color: white;
81
+ padding: 20px;
82
+ }
83
+ .navbar-custom .nav li a:hover,
84
+ .navbar-custom .nav li a:focus {
85
+ color: rgba(255, 255, 255, 0.8);
86
+ }
87
+ }
88
+ @media only screen and (min-width: 1170px) {
89
+ .navbar-custom {
90
+ -webkit-transition: background-color 0.3s;
91
+ -moz-transition: background-color 0.3s;
92
+ transition: background-color 0.3s;
93
+ /* Force Hardware Acceleration in WebKit */
94
+ -webkit-transform: translate3d(0, 0, 0);
95
+ -moz-transform: translate3d(0, 0, 0);
96
+ -ms-transform: translate3d(0, 0, 0);
97
+ -o-transform: translate3d(0, 0, 0);
98
+ transform: translate3d(0, 0, 0);
99
+ -webkit-backface-visibility: hidden;
100
+ backface-visibility: hidden;
101
+ }
102
+ .navbar-custom.is-fixed {
103
+ /* when the user scrolls down, we hide the header right above the viewport */
104
+ position: fixed;
105
+ top: -61px;
106
+ background-color: rgba(255, 255, 255, 0.9);
107
+ border-bottom: 1px solid #f2f2f2;
108
+ -webkit-transition: -webkit-transform 0.3s;
109
+ -moz-transition: -moz-transform 0.3s;
110
+ transition: transform 0.3s;
111
+ }
112
+ .navbar-custom.is-fixed .navbar-brand {
113
+ color: #404040;
114
+ }
115
+ .navbar-custom.is-fixed .navbar-brand:hover,
116
+ .navbar-custom.is-fixed .navbar-brand:focus {
117
+ color: #0085a1;
118
+ }
119
+ .navbar-custom.is-fixed .nav li a {
120
+ color: #404040;
121
+ }
122
+ .navbar-custom.is-fixed .nav li a:hover,
123
+ .navbar-custom.is-fixed .nav li a:focus {
124
+ color: #0085a1;
125
+ }
126
+ .navbar-custom.is-visible {
127
+ /* if the user changes the scrolling direction, we show the header */
128
+ -webkit-transform: translate3d(0, 100%, 0);
129
+ -moz-transform: translate3d(0, 100%, 0);
130
+ -ms-transform: translate3d(0, 100%, 0);
131
+ -o-transform: translate3d(0, 100%, 0);
132
+ transform: translate3d(0, 100%, 0);
133
+ }
134
+ }
135
+ .intro-header {
136
+ background-color: #808080;
137
+ background: no-repeat center center;
138
+ background-attachment: scroll;
139
+ -webkit-background-size: cover;
140
+ -moz-background-size: cover;
141
+ background-size: cover;
142
+ -o-background-size: cover;
143
+ margin-bottom: 50px;
144
+ }
145
+ .intro-header .site-heading,
146
+ .intro-header .post-heading,
147
+ .intro-header .page-heading {
148
+ padding: 100px 0 50px;
149
+ color: white;
150
+ }
151
+ @media only screen and (min-width: 768px) {
152
+ .intro-header .site-heading,
153
+ .intro-header .post-heading,
154
+ .intro-header .page-heading {
155
+ padding: 150px 0;
156
+ }
157
+ }
158
+ .intro-header .site-heading,
159
+ .intro-header .page-heading {
160
+ text-align: center;
161
+ }
162
+ .intro-header .site-heading h1,
163
+ .intro-header .page-heading h1 {
164
+ margin-top: 0;
165
+ font-size: 50px;
166
+ }
167
+ .intro-header .site-heading .subheading,
168
+ .intro-header .page-heading .subheading {
169
+ font-size: 24px;
170
+ line-height: 1.1;
171
+ display: block;
172
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
173
+ font-weight: 300;
174
+ margin: 10px 0 0;
175
+ }
176
+ @media only screen and (min-width: 768px) {
177
+ .intro-header .site-heading h1,
178
+ .intro-header .page-heading h1 {
179
+ font-size: 80px;
180
+ }
181
+ }
182
+ .intro-header .post-heading h1 {
183
+ font-size: 35px;
184
+ }
185
+ .intro-header .post-heading .subheading,
186
+ .intro-header .post-heading .meta {
187
+ line-height: 1.1;
188
+ display: block;
189
+ }
190
+ .intro-header .post-heading .subheading {
191
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
192
+ font-size: 24px;
193
+ margin: 10px 0 30px;
194
+ font-weight: 600;
195
+ }
196
+ .intro-header .post-heading .meta {
197
+ font-family: 'Lora', 'Times New Roman', serif;
198
+ font-style: italic;
199
+ font-weight: 300;
200
+ font-size: 20px;
201
+ }
202
+ .intro-header .post-heading .meta a {
203
+ color: white;
204
+ }
205
+ @media only screen and (min-width: 768px) {
206
+ .intro-header .post-heading h1 {
207
+ font-size: 55px;
208
+ }
209
+ .intro-header .post-heading .subheading {
210
+ font-size: 30px;
211
+ }
212
+ }
213
+ .post-preview > a {
214
+ color: #404040;
215
+ }
216
+ .post-preview > a:hover,
217
+ .post-preview > a:focus {
218
+ text-decoration: none;
219
+ color: #0085a1;
220
+ }
221
+ .post-preview > a > .post-title {
222
+ font-size: 30px;
223
+ margin-top: 30px;
224
+ margin-bottom: 10px;
225
+ }
226
+ .post-preview > a > .post-subtitle {
227
+ margin: 0;
228
+ font-weight: 300;
229
+ margin-bottom: 10px;
230
+ }
231
+ .post-preview > .post-meta {
232
+ color: #808080;
233
+ font-size: 18px;
234
+ font-style: italic;
235
+ margin-top: 0;
236
+ }
237
+ .post-preview > .post-meta > a {
238
+ text-decoration: none;
239
+ color: #404040;
240
+ }
241
+ .post-preview > .post-meta > a:hover,
242
+ .post-preview > .post-meta > a:focus {
243
+ color: #0085a1;
244
+ text-decoration: underline;
245
+ }
246
+ @media only screen and (min-width: 768px) {
247
+ .post-preview > a > .post-title {
248
+ font-size: 36px;
249
+ }
250
+ }
251
+ .section-heading {
252
+ font-size: 36px;
253
+ margin-top: 60px;
254
+ font-weight: 700;
255
+ }
256
+ .caption {
257
+ text-align: center;
258
+ font-size: 14px;
259
+ padding: 10px;
260
+ font-style: italic;
261
+ margin: 0;
262
+ display: block;
263
+ border-bottom-right-radius: 5px;
264
+ border-bottom-left-radius: 5px;
265
+ }
266
+ footer {
267
+ padding: 50px 0 65px;
268
+ }
269
+ footer .list-inline {
270
+ margin: 0;
271
+ padding: 0;
272
+ }
273
+ footer .copyright {
274
+ font-size: 14px;
275
+ text-align: center;
276
+ margin-bottom: 0;
277
+ }
278
+ .floating-label-form-group {
279
+ font-size: 14px;
280
+ position: relative;
281
+ margin-bottom: 0;
282
+ padding-bottom: 0.5em;
283
+ border-bottom: 1px solid #eeeeee;
284
+ }
285
+ .floating-label-form-group input,
286
+ .floating-label-form-group textarea {
287
+ z-index: 1;
288
+ position: relative;
289
+ padding-right: 0;
290
+ padding-left: 0;
291
+ border: none;
292
+ border-radius: 0;
293
+ font-size: 1.5em;
294
+ background: none;
295
+ box-shadow: none !important;
296
+ resize: none;
297
+ }
298
+ .floating-label-form-group label {
299
+ display: block;
300
+ z-index: 0;
301
+ position: relative;
302
+ top: 2em;
303
+ margin: 0;
304
+ font-size: 0.85em;
305
+ line-height: 1.764705882em;
306
+ vertical-align: middle;
307
+ vertical-align: baseline;
308
+ opacity: 0;
309
+ -webkit-transition: top 0.3s ease,opacity 0.3s ease;
310
+ -moz-transition: top 0.3s ease,opacity 0.3s ease;
311
+ -ms-transition: top 0.3s ease,opacity 0.3s ease;
312
+ transition: top 0.3s ease,opacity 0.3s ease;
313
+ }
314
+ .floating-label-form-group::not(:first-child) {
315
+ padding-left: 14px;
316
+ border-left: 1px solid #eeeeee;
317
+ }
318
+ .floating-label-form-group-with-value label {
319
+ top: 0;
320
+ opacity: 1;
321
+ }
322
+ .floating-label-form-group-with-focus label {
323
+ color: #0085a1;
324
+ }
325
+ form .row:first-child .floating-label-form-group {
326
+ border-top: 1px solid #eeeeee;
327
+ }
328
+ .btn {
329
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
330
+ text-transform: uppercase;
331
+ font-size: 14px;
332
+ font-weight: 800;
333
+ letter-spacing: 1px;
334
+ border-radius: 0;
335
+ padding: 15px 25px;
336
+ }
337
+ .btn-lg {
338
+ font-size: 16px;
339
+ padding: 25px 35px;
340
+ }
341
+ .btn-default:hover,
342
+ .btn-default:focus {
343
+ background-color: #0085a1;
344
+ border: 1px solid #0085a1;
345
+ color: white;
346
+ }
347
+ .pager {
348
+ margin: 20px 0 0;
349
+ }
350
+ .pager li > a,
351
+ .pager li > span {
352
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
353
+ text-transform: uppercase;
354
+ font-size: 14px;
355
+ font-weight: 800;
356
+ letter-spacing: 1px;
357
+ padding: 15px 25px;
358
+ background-color: white;
359
+ border-radius: 0;
360
+ }
361
+ .pager li > a:hover,
362
+ .pager li > a:focus {
363
+ color: white;
364
+ background-color: #0085a1;
365
+ border: 1px solid #0085a1;
366
+ }
367
+ .pager .disabled > a,
368
+ .pager .disabled > a:hover,
369
+ .pager .disabled > a:focus,
370
+ .pager .disabled > span {
371
+ color: #808080;
372
+ background-color: #404040;
373
+ cursor: not-allowed;
374
+ }
375
+ ::-moz-selection {
376
+ color: white;
377
+ text-shadow: none;
378
+ background: #0085a1;
379
+ }
380
+ ::selection {
381
+ color: white;
382
+ text-shadow: none;
383
+ background: #0085a1;
384
+ }
385
+ img::selection {
386
+ color: white;
387
+ background: transparent;
388
+ }
389
+ img::-moz-selection {
390
+ color: white;
391
+ background: transparent;
392
+ }
393
+ body {
394
+ webkit-tap-highlight-color: #0085a1;
395
+ }