forever_style_guide 2.0.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/forever_style_guide/default_avatar.jpg +0 -0
- data/app/assets/images/forever_style_guide/forever-logo.jpg +0 -0
- data/app/assets/javascripts/forever_style_guide/account-popover.js +0 -26
- data/app/assets/javascripts/forever_style_guide/offcanvas.js +213 -0
- data/app/assets/stylesheets/forever_style_guide/base/_bootstrap_reset.scss +5 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_breakpoints.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/globals/_effects.scss +6 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_mixins.scss +3 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +22 -22
- data/app/assets/stylesheets/forever_style_guide/modules/_button.scss +0 -5
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-account.scss +58 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-ambassador.scss +93 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns.scss +155 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss +0 -15
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-icons.scss +114 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss +53 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss +77 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav.scss +84 -73
- data/app/assets/stylesheets/style_guide/modules/_hero_simple.scss +0 -1
- data/app/helpers/forever_style_guide/application_helper.rb +309 -1
- data/app/views/forever_style_guide/demo/footer.html.erb +1 -1
- data/app/views/forever_style_guide/demo/hero.html.erb +1 -3
- data/app/views/forever_style_guide/demo/hero_simple.html.erb +1 -3
- data/app/views/forever_style_guide/demo/navigation.html.erb +43 -27
- data/app/views/forever_style_guide/demo/promo_banner.html.erb +1 -3
- data/app/views/forever_style_guide/sections/components/navigation/_nav.erb +60 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown.erb +37 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown_menu.erb +61 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_signed_out_mobile.erb +6 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_ambassador_dropdown.erb +112 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_community_dropdown.erb +99 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_my_forever_dropdown.erb +142 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_products_dropdown.erb +151 -0
- data/app/views/layouts/forever_style_guide/_navigation.erb +51 -29
- data/lib/forever_style_guide/version.rb +1 -1
- data/test/dummy/log/development.log +43794 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_all.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_button.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns-ambassador.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-fixed.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-icons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-offcanvas.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_breakpoints.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_effects.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/77afe34ae60f4f73cffcc8a92e720a6db579269d/_hero_simple.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/b7a4a2cc1ae6dd8beea9163f40226a4c9c3e7926/_bootstrap_reset.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13c6cfef7d2dae6157cb1e9a83970e58 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16ae65fae89ac9713129ac86c08be0fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bdd1622b754cd161cd49f472086df2d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5889baf60874f32654f269b1976b11da +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74ee448666a16d19f05d144192a607fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/82e2ab0c7f220d85a3306094f9170995 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/93ba27aa64423f74732b1f2b12b84118 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a5339910db1afb33301cc638679d0cc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7c77fa9ddbae9998b1339d6c2c3eef0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d139d4c466cbb442154adf9c2b8149f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4a50f6ac0abd0a5af7071d8eb233a48 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee286b59ae897606bfd68a7f060d5baf +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +19 -21
- data/app/assets/javascripts/forever_style_guide/nav-fixed.js +0 -28
- data/app/assets/javascripts/forever_style_guide/navbar.js +0 -9
- data/app/assets/stylesheets/forever_style_guide/modules/_account-popover.scss +0 -133
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-more.scss +0 -60
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-nav.scss +0 -66
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product-main.scss +0 -52
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product.scss +0 -82
- data/app/assets/stylesheets/forever_style_guide/modules/_navbar.scss +0 -132
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in-app.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed.html.erb +0 -28
- data/app/views/forever_style_guide/sections/components/_navigation.html.erb +0 -69
- data/app/views/forever_style_guide/sections/components/navigation/_account_popover.erb +0 -71
- data/app/views/forever_style_guide/sections/components/navigation/_basic.erb +0 -33
- data/app/views/forever_style_guide/sections/components/navigation/_dropdown.erb +0 -119
- data/app/views/forever_style_guide/sections/components/navigation/_marketing.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_marketing_signed_in.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_signed_in.erb +0 -113
- data/app/views/forever_style_guide/sections/components/navigation/_stacked.erb +0 -22
@@ -3,6 +3,315 @@ require 'pathname'
|
|
3
3
|
module ForeverStyleGuide
|
4
4
|
module ApplicationHelper
|
5
5
|
|
6
|
+
#Path helpers for mounted style guide use
|
7
|
+
def www_url(path = '/', url = nil)
|
8
|
+
strip_subdomain("www", path, url)
|
9
|
+
end
|
10
|
+
|
11
|
+
def web_app_url(path = '/', url = nil)
|
12
|
+
strip_subdomain("my", path, url)
|
13
|
+
end
|
14
|
+
|
15
|
+
def store_url(path = '/', url = nil)
|
16
|
+
strip_subdomain("store", path, url)
|
17
|
+
end
|
18
|
+
|
19
|
+
def strip_subdomain(sub, path = '/', url = nil)
|
20
|
+
url ||= request.url if respond_to?(:request)
|
21
|
+
url = URI(url)
|
22
|
+
replace = url.to_s
|
23
|
+
protocols = ['www.', 'store.', 'my.']
|
24
|
+
replace = protocols.find { |protocol| replace.include?(protocol) }
|
25
|
+
|
26
|
+
#protect against a nil return that would break localhost
|
27
|
+
if replace.blank?
|
28
|
+
replace = '/'
|
29
|
+
end
|
30
|
+
|
31
|
+
url.host = url.host.sub(replace, "#{sub}.")
|
32
|
+
url.path = path
|
33
|
+
url.query = nil
|
34
|
+
url.to_s
|
35
|
+
end
|
36
|
+
|
37
|
+
# Web App Paths
|
38
|
+
def login_url
|
39
|
+
web_app_url('/login')
|
40
|
+
end
|
41
|
+
|
42
|
+
def sign_up_url
|
43
|
+
web_app_url('/signup')
|
44
|
+
end
|
45
|
+
|
46
|
+
def library_url
|
47
|
+
web_app_url('/inbox')
|
48
|
+
end
|
49
|
+
|
50
|
+
def projects_url
|
51
|
+
web_app_url('/projects')
|
52
|
+
end
|
53
|
+
|
54
|
+
def people_url
|
55
|
+
web_app_url('/people/family')
|
56
|
+
end
|
57
|
+
|
58
|
+
def app_home_url
|
59
|
+
web_app_url('/')
|
60
|
+
end
|
61
|
+
|
62
|
+
def user_settings_url
|
63
|
+
web_app_url('/settings') # TODO something not quite right here
|
64
|
+
end
|
65
|
+
|
66
|
+
def log_out_url
|
67
|
+
web_app_url('/logout') # TODO something not quite right here
|
68
|
+
end
|
69
|
+
|
70
|
+
# Marketing Site Paths
|
71
|
+
def marketing_home_url
|
72
|
+
www_url('/')
|
73
|
+
end
|
74
|
+
|
75
|
+
def about_url
|
76
|
+
www_url('/about')
|
77
|
+
end
|
78
|
+
|
79
|
+
def team_url
|
80
|
+
www_url('/about/team')
|
81
|
+
end
|
82
|
+
|
83
|
+
def beliefs_url
|
84
|
+
www_url('/about/beliefs')
|
85
|
+
end
|
86
|
+
|
87
|
+
def guarantee_url
|
88
|
+
www_url('/guarantee')
|
89
|
+
end
|
90
|
+
|
91
|
+
def storage_url
|
92
|
+
www_url('/guaranteed_storage')
|
93
|
+
end
|
94
|
+
|
95
|
+
def app_url
|
96
|
+
www_url('/app')
|
97
|
+
end
|
98
|
+
|
99
|
+
def valet_url
|
100
|
+
www_url('/valet')
|
101
|
+
end
|
102
|
+
|
103
|
+
def historian_url
|
104
|
+
www_url('/historian')
|
105
|
+
end
|
106
|
+
|
107
|
+
def artisan_url
|
108
|
+
www_url('/artisan')
|
109
|
+
end
|
110
|
+
|
111
|
+
def projects_marketing_url
|
112
|
+
www_url('/projects')
|
113
|
+
end
|
114
|
+
|
115
|
+
def promotions_url
|
116
|
+
www_url('/holidays')
|
117
|
+
end
|
118
|
+
|
119
|
+
def shipping_info_url
|
120
|
+
www_url('/shipping')
|
121
|
+
end
|
122
|
+
|
123
|
+
def bulk_orders_url
|
124
|
+
www_url('/bulk-orders')
|
125
|
+
end
|
126
|
+
|
127
|
+
def return_policy_url
|
128
|
+
www_url('/returns')
|
129
|
+
end
|
130
|
+
|
131
|
+
def p2p_url
|
132
|
+
www_url('/pixels2pages')
|
133
|
+
end
|
134
|
+
|
135
|
+
def customer_commitments_url
|
136
|
+
www_url('/commitments')
|
137
|
+
end
|
138
|
+
|
139
|
+
def opportunity_url
|
140
|
+
www_url('/opportunity')
|
141
|
+
end
|
142
|
+
|
143
|
+
def retreats_url
|
144
|
+
www_url('/retreats')
|
145
|
+
end
|
146
|
+
|
147
|
+
def press_url
|
148
|
+
www_url('/about/press')
|
149
|
+
end
|
150
|
+
|
151
|
+
# Store Paths
|
152
|
+
def cart_url
|
153
|
+
store_url('/cart')
|
154
|
+
end
|
155
|
+
|
156
|
+
def services_url
|
157
|
+
store_url('/services')
|
158
|
+
end
|
159
|
+
|
160
|
+
def digital_art_url
|
161
|
+
store_url('/digital_art')
|
162
|
+
end
|
163
|
+
|
164
|
+
def new_digital_art_url
|
165
|
+
store_url('/new_digital_art')
|
166
|
+
end
|
167
|
+
|
168
|
+
def sale_digital_art_url
|
169
|
+
store_url('/sale_digital_art')
|
170
|
+
end
|
171
|
+
|
172
|
+
def all_digital_art_url
|
173
|
+
store_url('/all_digital_art')
|
174
|
+
end
|
175
|
+
|
176
|
+
def print_url
|
177
|
+
store_url('/print')
|
178
|
+
end
|
179
|
+
|
180
|
+
def photo_books_url
|
181
|
+
store_url('/photobooks')
|
182
|
+
end
|
183
|
+
|
184
|
+
def cards_url
|
185
|
+
store_url('/cards')
|
186
|
+
end
|
187
|
+
|
188
|
+
def calendars_url
|
189
|
+
store_url('/calendars')
|
190
|
+
end
|
191
|
+
|
192
|
+
def wall_art_url
|
193
|
+
store_url('/wall_art')
|
194
|
+
end
|
195
|
+
|
196
|
+
def photo_gifts_url
|
197
|
+
store_url('/photo_gifts')
|
198
|
+
end
|
199
|
+
|
200
|
+
def page_prints_url
|
201
|
+
store_url('/page_prints')
|
202
|
+
end
|
203
|
+
|
204
|
+
def gift_certificate_url
|
205
|
+
store_url('/gift_certificates')
|
206
|
+
end
|
207
|
+
|
208
|
+
def gift_certificate_url
|
209
|
+
store_url('/gift_certificates')
|
210
|
+
end
|
211
|
+
|
212
|
+
def gifts_url
|
213
|
+
store_url('/gifts')
|
214
|
+
end
|
215
|
+
|
216
|
+
def find_ambassador_url
|
217
|
+
store_url('/find_ambassador')
|
218
|
+
end
|
219
|
+
|
220
|
+
def ambassador_direct_url
|
221
|
+
store_url('/ambassador-direct')
|
222
|
+
end
|
223
|
+
|
224
|
+
def upgrade_url
|
225
|
+
store_url('/upgrade')
|
226
|
+
end
|
227
|
+
|
228
|
+
def back_office_url
|
229
|
+
store_url('/back_office')
|
230
|
+
end
|
231
|
+
|
232
|
+
# External Paths
|
233
|
+
def forever_live_url
|
234
|
+
"http://www.foreverlive2016.com"
|
235
|
+
end
|
236
|
+
|
237
|
+
def facebook_url
|
238
|
+
"https://www.facebook.com/Forever"
|
239
|
+
end
|
240
|
+
|
241
|
+
def twitter_url
|
242
|
+
"https://www.twitter.com/forever"
|
243
|
+
end
|
244
|
+
|
245
|
+
def instagram_url
|
246
|
+
"https://www.instagram.com/forever_inc/"
|
247
|
+
end
|
248
|
+
|
249
|
+
def youtube_url
|
250
|
+
"https://www.youtube.com/channel/UCfBFL_W3FYW7W0wAr4EEGnA"
|
251
|
+
end
|
252
|
+
|
253
|
+
def pinterest_url
|
254
|
+
"https://www.pinterest.com/FOREVER/"
|
255
|
+
end
|
256
|
+
|
257
|
+
def blog_url
|
258
|
+
"https://blog.forever.com/"
|
259
|
+
end
|
260
|
+
|
261
|
+
def help_center_url
|
262
|
+
"https://forever1.zendesk.com/hc/en-us"
|
263
|
+
end
|
264
|
+
|
265
|
+
def contact_us_url
|
266
|
+
"https://forever1.zendesk.com/hc/en-us/requests/new"
|
267
|
+
end
|
268
|
+
|
269
|
+
def web_faq_url
|
270
|
+
"https://forever1.zendesk.com/hc/en-us/categories/200175058-Forever-Web-Mobile-Apps"
|
271
|
+
end
|
272
|
+
|
273
|
+
def artisan_faq_url
|
274
|
+
"https://forever1.zendesk.com/hc/en-us/sections/200632048-Artisan-software"
|
275
|
+
end
|
276
|
+
|
277
|
+
def historian_faq_url
|
278
|
+
"https://forever1.zendesk.com/hc/en-us/sections/200520187-Historian"
|
279
|
+
end
|
280
|
+
|
281
|
+
# TODO get updated videos on Zendesk
|
282
|
+
def zendesk_overview_video_url
|
283
|
+
"https://forever1.zendesk.com/hc/en-us/articles/204874607"
|
284
|
+
end
|
285
|
+
|
286
|
+
def zendesk_uploading_video_url
|
287
|
+
"https://forever1.zendesk.com/hc/en-us/articles/204496797"
|
288
|
+
end
|
289
|
+
|
290
|
+
def zendesk_organizing_video_url
|
291
|
+
"https://forever1.zendesk.com/hc/en-us/articles/203811218"
|
292
|
+
end
|
293
|
+
|
294
|
+
def zendesk_sharing_video_url
|
295
|
+
"https://forever1.zendesk.com/hc/en-us/articles/203935338"
|
296
|
+
end
|
297
|
+
|
298
|
+
def zendesk_tour_video_url
|
299
|
+
"https://forever1.zendesk.com/hc/en-us/articles/203913608"
|
300
|
+
end
|
301
|
+
|
302
|
+
def zendesk_albums_video_url
|
303
|
+
"https://forever1.zendesk.com/hc/en-us/articles/218144057"
|
304
|
+
end
|
305
|
+
|
306
|
+
def zendesk_tags_video_url
|
307
|
+
"https://forever1.zendesk.com/hc/en-us/articles/203834548"
|
308
|
+
end
|
309
|
+
|
310
|
+
def zendesk_dates_video_url
|
311
|
+
"https://forever1.zendesk.com/hc/en-us/articles/206462457"
|
312
|
+
end
|
313
|
+
|
314
|
+
# Path helpers for style guide dummy app
|
6
315
|
def style_guide_path
|
7
316
|
Rails.application.routes.named_routes[:forever_style_guide].path.spec.to_s
|
8
317
|
end
|
@@ -31,6 +340,5 @@ module ForeverStyleGuide
|
|
31
340
|
partial = File.read("#{style_guide_root}/app/views/#{partial_path}")
|
32
341
|
escape_for_display(partial)
|
33
342
|
end
|
34
|
-
|
35
343
|
end
|
36
344
|
end
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
<%= render partial: "layouts/forever_style_guide/navigation" %>
|
3
|
-
</header>
|
1
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav" %>
|
4
2
|
|
5
3
|
<div class="hero_simple hero_simple-sample">
|
6
4
|
<div class="container-fluid">
|
@@ -1,34 +1,50 @@
|
|
1
|
-
<%= render partial: "
|
1
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav" %>
|
2
2
|
|
3
|
-
<div class="
|
4
|
-
<div class="container
|
5
|
-
<
|
3
|
+
<div class="hero_simple hero_simple-sample">
|
4
|
+
<div class="container-fluid">
|
5
|
+
<div class="row">
|
6
|
+
<div class="col-xs-12 text-center color_block-trans-secondary hero_simple-block">
|
7
|
+
<h1 class="page-title color-white hero_simple-shadow">Check out our Unified Nav Component</h1>
|
8
|
+
<h2 class="page-title color-white hero_simple-shadow hero_simple-subheading">It gives users a robust and consistent experience</h2>
|
9
|
+
<%= link_to 'Primary Action', "#", class: 'btn btn-lg btn-primary hero_simple-block-cta', title: "Primary Action" %>
|
10
|
+
<%= link_to 'Learn More', "#", class: 'btn btn-lg btn-artisan btn-inverse hero_simple-block-cta', title: "Learn More" %>
|
11
|
+
</div>
|
12
|
+
</div>
|
6
13
|
</div>
|
7
14
|
</div>
|
8
15
|
|
9
|
-
<div>
|
10
|
-
|
11
|
-
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
</
|
16
|
+
<div class="color_block-white">
|
17
|
+
<div class="container">
|
18
|
+
<div class="l-padded-thick" style="min-height: 800px;">
|
19
|
+
<h1>New Nav & Forever Style Guide 3.0.0</h1>
|
20
|
+
<ol>
|
21
|
+
<li class="l-section">Make sure you're using the style guide 3.0 gem
|
22
|
+
<pre class="well">
|
23
|
+
gem 'forever_style_guide', '3.0.0'
|
24
|
+
</pre>
|
25
|
+
</li>
|
26
|
+
<li class="l-section">
|
27
|
+
Add a helper to display to your application to use whole components from the style guide (not just styles)
|
28
|
+
<pre class="well">
|
29
|
+
def styleguide_component(type, properties)
|
30
|
+
render "forever_style_guide/sections/components/#{type}", properties
|
31
|
+
end
|
32
|
+
</pre>
|
33
|
+
</li>
|
34
|
+
<li class="l-section">
|
35
|
+
Call the components into your views
|
36
|
+
<pre class="well">
|
37
|
+
<%= styleguide_component("navigation/nav", nil) %>
|
38
|
+
</pre>
|
39
|
+
</li>
|
26
40
|
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
41
|
+
<li class="l-section">
|
42
|
+
The styleguide handles routing for all the apps to point at marketing site, store and web app.
|
43
|
+
<pre class="well">
|
44
|
+
app/helpers/forever_style_guide/application_helper.rb
|
45
|
+
</pre>
|
46
|
+
</li>
|
47
|
+
</ol>
|
48
|
+
</div>
|
33
49
|
</div>
|
34
50
|
</div>
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
<%= render partial: "forever_style_guide/sections/components/navigation/marketing_signed_in" %>
|
3
|
-
</header>
|
1
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav" %>
|
4
2
|
|
5
3
|
<!-- Promo banner markup -->
|
6
4
|
<div class="promo_banner container-fluid">
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<header id='header-is_fixed'>
|
2
|
+
<nav class='navbar navbar-default color_block-white' role='navigation'>
|
3
|
+
|
4
|
+
<div class='navbar-header'>
|
5
|
+
<button type="button" class="navbar-toggle offcanvas-toggle pull-left nav-icon-stack" data-toggle="offcanvas" data-target="#js-main-nav-offcanvas">
|
6
|
+
<i class='fa fa-reorder'></i>
|
7
|
+
<span class='nav-icon-label'>Menu</span>
|
8
|
+
</button>
|
9
|
+
|
10
|
+
<div class="navbar-brand">
|
11
|
+
<%= link_to marketing_home_url, title: 'Forever Guaranteed Storage, Digital Scrapbooking, and Printing Logo' do %>
|
12
|
+
<%= image_tag image_url("forever_style_guide/forever-logo.jpg"), class: "navbar-brand-logo", alt: "Forever Guaranteed Storage, Digital Scrapbooking, and Printing Logo", title: 'Forever Guaranteed Storage, Digital Scrapbooking, and Printing Logo' %>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<!-- Show cart in primary header bar on mobile: see nav_account_dropdown.erb for desktop -->
|
17
|
+
<%= link_to cart_url, class: 'visible-grid-float-breakpoint nav-icon-stack cart-icon', title:'View Your Shopping Cart', id: 'mini-cart' do %>
|
18
|
+
<i class='fa fa-shopping-cart'></i>
|
19
|
+
<span class='nav-icon-label'>Cart</span>
|
20
|
+
<% end %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="navbar-offcanvas" id="js-main-nav-offcanvas">
|
24
|
+
<div class="navbar-offcanvas-container">
|
25
|
+
|
26
|
+
<ul class='nav navbar-nav navbar-left'>
|
27
|
+
|
28
|
+
<li class="visible-xs visible-sm">
|
29
|
+
<div class="navbar-toggle navbar-toggle-close color_block-white" id="js-close-main-nav">
|
30
|
+
<div class="nav-icon-stack pull-left navbar-toggle-close-left">
|
31
|
+
<i class='fa fa-close'></i>
|
32
|
+
<span class='nav-icon-label'>Close</span>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</li>
|
36
|
+
|
37
|
+
<li class='dropdown dropdown-full_width'>
|
38
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_my_forever_dropdown" %>
|
39
|
+
</li>
|
40
|
+
|
41
|
+
<li class='dropdown dropdown-full_width'>
|
42
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_products_dropdown" %>
|
43
|
+
</li>
|
44
|
+
|
45
|
+
<li class='dropdown dropdown-full_width'>
|
46
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_community_dropdown" %>
|
47
|
+
</li>
|
48
|
+
</ul>
|
49
|
+
|
50
|
+
<ul class='nav navbar-nav navbar-right'>
|
51
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_account_dropdown" %>
|
52
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_ambassador_dropdown" %>
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
<%= render partial: "forever_style_guide/sections/components/navigation/nav_account_signed_out_mobile" %>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
</nav>
|
60
|
+
</header>
|