18
18
< div class ="o-layout__module c-utility-nav ">
19
19
< nav class ="o-menu o-menu--flex ">
20
20
< ul id ="menu-header-utility " class ="o-menu__list ">
21
+ < li class ="o-menu__item o-menu__item--search "> < a class ="o-menu__link " href ="https://www.linode.com/search/ "> < span class ="o-menu__title "> Search</ span > </ a > </ li >
21
22
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/partners/ "> < span class ="o-menu__title "> Partners</ span > </ a > </ li >
22
23
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/docs/ "> < span class ="o-menu__title "> Docs</ span > </ a > </ li >
23
24
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/support/ "> < span class ="o-menu__title "> Support</ span > </ a > </ li >
59
60
< li class ="o-menu__item "> < a class ="o-menu__link " href ="#sub-menu--products "> < span class ="o-menu__title "> Products</ span > </ a > </ li >
60
61
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/solutions/ "> < span class ="o-menu__title "> Solutions</ span > </ a > </ li >
61
62
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/marketplace/ "> < span class ="o-menu__title "> Marketplace</ span > </ a > </ li >
62
- < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/ pricing/ "> < span class ="o-menu__title "> Pricing</ span > </ a > </ li >
63
+ < li class ="o-menu__item "> < a class ="o-menu__link " href ="#sub-menu-- pricing "> < span class ="o-menu__title "> Pricing</ span > </ a > </ li >
63
64
< li class ="o-menu__item "> < a class ="o-menu__link " href ="#sub-menu--community "> < span class ="o-menu__title "> Community</ span > </ a > </ li >
64
65
< li class ="o-menu__item o-menu__item--sign-up "> < a class ="o-menu__link " href ="https://login.linode.com/signup "> < span class ="o-menu__title "> Sign Up</ span > </ a > </ li >
65
66
< li class ="o-menu__item o-menu__item--search "> < a class ="o-menu__link " href ="https://www.linode.com/search/ "> < span class ="o-menu__title "> Search</ span > </ a > </ li >
84
85
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/products/ "> < span class ="o-menu__title "> Products</ span > </ a > </ li >
85
86
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/solutions/ "> < span class ="o-menu__title "> Solutions</ span > </ a > </ li >
86
87
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/marketplace/ "> < span class ="o-menu__title "> Marketplace</ span > </ a > </ li >
87
- < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/pricing / "> < span class ="o-menu__title "> Pricing </ span > </ a > </ li >
88
+ < li class ="o-menu__item o-menu__item--search "> < a class ="o-menu__link " href ="https://www.linode.com/search / "> < span class ="o-menu__title "> Search </ span > </ a > </ li >
88
89
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/community/ "> < span class ="o-menu__title "> Community</ span > </ a > </ li >
89
90
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/company/about/ "> < span class ="o-menu__title "> About Us</ span > </ a > </ li >
90
91
</ ul >
122
123
123
124
< div class ="o-layout__row c-sub-menu c-sub-menu--why-linode " id ="sub-menu--why-linode ">
124
125
< div class ="o-layout__colset ">
126
+ < div class ="o-layout__col ">
127
+
128
+ < div class ="o-layout__module ">
129
+ < h6 >
130
+ Featured</ h6 >
131
+ < a id ="c-featured--why_linode " class ="c-featured " href ="https://www.linode.com/spotlight/cloudnet/ " style ="--c-featured-color:#ffffff; ">
132
+ < img width ="632 " height ="279 " src ="https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-632x279.jpg " class ="c-featured__background " alt ="" srcset ="https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-632x279.jpg 632w, https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-1064x470.jpg 1064w, https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-416x184.jpg 416w, https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-768x339.jpg 768w, https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-1536x678.jpg 1536w, https://www.linode.com/wp-content/uploads/2020/08/cloudnet-hero-1-scaled-1-2048x904.jpg 2048w " sizes ="(max-width: 632px) 100vw, 632px " /> < div class ="c-featured__text ">
133
+ < div class ="c-featured__headline "> < b > Craft of Code:</ b > < br > Cloudnet</ div >
134
+ < div class ="c-featured__excerpt "> Reliability Allows Customers (and Cloudnet) To Do What They Love</ div >
135
+ < span class ="c-featured__button " href ="https://www.linode.com/spotlight/cloudnet/ "> Read Cloudnet's Story</ span >
136
+ </ div >
137
+ </ a >
138
+ </ div >
139
+
140
+ </ div >
125
141
< div class ="o-layout__col ">
126
142
127
143
< div class ="o-layout__module ">
@@ -154,17 +170,40 @@ <h6>Get to Know Us Better</h6>
154
170
</ nav >
155
171
</ div >
156
172
157
- </ div >
158
- < div class ="o-layout__col ">
159
-
160
-
161
173
</ div >
162
174
</ div >
163
175
</ div >
164
176
165
177
166
178
< div class ="o-layout__row c-sub-menu c-sub-menu--products " id ="sub-menu--products ">
167
179
< div class ="o-layout__colset ">
180
+ < div class ="o-layout__col ">
181
+
182
+ < div class ="o-layout__module ">
183
+ < h6 >
184
+ Featured</ h6 >
185
+ < a id ="c-featured--products " class ="c-featured " href ="https://www.linode.com/products/gpu/ " style ="--c-featured-border-width:2px;--c-featured-border-color:#ededf4; ">
186
+ < img width ="400 " height ="339 " src ="https://www.linode.com/wp-content/uploads/2020/08/mum-fg.png " class ="c-featured__image " alt ="" /> < div class ="c-featured__text ">
187
+ < div class ="c-featured__headline "> < b > GPUs have landed in Mumbai!</ b > </ div >
188
+ < div class ="c-featured__excerpt "> On-demand GPUs for machine learning, scientific computing, and video processing.</ div >
189
+ < span class ="c-featured__button " href ="https://www.linode.com/products/gpu/ "> Try Today</ span >
190
+ </ div >
191
+ </ a >
192
+ < style >
193
+ # c-featured--products .c-featured__image {
194
+ align-self : flex-end;
195
+ margin-bottom : -24px ;
196
+ margin-left : -24px ;
197
+ margin-right : -24px ;
198
+ max-width : 50% ;
199
+ }</ style >
200
+ </ div >
201
+
202
+ < div class ="o-layout__module c-sub-menu__view_all ">
203
+ < a href ="/products/ " class ="o-link--arrow "> View All Products</ a >
204
+ </ div >
205
+
206
+ </ div >
168
207
< div class ="o-layout__col ">
169
208
170
209
< div class ="o-layout__module ">
@@ -232,16 +271,39 @@ <h6>Developer Tools</h6>
232
271
</ div >
233
272
234
273
</ div >
274
+ </ div >
275
+ </ div >
276
+
277
+
278
+ < div class ="o-layout__row c-sub-menu c-sub-menu--pricing " id ="sub-menu--pricing ">
279
+ < div class ="o-layout__colset ">
235
280
< div class ="o-layout__col ">
236
281
282
+ < div class ="o-layout__module ">
283
+ < h6 >
284
+ Featured</ h6 >
285
+ < a id ="c-featured--pricing " class ="c-featured " href ="https://www.linode.com/lp/tco-calculator/ " style ="--c-featured-border-width:2px;--c-featured-border-color:#ededf4; ">
286
+ < img width ="416 " height ="376 " src ="https://www.linode.com/wp-content/uploads/2020/08/TCOReport_MockUp2-416x376.png " class ="c-featured__image " alt ="" srcset ="https://www.linode.com/wp-content/uploads/2020/08/TCOReport_MockUp2-416x376.png 416w, https://www.linode.com/wp-content/uploads/2020/08/TCOReport_MockUp2.png 620w " sizes ="(max-width: 416px) 100vw, 416px " /> < div class ="c-featured__text ">
287
+ < div class ="c-featured__headline "> Total Cost of Ownership Calculator</ div >
288
+ < div class ="c-featured__excerpt "> Migrating from on-premises or between cloud providers for hosting, cloud storage, or cloud computing? </ div >
289
+ < span class ="c-featured__button " href ="https://www.linode.com/lp/tco-calculator/ "> Launch Calculator</ span >
290
+ </ div >
291
+ </ a >
292
+ </ div >
237
293
238
294
</ div >
239
- </ div >
240
- < div class ="o-layout__colset ">
295
+
241
296
< div class ="o-layout__col ">
242
297
243
298
< div class ="o-layout__module ">
244
- < a href ="/products/ " class ="o-link--arrow "> View All Products</ a >
299
+ < h6 > Pricing</ h6 >
300
+ < nav class ="o-menu ">
301
+ < ul class ="o-menu__list ">
302
+ < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/pricing/ "> < span class ="o-menu__title "> Pricing List</ span > </ a > </ li >
303
+ < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/estimator/ "> < span class ="o-menu__title "> Cloud Estimator</ span > </ a > </ li >
304
+ < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/cloud-pricing-calculator/ "> < span class ="o-menu__title "> TCO Calculator</ span > </ a > </ li >
305
+ </ ul >
306
+ </ nav >
245
307
</ div >
246
308
247
309
</ div >
@@ -251,6 +313,21 @@ <h6>Developer Tools</h6>
251
313
252
314
< div class ="o-layout__row c-sub-menu c-sub-menu--community " id ="sub-menu--community ">
253
315
< div class ="o-layout__colset ">
316
+ < div class ="o-layout__col ">
317
+
318
+ < div class ="o-layout__module ">
319
+ < h6 >
320
+ Featured</ h6 >
321
+ < a id ="c-featured--community " class ="c-featured " href ="https://www.linode.com/marketplace/apps/linode/nextcloud/ " style ="--c-featured-color:#ffffff; ">
322
+ < img width ="632 " height ="418 " src ="https://www.linode.com/wp-content/uploads/2020/08/nextcloud-gradient-632x418.png " class ="c-featured__background " alt ="" srcset ="https://www.linode.com/wp-content/uploads/2020/08/nextcloud-gradient-632x418.png 632w, https://www.linode.com/wp-content/uploads/2020/08/nextcloud-gradient-416x275.png 416w, https://www.linode.com/wp-content/uploads/2020/08/nextcloud-gradient-768x508.png 768w, https://www.linode.com/wp-content/uploads/2020/08/nextcloud-gradient.png 1000w " sizes ="(max-width: 632px) 100vw, 632px " /> < img width ="416 " height ="416 " src ="https://www.linode.com/wp-content/uploads/2020/05/linode-nextcloud-white.svg " class ="c-featured__image " alt ="" srcset ="https://www.linode.com/wp-content/uploads//2020/05/linode-nextcloud-white.svg 416w, https://www.linode.com/wp-content/uploads//2020/05/linode-nextcloud-white.svg 632w, https://www.linode.com/wp-content/uploads//2020/05/linode-nextcloud-white.svg 1064w " sizes ="(max-width: 416px) 100vw, 416px " /> < div class ="c-featured__text ">
323
+ < div class ="c-featured__headline "> New One Click App:< br > < b > Nextcloud</ b > </ div >
324
+ < div class ="c-featured__excerpt "> Open source productivity and storage management platform.</ div >
325
+ < span class ="c-featured__button " href ="https://www.linode.com/marketplace/apps/linode/nextcloud/ "> Deploy App</ span >
326
+ </ div >
327
+ </ a >
328
+ </ div >
329
+
330
+ </ div >
254
331
< div class ="o-layout__col ">
255
332
256
333
< div class ="o-layout__module ">
@@ -261,6 +338,7 @@ <h6>Community</h6>
261
338
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/community/questions/ "> < span class ="o-menu__title "> Q&A</ span > </ a > </ li >
262
339
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/developers/ "> < span class ="o-menu__title "> Developer Portal</ span > </ a > </ li >
263
340
< li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/blog/ "> < span class ="o-menu__title "> Blog</ span > </ a > </ li >
341
+ < li class ="o-menu__item "> < a class ="o-menu__link " href ="https://www.linode.com/green-light/ "> < span class ="o-menu__title "> Beta Program</ span > </ a > </ li >
264
342
</ ul >
265
343
</ nav >
266
344
</ div >
@@ -299,12 +377,11 @@ <h6>Engage With Us</h6>
299
377
'use strict' ;
300
378
301
379
// elements we'll be listening on or manipulating
302
- var $html , $header , $main_menu , $switches , $ sub_menus; // element bindings
380
+ var $html , $header , $main_menu , $sub_menus ; // element bindings
303
381
304
382
var bindElements = function bindElements ( ) {
305
383
$header = document . querySelector ( '.c-site-header' ) ;
306
384
$main_menu = document . querySelector ( '.c-main-menu' ) ;
307
- $switches = $main_menu . querySelectorAll ( '.o-menu__switch' ) ;
308
385
$sub_menus = document . querySelectorAll ( '.c-sub-menu' ) ;
309
386
} ; // event bindings
310
387
@@ -320,6 +397,7 @@ <h6>Engage With Us</h6>
320
397
321
398
if ( $target_sub_menu . classList . contains ( 'active' ) ) {
322
399
closeAllSubMenus ( ) ;
400
+ $clicked_link . blur ( ) ;
323
401
$clicked_link . classList . remove ( 'active' ) ;
324
402
$target_sub_menu . classList . remove ( 'active' ) ;
325
403
setHtmlScrollState ( true ) ; // Else clicked menu was not active
@@ -349,16 +427,14 @@ <h6>Engage With Us</h6>
349
427
switch ( event . keyCode ) {
350
428
case 27 :
351
429
closeAllSubMenus ( ) ;
430
+ document . activeElement . blur ( ) ;
352
431
setHtmlScrollState ( true ) ;
353
432
break ;
354
433
}
355
434
} ) ;
356
435
} ;
357
436
358
437
var closeAllSubMenus = function closeAllSubMenus ( ) {
359
- $switches . forEach ( function ( $switch ) {
360
- $switch . classList . remove ( 'active' ) ;
361
- } ) ;
362
438
$sub_menus . forEach ( function ( $sub_menu ) {
363
439
$sub_menu . classList . remove ( 'active' ) ;
364
440
} ) ;
@@ -384,7 +460,7 @@ <h6>Engage With Us</h6>
384
460
} // find all header links that match this path
385
461
386
462
387
- $current_links = $header . querySelectorAll ( 'a[href$="' + current_path + '"]' ) ; // add "current" class to found item
463
+ $current_links = $header . querySelectorAll ( 'a.o-menu__link [href$="' + current_path + '"]' ) ; // add "current" class to found item
388
464
389
465
$current_links . forEach ( function ( $link ) {
390
466
$link . classList . add ( 'current' ) ; // find any parent submenus
0 commit comments