spina-conferences-primer_theme 0.3.2 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spina/conferences/primer_theme/application.sass +27 -0
- data/app/views/conferences_primer_theme/pages/embedded_form.html.haml +9 -0
- data/app/views/conferences_primer_theme/pages/homepage.html.haml +3 -0
- data/app/views/spina/application/_footer.html.haml +17 -15
- data/app/views/spina/application/_mobile_navigation_item.html.haml +13 -12
- data/app/views/spina/application/_mobile_navigation_items.html.haml +1 -1
- data/app/views/spina/application/_navigation.html.haml +10 -9
- data/app/views/spina/application/_navigation_item.html.haml +12 -11
- data/app/views/spina/conferences/primer_theme/conferences/_presentation_type.html.haml +1 -1
- data/app/views/spina/conferences/primer_theme/conferences/_presentations.html.haml +1 -1
- data/app/views/spina/conferences/primer_theme/conferences/show.html.haml +3 -3
- data/config/initializers/themes/conferences_primer_theme.rb +10 -1
- data/lib/spina/conferences/primer_theme/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fee6ebf471b1278f5dbaa148407d35902b279493695ea85312c622f45300e8be
|
4
|
+
data.tar.gz: 9fdb671ab2618ea7f6cafcd516d8053cad575cc1f3b56fe19c9e86bfe0c3c339
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ace1c57074d2067673442fbe7baea80e819694999c9180d494336682a63101e7f20d81ea1d28a52ce77eebe9d608dac2ce5a971dc87f2e7b78a8285d277284
|
7
|
+
data.tar.gz: 13deb15dd48fb7b1f046e3fe65d6e95f40ed305f82fff015f7188d7a8ef7a5a2aabbb3b9cadaef6f0949ca68554b5aa2a9d7ebfd5c44e13b936fd47fb4d4c5d9
|
@@ -5,6 +5,28 @@
|
|
5
5
|
@import "@primer/octicons"
|
6
6
|
@import spina/conferences/primer_theme/custom_variables
|
7
7
|
|
8
|
+
@font-face
|
9
|
+
font-family: Inter
|
10
|
+
font-style: normal
|
11
|
+
font-weight: $font-weight-normal
|
12
|
+
src: local("Inter"), local("Inter-Regular"), asset-url("@primer/css/fonts/Inter-Regular.woff") format("woff")
|
13
|
+
font-display: swap
|
14
|
+
|
15
|
+
|
16
|
+
@font-face
|
17
|
+
font-family: Inter
|
18
|
+
font-style: normal
|
19
|
+
font-weight: $font-weight-semibold
|
20
|
+
src: local("Inter Medium"), local("Inter-Medium"), asset-url("@primer/css/fonts/Inter-Medium.woff") format("woff")
|
21
|
+
font-display: swap
|
22
|
+
|
23
|
+
@font-face
|
24
|
+
font-family: Inter
|
25
|
+
font-style: normal
|
26
|
+
font-weight: $font-weight-bold
|
27
|
+
src: local("Inter Bold"), local("Inter-Bold"), asset-url("@primer/css/fonts/Inter-Bold.woff") format("woff")
|
28
|
+
font-display: swap
|
29
|
+
|
8
30
|
.admin
|
9
31
|
@import "spina/admin_editing"
|
10
32
|
#admin_bar
|
@@ -15,3 +37,8 @@
|
|
15
37
|
|
16
38
|
address
|
17
39
|
font-style: normal
|
40
|
+
|
41
|
+
#form_frame
|
42
|
+
border: none
|
43
|
+
width: 100%
|
44
|
+
height: 70vh
|
@@ -0,0 +1,9 @@
|
|
1
|
+
- cache current_page do
|
2
|
+
= render(Primer::HeadingComponent.new) { current_page.title }
|
3
|
+
|
4
|
+
- if content(:text).present?
|
5
|
+
= render(Primer::MarkdownComponent.new(mt: 4)) { content.html(:text) }
|
6
|
+
|
7
|
+
- if content(:embed_url).present?
|
8
|
+
= render Primer::BoxComponent.new(mt: 4, col: 12) do
|
9
|
+
%iframe#form_frame{ src: content(:embed_url), allowfullscreen: true }
|
@@ -27,5 +27,8 @@
|
|
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
|
+
- else
|
31
|
+
= link_to t('.more_info'), Spina::Page.find_by(name: 'about').materialized_path,
|
32
|
+
class: %w[btn-mktg btn-large-mktg btn-primary-mktg f3 mt-4]
|
30
33
|
%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
34
|
= render(Primer::MarkdownComponent.new(my: 4)) { content(:text).try(:html_safe) }
|
@@ -1,15 +1,17 @@
|
|
1
|
-
|
2
|
-
= render Primer::FlexComponent.new(direction: [:column,
|
3
|
-
|
4
|
-
- footer_navigation_items
|
5
|
-
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
= render
|
11
|
-
|
12
|
-
= render Primer::
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
- cache [footer_navigation_items, current_account] do
|
2
|
+
= render Primer::FlexComponent.new(direction: [:column, nil, :row_reverse, nil], align_items: :center) do
|
3
|
+
= render Primer::FlexComponent.new(direction: [:column, :row, nil, nil], mb: [4, nil, 0, nil], flex: :auto) do
|
4
|
+
- cache footer_navigation_items do
|
5
|
+
%ul.list-style-none.flex-auto.mb-2.mb-sm-0.mr-sm-2
|
6
|
+
- footer_navigation_items.each do |item|
|
7
|
+
- cache item do
|
8
|
+
%li
|
9
|
+
= render Primer::ButtonComponent.new(tag: :a, href: item.materialized_path, variant: :small) { item.menu_title }
|
10
|
+
= render 'footer_content'
|
11
|
+
- if current_account.has_content? :github_url
|
12
|
+
= render Primer::ButtonComponent.new(tag: :a, href: current_account.content(:github_url), button_type: :outline, variant: :small,
|
13
|
+
display: :inline_block) do
|
14
|
+
= render Primer::OcticonComponent.new('mark-github')
|
15
|
+
= t :'.find_on_github'
|
16
|
+
= render(Primer::TextComponent.new(tag: :small, color: :text_secondary, mr: [nil, 2, nil, nil], font_size: 6, flex_grow: 0)) do
|
17
|
+
= t :'.copyright', name: current_account.name, year: Date.today.year
|
@@ -1,12 +1,13 @@
|
|
1
|
-
|
2
|
-
-
|
3
|
-
|
4
|
-
%
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
- cache navigation_item do
|
2
|
+
.Header-item.mr-0.border-top.border-white-fade-15.flex-column.flex-items-stretch
|
3
|
+
- if navigation_item.has_children?
|
4
|
+
%details.details-reset
|
5
|
+
%summary.Header-link.py-2
|
6
|
+
= navigation_item.menu_title
|
7
|
+
= render Primer::OcticonComponent.new('chevron-down')
|
8
|
+
%ul.list-style-none
|
9
|
+
- navigation_item.children.each do |child|
|
10
|
+
%li= link_to child.menu_title, child.materialized_path, class: %w[d-block py-2 pl-3 border-top border-white-fade color-text-white]
|
11
|
+
- elsif navigation_item.is_root?
|
12
|
+
= link_to navigation_item.menu_title, navigation_item.materialized_path,
|
13
|
+
class: %w[Header-link py-2]
|
@@ -1,3 +1,3 @@
|
|
1
1
|
%nav.d-flex.flex-column.flex-self-stretch
|
2
2
|
= render partial: 'mobile_navigation_item', collection: main_navigation_items, cached: true, as: :navigation_item
|
3
|
-
.Header-item.mr-0.border-top.border-white-fade-15= link_to 'Conferences',
|
3
|
+
.Header-item.mr-0.border-top.border-white-fade-15= link_to 'Conferences', frontend_conferences_path, class: %w[Header-link py-2 py-lg-0]
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
.Header-
|
3
|
-
|
4
|
-
%
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
- cache main_navigation_items do
|
2
|
+
.Header.px-3.px-md-4.px-lg-5.flex-wrap.flex-lg-nowrap
|
3
|
+
.Header-item.mt-n1.mb-n1= link_to render('logo'), root_path, class: 'Header-link'
|
4
|
+
%details.details-reset.d-lg-none{ style: 'display: contents' }
|
5
|
+
%summary.Header-item.Header-link.btn-link
|
6
|
+
= render Primer::OcticonComponent.new('three-bars', height: 24)
|
7
|
+
.Header-item.Header-item--full.flex-column.width-full.flex-order-1.mr-0.mt-3
|
8
|
+
= render partial: 'mobile_navigation_items'
|
9
|
+
= render partial: 'navigation_item', collection: main_navigation_items, cached: true
|
10
|
+
.Header-item.d-none.d-lg-flex= link_to 'Conferences', frontend_conferences_path, class: %w[Header-link]
|
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
-
|
3
|
-
|
4
|
-
%
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
- cache navigation_item do
|
2
|
+
.Header-item.position-relative.d-none.d-lg-flex
|
3
|
+
- if navigation_item.has_children? && navigation_item.children.regular_pages.in_menu.live.sorted.any?
|
4
|
+
%details.details-reset.details-overlay
|
5
|
+
%summary.Header-link{ role: 'button', aria: { haspopup: 'menu' } }
|
6
|
+
= navigation_item.menu_title
|
7
|
+
= render Primer::OcticonComponent.new('chevron-down')
|
8
|
+
%ul.dropdown-menu.dropdown-menu-sw
|
9
|
+
- navigation_item.children.regular_pages.in_menu.live.sorted.each do |child|
|
10
|
+
%li= link_to child.menu_title, child.materialized_path, class: 'dropdown-item'
|
11
|
+
- elsif navigation_item.is_root?
|
12
|
+
= link_to navigation_item.menu_title, navigation_item.materialized_path, class: %w[Header-link]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
%li
|
2
|
-
= link_to
|
2
|
+
= link_to frontend_conference_path(presentation_type.conference, presentation_type: presentation_type.id, tab: 'presentations'),
|
3
3
|
class: 'filter-item', aria: { current: @presentation_type == presentation_type ? 'page' : nil } do
|
4
4
|
= presentation_type.name.pluralize
|
5
5
|
%span.count{ title: t(:'.results') }= presentation_type.presentations.count
|
@@ -4,7 +4,7 @@
|
|
4
4
|
%ul.filter-list
|
5
5
|
- cache [@conference.presentations, @presentation_type] do
|
6
6
|
%li
|
7
|
-
= link_to
|
7
|
+
= link_to frontend_conference_path(@conference, tab: 'presentations'),
|
8
8
|
class: 'filter-item', aria: { current: ('page' if @presentation_type.blank?) } do
|
9
9
|
= t('.all_presentation_types')
|
10
10
|
%span.count{ title: t(:'.results') }= @conference.presentations.count
|
@@ -5,13 +5,13 @@
|
|
5
5
|
|
6
6
|
= turbo_frame_tag 'conference_tabs' do
|
7
7
|
= render Primer::UnderlineNavComponent.new(label: t(:'.conference_navigation')) do |component|
|
8
|
-
- component.tab(href:
|
8
|
+
- component.tab(href: frontend_conference_path(@conference, tab: 'information', presentation_type: @presentation_type&.id),
|
9
9
|
aria: { selected: (@tab == 'information').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
|
10
10
|
= t(:'.tabs.information')
|
11
|
-
- component.tab(href:
|
11
|
+
- component.tab(href: frontend_conference_path(@conference, tab: 'presentations', presentation_type: @presentation_type&.id),
|
12
12
|
aria: { selected: (@tab == 'presentations').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
|
13
13
|
= t(:'.tabs.presentations')
|
14
|
-
- component.tab(href:
|
14
|
+
- component.tab(href: frontend_conference_path(@conference, tab: 'events', presentation_type: @presentation_type&.id),
|
15
15
|
aria: { selected: (@tab == 'events').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
|
16
16
|
= t(:'.tabs.events')
|
17
17
|
- component.actions do
|
@@ -75,7 +75,7 @@
|
|
75
75
|
name: 'committee_bios',
|
76
76
|
title: 'Committee bios',
|
77
77
|
part_type: 'Spina::Parts::Repeater',
|
78
|
-
parts: %w[name role bio profile_picture]
|
78
|
+
parts: %w[name institution role bio profile_picture]
|
79
79
|
}, {
|
80
80
|
name: 'sponsors',
|
81
81
|
title: 'Sponsors',
|
@@ -158,6 +158,10 @@
|
|
158
158
|
name: 'url',
|
159
159
|
title: 'Link',
|
160
160
|
part_type: 'Spina::Parts::Admin::Conferences::Url'
|
161
|
+
}, {
|
162
|
+
name: 'embed_url',
|
163
|
+
title: 'Form embed URL',
|
164
|
+
part_type: 'Spina::Parts::Admin::Conferences::Url'
|
161
165
|
}]
|
162
166
|
|
163
167
|
theme.view_templates = [{
|
@@ -184,6 +188,11 @@
|
|
184
188
|
title: 'Events',
|
185
189
|
description: 'Contains details of past and upcoming events',
|
186
190
|
parts: %w[text events_list]
|
191
|
+
}, {
|
192
|
+
name: 'embedded_form',
|
193
|
+
title: 'Embedded form',
|
194
|
+
description: 'Contains an embedded form',
|
195
|
+
parts: %w[text embed_url]
|
187
196
|
}, {
|
188
197
|
name: 'show',
|
189
198
|
title: 'Blank',
|
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.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
61
|
+
version: 0.0.37
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.0.
|
68
|
+
version: 0.0.37
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- app/helpers/spina/conferences/primer_theme/navigations_helper.rb
|
301
301
|
- app/views/conferences_primer_theme/pages/about.html.haml
|
302
302
|
- app/views/conferences_primer_theme/pages/committee.html.haml
|
303
|
+
- app/views/conferences_primer_theme/pages/embedded_form.html.haml
|
303
304
|
- app/views/conferences_primer_theme/pages/events.html.haml
|
304
305
|
- app/views/conferences_primer_theme/pages/homepage.html.haml
|
305
306
|
- app/views/conferences_primer_theme/pages/information.html.haml
|