spina-conferences-primer_theme 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 156c5b1b40b3e0303fd92de0e04a6a62fb146698d85ddd59ed801ab2c78eab4f
4
- data.tar.gz: 55f7bd8092847e2f43a4859355c2eb0c24511a4f524bb202adc9276a32bbe5f3
3
+ metadata.gz: 936083c4293cbc611194be98f61919d3ebafb7fba30657fe953a03b0168b95ef
4
+ data.tar.gz: c278c8c41ec3a012cc6a4e5c6b66c233459b0e3fe3e4a11841f2f2f72e916f1b
5
5
  SHA512:
6
- metadata.gz: c32c1e6944e047252b8b87a56a6fab462d66959d9e6b76ff64b6bafbe59ef9b679823a8ad7cf1389316ee3869a4c08641af42d173025a8d5b89d0ddd5a2d8e62
7
- data.tar.gz: 46d2fe6eb4b871aed7b220851bc0c70b327db56721ef72b86578fa35383152e85e7bb3738aeea05ed07ddcaf59d8dd2333d2b24182d4c311a1e18785eaa022f0
6
+ metadata.gz: f3bb1a5ffa62d39071a3afc7d871781e4be937a73e6e860dfed3bd09bd1c63fe776aa705b09b7b83adeeca5bc6865470571ccc9826550891465054ca454e9114
7
+ data.tar.gz: 10a589d62195e08be32b6300842f92ff39dea79ec27d18015c1e2d9bc0bf41f06ef67256c8ab5015d80be0be8de91b1530522a4d931d90296e47c33199fec72f
@@ -3,6 +3,7 @@
3
3
  @import spina/conferences/primer_theme/custom
4
4
  @import "@primer/css"
5
5
  @import "@primer/octicons"
6
+ @import spina/conferences/primer_theme/custom_variables
6
7
 
7
8
  .admin
8
9
  @import "spina/admin_editing"
@@ -44,9 +44,9 @@ module Spina
44
44
 
45
45
  def set_presentations
46
46
  @presentations = if @presentation_type.present?
47
- @presentation_type.presentations.page(params[:page])
47
+ @presentation_type.presentations.page(params[:page]).per(15)
48
48
  else
49
- @conference.presentations.page(params[:page])
49
+ @conference.presentations.page(params[:page]).per(15)
50
50
  end
51
51
  end
52
52
 
@@ -60,7 +60,7 @@
60
60
  - else
61
61
  = render(Primer::TextComponent.new(tag: :div, font_size: 6, color: :text_secondary)) { t :'.documents.no_file' }
62
62
 
63
- = render Primer::SubheadComponent.new do |component|
63
+ = render Primer::SubheadComponent.new(mt: 4) do |component|
64
64
  = component.heading { t :'.partner_societies.title' }
65
65
  - if content(:partner_societies).present?
66
66
  %ul
@@ -2,7 +2,7 @@
2
2
  - cache [current_page, current_conference] do
3
3
  = render Primer::BoxComponent.new(position: :relative, style: 'height: 639px') do
4
4
  = render Primer::BoxComponent.new(position: :absolute, top: false, left: false, right: false, bottom: false,
5
- style: 'background-color: var(--color-bg-backdrop)')
5
+ style: 'background-color: var(--color-scale-blue-9)')
6
6
  - if content(:gallery).present?
7
7
  = render Primer::FlexComponent.new(position: :absolute, top: false, left: false, right: false, bottom: false, style: 'z-index: 1',
8
8
  flex_direction: :column, justify_content: :center, align_items: :center,
@@ -12,9 +12,9 @@
12
12
  srcset: srcset(image, variant: { resize_to_limit: [1680, 1680] }),
13
13
  style: 'object-fit: cover; max-width: max-content; max-height: max-content',
14
14
  data: { slideshow_target: 'slide' }, class: %w[width-full height-full])
15
- .container-lg.p-responsive.position-relative.text-white.height-full{ style: 'z-index: 2' }
15
+ .container-lg.p-responsive.position-relative.color-text-white.height-full{ style: 'z-index: 2' }
16
16
  = render Primer::BoxComponent.new(py: [3, nil, nil, 6]) do
17
- .text-shadow-dark
17
+ %div{ style: 'text-shadow: 0 1px 1px #01040940, 0 1px 25px #010409bf;' }
18
18
  - if current_conference.present?
19
19
  = render(Primer::HeadingComponent.new(tag: :h1, classes: 'h000-mktg lh-condensed-ultra')) { current_conference.name }
20
20
  = render Primer::TextComponent.new(tag: :address, classes: 'f2-light') do
@@ -27,4 +27,5 @@
27
27
  - if current_conference.present? && current_conference.finish_date >= Date.today
28
28
  = link_to t('.more_info'), frontend_conference_path(current_conference),
29
29
  class: %w[btn-mktg btn-large-mktg btn-primary-mktg f3 mt-4]
30
- .text-shadow-dark= render(Primer::MarkdownComponent.new(my: 4)) { content(:text).try(:html_safe) }
30
+ %div{ style: 'text-shadow: 0 1px 1px rgba(var(--color-scale-black), 0.25), 0 1px 25px rgba(var(--color-scale-black), 0.75);' }
31
+ = render(Primer::MarkdownComponent.new(my: 4)) { content(:text).try(:html_safe) }
@@ -9,7 +9,7 @@
9
9
  aria: { selected: (@tab == 'information').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
10
10
  = t(:'.tabs.information')
11
11
  - component.tab(href: frontend_conference_url(@conference, tab: 'presentations', presentation_type: @presentation_type&.id),
12
- saria: { selected: (@tab == 'presentations').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
12
+ aria: { selected: (@tab == 'presentations').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
13
13
  = t(:'.tabs.presentations')
14
14
  - component.tab(href: frontend_conference_url(@conference, tab: 'events', presentation_type: @presentation_type&.id),
15
15
  aria: { selected: (@tab == 'events').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
@@ -150,6 +150,16 @@ en:
150
150
  show:
151
151
  room_and_institution: "%{room}, %{institution}"
152
152
 
153
+ kaminari:
154
+ next_page:
155
+ next: Next
156
+ next_page: Next page
157
+ prev_page:
158
+ previous: Previous
159
+ previous_page: Previous page
160
+ page:
161
+ page: Page %{number}
162
+
153
163
  languages:
154
164
  en-GB: British English
155
165
 
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Conferences
5
5
  module PrimerTheme
6
- VERSION = '0.2.1'
6
+ VERSION = '0.2.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-conferences-primer_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Malčić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-14 00:00:00.000000000 Z
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: babel-transpiler
@@ -290,6 +290,7 @@ files:
290
290
  - app/assets/javascripts/spina/conferences/primer_theme/application.js
291
291
  - app/assets/javascripts/spina/conferences/primer_theme/controllers/slideshow_controller.es6
292
292
  - app/assets/stylesheets/spina/conferences/primer_theme/_custom.sass
293
+ - app/assets/stylesheets/spina/conferences/primer_theme/_custom_variables.sass
293
294
  - app/assets/stylesheets/spina/conferences/primer_theme/application.sass
294
295
  - app/controllers/spina/conferences/primer_theme/application_controller.rb
295
296
  - app/controllers/spina/conferences/primer_theme/conferences_controller.rb