jobshop 0.0.2.4 → 0.0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 829adcc4e7c52a641937a0268608e5e5295ed71d
4
- data.tar.gz: 7277dc56e6c28fb3ba67a03fc0c5ec81fdcfc9cc
3
+ metadata.gz: 3282f194bfc24b559fdc6df36835da1d03bc0b76
4
+ data.tar.gz: 1c2dc22d102bf15ba8ff4a00f19a5347f6d7a165
5
5
  SHA512:
6
- metadata.gz: 33f110e6d378058745c950455a3b991f13a0487986d7af43816ba33733e28e5f0b10d9bfd40670cfeecf6942bfc7a7c4e3db08a312154d06384dcdcd2f06c46b
7
- data.tar.gz: ae9e696076f98d70ff7801f8af9d55691aafdb3d2fab08a7487b1e662d9704b06a57530de02ac9b73d72ac962b97bfdcd64438ce27d1acc9c9d6f2c1ccc7c5c7
6
+ metadata.gz: 98f68b022153c5ce64ff8147e30c6a79b16abe703282e6267a1c3e0ebd82db3baaaf212f19cbb1975bbf4e34963999833f71faef4c1be1dc59f7f0ed1ae10967
7
+ data.tar.gz: c967f0d5f8a489b4c7358cc0bfbf97773f9e4dded8cf02d048754f6730ce09faee117231f11423f008e668178221eb8e8d8ec738d744a176498dc0cf7aad1901
@@ -7,14 +7,68 @@ $primary-color: color("blue", "lighten-5") !default;
7
7
  $navbar-font-color: color("blue-grey", "darken-4") !default;
8
8
  $navbar-brand-font-size: 2.5rem !default;
9
9
  @import "materialize";
10
+ @import "material-icons";
10
11
 
11
12
  html {
13
+ height: 100%;
14
+
12
15
  body {
13
16
  background-color: color("blue", "lighten-5");
14
17
  margin: 0;
15
18
  }
16
19
 
20
+ body[data-pages-index] {
21
+ margin: 1rem;
22
+
23
+ > header,
24
+ > main,
25
+ > footer {
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: center;
29
+ align-items: center;
30
+
31
+ > section {
32
+ width: 24rem;
33
+ @media #{$small-and-down} { width: 100%; }
34
+ }
35
+ }
36
+ }
37
+
17
38
  h2 { font-family: 'Lora', serif; }
18
39
 
19
- height: 100%;
40
+ .bubble:before {
41
+ content: '';
42
+ position: absolute;
43
+ border-style: solid;
44
+ border-width: 0 1.2rem 1.2rem;
45
+ border-color: #fff transparent;
46
+ display: block;
47
+ z-index: 0;
48
+ margin-left: -1.2rem;
49
+ top: -1.17rem; /* FIXME: 1.2rem leaves a 1px gap at some breakpoints */
50
+ left: 50%;
51
+ }
52
+
53
+ .card-action {
54
+ display: flex;
55
+ justify-content: space-between;
56
+ align-items: center;
57
+ }
58
+
59
+ .card-content {
60
+ .error {
61
+ color: $error-color !important;
62
+ text-align: center;
63
+ }
64
+ }
65
+
66
+ .logo { margin: 2rem auto; }
67
+
68
+ .sub-head {
69
+ font-size: 1.5rem;
70
+ font-weight: 300;
71
+ }
72
+
73
+ @import "pages/index";
20
74
  }
File without changes
@@ -3,7 +3,19 @@ require_dependency "jobshop/application_controller"
3
3
  module Jobshop
4
4
  class PagesController < ApplicationController
5
5
  def show
6
- render template: "jobshop/pages/#{params[:page]}"
6
+ page = valid_page? ? [ template: current_page ]
7
+ : [ file: "public/404.html", status: :not_found ]
8
+ render(*page)
9
+ end
10
+
11
+ private
12
+
13
+ def valid_page?
14
+ lookup_context.template_exists?(current_page)
15
+ end
16
+
17
+ def current_page
18
+ "jobshop/pages/#{params[:page]}"
7
19
  end
8
20
  end
9
21
  end
@@ -1,2 +1,8 @@
1
- h1 pages#index
2
- p Find me in app/views/jobshop/pages/index.html.slim
1
+ = content_for(:data_attr){"data-pages-index"}
2
+ header
3
+ object.logo*{ type: "image/svg+xml", data: image_path("jobshop/logo.svg") }
4
+
5
+ main
6
+ section*{ class: "card hoverable bubble" }
7
+ .card-content
8
+ p.sub-head.center Powered By Jobshop
@@ -6,7 +6,7 @@
6
6
  <%= javascript_include_tag "jobshop/application" %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
- <body>
9
+ <body <%= yield(:data_attr)%>>
10
10
 
11
11
  <%= yield %>
12
12
 
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ Rails.application.config.assets.precompile += %w( jobshop/logo.svg )
@@ -7,7 +7,7 @@ module Jobshop
7
7
  MAJOR = 0
8
8
  MINOR = 0
9
9
  TINY = 2
10
- PRE = 4
10
+ PRE = 5
11
11
 
12
12
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.4
4
+ version: 0.0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Mattia
@@ -288,6 +288,7 @@ files:
288
288
  - app/assets/javascripts/jobshop/application.js
289
289
  - app/assets/stylesheets/jobshop/application.scss
290
290
  - app/assets/stylesheets/jobshop/material-icons.scss
291
+ - app/assets/stylesheets/jobshop/pages/index.scss
291
292
  - app/controllers/jobshop/application_controller.rb
292
293
  - app/controllers/jobshop/pages_controller.rb
293
294
  - app/helpers/jobshop/application_helper.rb
@@ -296,6 +297,7 @@ files:
296
297
  - app/policies/jobshop/application_policy.rb
297
298
  - app/views/jobshop/pages/index.html.slim
298
299
  - app/views/layouts/jobshop/application.html.erb
300
+ - config/initializers/assets.rb
299
301
  - config/routes.rb
300
302
  - db/migrate/keep
301
303
  - lib/generators/jobshop/config/config_generator.rb