station 0.0.114 → 0.0.121
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/lib/nexmo_developer/Gemfile +11 -11
- data/lib/nexmo_developer/Gemfile.lock +195 -128
- data/lib/nexmo_developer/app/assets/stylesheets/application.css +8 -1
- data/lib/nexmo_developer/app/controllers/static_controller.rb +1 -0
- data/lib/nexmo_developer/app/models/tutorial/file_loader.rb +11 -7
- data/lib/nexmo_developer/app/models/tutorial/task.rb +27 -1
- data/lib/nexmo_developer/app/presenters/code_snippets_home_presenter.rb +26 -0
- data/lib/nexmo_developer/app/presenters/footer.rb +2 -3
- data/lib/nexmo_developer/app/presenters/header.rb +0 -31
- data/lib/nexmo_developer/app/services/orbit_feedback_notifier.rb +0 -3
- data/lib/nexmo_developer/app/views/contribute/code-snippets/how-to-update-code-snippets.md +1 -1
- data/lib/nexmo_developer/app/views/contribute/code-snippets/sample-code-snippet.md +1 -1
- data/lib/nexmo_developer/app/views/contribute/guides/markdown-guide.md +3 -3
- data/lib/nexmo_developer/app/views/layouts/application.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/documentation-index.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/documentation.html.erb +6 -0
- data/lib/nexmo_developer/app/views/layouts/landing.html.erb +4 -2
- data/lib/nexmo_developer/app/views/layouts/page.html.erb +0 -1
- data/lib/nexmo_developer/app/views/layouts/partials/_code_snippets_home.html.erb +38 -0
- data/lib/nexmo_developer/app/views/layouts/partials/_footer.html.erb +33 -32
- data/lib/nexmo_developer/app/views/layouts/partials/_header.html.erb +90 -31
- data/lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb +3 -4
- data/lib/nexmo_developer/app/views/layouts/partials/_sidenav_subitem.html.erb +3 -0
- data/lib/nexmo_developer/app/webpacker/javascript/components/concatenation/character_counter.js +5 -3
- data/lib/nexmo_developer/app/webpacker/javascript/components/jwt_generator/JwtGenerator.vue +1 -1
- data/lib/nexmo_developer/app/webpacker/javascript/components/search/Search.vue +80 -19
- data/lib/nexmo_developer/app/webpacker/javascript/sidenav/index.js +14 -10
- data/lib/nexmo_developer/app/webpacker/javascript/topnav/index.js +33 -0
- data/lib/nexmo_developer/app/webpacker/javascript/volta_tabbed_examples/index.js +3 -1
- data/lib/nexmo_developer/app/webpacker/packs/application.js +16 -5
- data/lib/nexmo_developer/app/webpacker/stylesheets/application.scss +4 -0
- data/lib/nexmo_developer/app/webpacker/stylesheets/custom/_core.scss +8 -4
- data/lib/nexmo_developer/app/webpacker/stylesheets/custom/_landing.scss +470 -0
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_footer.scss +45 -23
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_header.scss +163 -138
- data/lib/nexmo_developer/app/webpacker/stylesheets/layout/_search.scss +2 -5
- data/lib/nexmo_developer/app/webpacker/stylesheets/objects/_navigation.scss +19 -2
- data/lib/nexmo_developer/lib/tasks/ci.rake +23 -1
- data/lib/nexmo_developer/public/vonage_developer_logo.svg +26 -0
- data/lib/nexmo_developer/version.rb +1 -1
- data/package.json +39 -36
- data/station.gemspec +13 -13
- data/yarn.lock +1411 -1160
- metadata +76 -73
- data/lib/nexmo_developer/app/presenters/topnav.rb +0 -23
- data/lib/nexmo_developer/app/presenters/topnav_item.rb +0 -19
@@ -1,33 +1,37 @@
|
|
1
1
|
#footer {
|
2
|
+
min-height: 336px;
|
2
3
|
background: $black;
|
3
4
|
border-radius: 4px;
|
4
5
|
color: rgba($white, 0.7);
|
5
|
-
padding: $spacing*2 0 $spacing;
|
6
|
-
margin-top: $spacing;
|
7
6
|
line-height: 1.8;
|
8
7
|
z-index: 2;
|
9
|
-
flex: 0 0 100%;
|
10
8
|
width: 100%;
|
11
9
|
|
10
|
+
@media #{$L-plus} {
|
11
|
+
padding: 0 95px;
|
12
|
+
}
|
13
|
+
|
12
14
|
.container {
|
15
|
+
background: $black;
|
13
16
|
display: flex;
|
17
|
+
margin: 80px auto;
|
14
18
|
flex-wrap: wrap;
|
15
19
|
|
20
|
+
@media #{$S-only} {
|
21
|
+
margin: 40px auto;
|
22
|
+
}
|
23
|
+
|
16
24
|
> div {
|
17
25
|
flex: 3;
|
18
|
-
margin-right: 2.5%;
|
19
26
|
min-width: 150px;
|
20
27
|
margin-bottom: $spacing;
|
21
28
|
}
|
22
29
|
|
23
|
-
#footer-support {
|
24
|
-
flex: 2;
|
25
|
-
}
|
26
|
-
|
27
30
|
#footer-outbound-links {
|
28
|
-
|
31
|
+
display: flex;
|
32
|
+
flex-direction: column;
|
29
33
|
min-width: 260px;
|
30
|
-
|
34
|
+
align-items: center;
|
31
35
|
|
32
36
|
h5 {
|
33
37
|
margin-bottom: 0px;
|
@@ -40,6 +44,10 @@
|
|
40
44
|
a {
|
41
45
|
display: flex;
|
42
46
|
}
|
47
|
+
|
48
|
+
@media #{$S-only} {
|
49
|
+
align-items: flex-start;
|
50
|
+
}
|
43
51
|
}
|
44
52
|
|
45
53
|
@include tablet {
|
@@ -47,12 +55,7 @@
|
|
47
55
|
flex-grow: 1.45;
|
48
56
|
}
|
49
57
|
|
50
|
-
#footer-support {
|
51
|
-
flex: 3;
|
52
|
-
}
|
53
|
-
|
54
58
|
#footer-outbound-links {
|
55
|
-
border-top: 1px solid $gray;
|
56
59
|
margin-top: $spacing;
|
57
60
|
flex: none;
|
58
61
|
width: 100%;
|
@@ -60,28 +63,36 @@
|
|
60
63
|
}
|
61
64
|
}
|
62
65
|
|
66
|
+
.Vlt-col {
|
67
|
+
@media #{$S-only} {
|
68
|
+
margin-bottom: 32px;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
63
72
|
h5 {
|
64
73
|
color: $white;
|
74
|
+
line-height: 24px;
|
75
|
+
padding-bottom: 8px;
|
65
76
|
}
|
66
77
|
|
67
78
|
a {
|
68
79
|
color: rgba($white, 0.7);
|
69
80
|
font-size: 1.4rem;
|
70
81
|
display: block;
|
82
|
+
line-height: 14px;
|
71
83
|
|
72
84
|
&:hover {
|
73
85
|
color: $white;
|
74
86
|
}
|
75
87
|
}
|
88
|
+
|
89
|
+
p {
|
90
|
+
color: $white;
|
91
|
+
}
|
76
92
|
}
|
77
93
|
|
78
94
|
#footer-logo {
|
79
95
|
margin: 0 auto $spacing;
|
80
|
-
max-width: 350px;
|
81
|
-
|
82
|
-
.Nxd-product__separator {
|
83
|
-
margin: 0 10px;
|
84
|
-
}
|
85
96
|
|
86
97
|
.Nxd-product__title {
|
87
98
|
align-items: baseline;
|
@@ -89,7 +100,12 @@
|
|
89
100
|
}
|
90
101
|
|
91
102
|
.Nxd-logo__image {
|
92
|
-
width:
|
103
|
+
width: 220px;
|
104
|
+
height: 28px;
|
105
|
+
}
|
106
|
+
|
107
|
+
@media #{$S-only} {
|
108
|
+
margin: auto auto 20px 0;
|
93
109
|
}
|
94
110
|
}
|
95
111
|
|
@@ -103,11 +119,17 @@
|
|
103
119
|
text-align: center;
|
104
120
|
font-size: 24px;
|
105
121
|
display: flex;
|
106
|
-
margin-top:
|
122
|
+
margin-top: 25px;
|
107
123
|
justify-content: center;
|
124
|
+
width: 100%;
|
125
|
+
justify-content: space-around;
|
108
126
|
|
109
127
|
a {
|
110
128
|
margin: 0 10px;
|
111
129
|
display: inline-block;
|
112
130
|
}
|
113
|
-
|
131
|
+
|
132
|
+
@media #{$S-only} {
|
133
|
+
justify-content: flex-start;
|
134
|
+
}
|
135
|
+
}
|
@@ -1,203 +1,224 @@
|
|
1
|
-
.
|
1
|
+
.Adp-header {
|
2
|
+
background-color: $black;
|
3
|
+
position: relative;
|
4
|
+
left: 0;
|
5
|
+
right: 0;
|
2
6
|
width: 100%;
|
3
|
-
z-index: 700;
|
4
|
-
display: flex;
|
5
|
-
flex-direction: column;
|
6
|
-
position: fixed;
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
font-family: Spezia;
|
9
|
+
font-size: 14px;
|
10
|
+
line-height: 20px;
|
11
11
|
}
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
.Nxd-header__main {
|
18
|
-
align-items: center;
|
19
|
-
background: $white;
|
20
|
-
color: $white;
|
13
|
+
.Adp-header__nav {
|
14
|
+
top: 0;
|
15
|
+
bottom: 62.37%;
|
16
|
+
height: 36px;
|
21
17
|
display: flex;
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
justify-content: flex-end;
|
19
|
+
align-items: center;
|
20
|
+
padding: 6px;
|
25
21
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
.Vlt-icon {
|
23
|
+
height: 8px;
|
24
|
+
width: 8px;
|
25
|
+
}
|
30
26
|
|
31
|
-
|
32
|
-
|
33
|
-
overflow: hidden;
|
34
|
-
}
|
27
|
+
a {
|
28
|
+
margin-right: 32px;
|
35
29
|
}
|
36
30
|
|
37
|
-
|
31
|
+
#signup {
|
32
|
+
background-color: $purple;
|
38
33
|
margin: 0;
|
39
34
|
}
|
40
|
-
}
|
41
35
|
|
42
|
-
|
43
|
-
|
44
|
-
max-width: 100%;
|
45
|
-
flex: 1 0 0;
|
36
|
+
#locale-switcher {
|
37
|
+
margin-right: 32px;
|
46
38
|
|
47
|
-
|
48
|
-
|
49
|
-
|
39
|
+
button {
|
40
|
+
height: 20px;
|
41
|
+
min-height: unset;
|
42
|
+
padding: 0;
|
43
|
+
font-weight: inherit;
|
44
|
+
}
|
45
|
+
|
46
|
+
.Vlt-dropdown__panel__content {
|
47
|
+
background: $black;
|
48
|
+
color: $grey;
|
49
|
+
box-shadow: inset 0 0 0 1px $black, 0 2px 5px rgba(0, 0, 0, 15%);
|
50
|
+
}
|
51
|
+
|
52
|
+
.Vlt-dropdown__link {
|
53
|
+
color: inherit;
|
54
|
+
}
|
50
55
|
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.Adp-header__sub {
|
59
|
+
bottom: 0;
|
60
|
+
top: 34.41%;
|
61
|
+
height: 60px;
|
62
|
+
display: flex;
|
63
|
+
align-items: center;
|
64
|
+
justify-content: space-between;
|
51
65
|
|
52
66
|
@media #{$S-only} {
|
53
|
-
|
67
|
+
padding: 0 18px;
|
54
68
|
}
|
55
69
|
|
56
|
-
|
57
|
-
|
58
|
-
|
70
|
+
.logo {
|
71
|
+
height: 28px;
|
72
|
+
align-self: center;
|
73
|
+
padding: 0 72px 0 24px;
|
59
74
|
|
60
|
-
|
61
|
-
|
75
|
+
@media #{$S-only} {
|
76
|
+
padding: 0 72px 0 0;
|
77
|
+
}
|
62
78
|
}
|
63
79
|
|
64
|
-
|
80
|
+
nav {
|
65
81
|
display: flex;
|
66
|
-
|
82
|
+
}
|
83
|
+
|
84
|
+
.Vlt-tabs__link {
|
85
|
+
padding: 0;
|
86
|
+
margin-right: 40px;
|
67
87
|
|
68
|
-
|
69
|
-
|
70
|
-
margin-bottom: 0px;
|
88
|
+
&:active {
|
89
|
+
background-color: $black !important;
|
71
90
|
}
|
72
|
-
}
|
73
91
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
margin: 0 21px;
|
78
|
-
border-left: 1px solid $black;
|
79
|
-
}
|
92
|
+
&:focus {
|
93
|
+
background-color: $black !important;
|
94
|
+
}
|
80
95
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
96
|
+
@media #{$S-only} {
|
97
|
+
padding: 0;
|
98
|
+
width: 100%;
|
99
|
+
min-height: 60px;
|
100
|
+
display: flex;
|
101
|
+
flex-direction: column;
|
102
|
+
justify-content: center;
|
86
103
|
|
87
|
-
|
88
|
-
|
89
|
-
|
104
|
+
&-menu {
|
105
|
+
align-items: flex-start;
|
106
|
+
}
|
107
|
+
}
|
90
108
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
109
|
+
p {
|
110
|
+
margin: 0;
|
111
|
+
display: inline;
|
112
|
+
}
|
95
113
|
|
96
|
-
|
97
|
-
|
98
|
-
margin: $unit2 $unit1;
|
99
|
-
color: rgba($white, 80);
|
114
|
+
a {
|
115
|
+
line-height: 24px;
|
100
116
|
|
101
|
-
|
102
|
-
|
103
|
-
|
117
|
+
&:hover {
|
118
|
+
text-decoration: none;
|
119
|
+
}
|
120
|
+
}
|
104
121
|
|
105
|
-
|
106
|
-
|
122
|
+
button:hover {
|
123
|
+
text-decoration: none;
|
107
124
|
}
|
108
|
-
}
|
109
125
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
}
|
126
|
+
svg {
|
127
|
+
height: 15px;
|
128
|
+
width: 15px;
|
129
|
+
}
|
114
130
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
flex-wrap: wrap;
|
120
|
-
padding: 0 $unit2 4px;
|
121
|
-
position: relative;
|
131
|
+
&:after {
|
132
|
+
background: none;
|
133
|
+
}
|
134
|
+
}
|
122
135
|
|
123
136
|
&__menu {
|
124
|
-
|
137
|
+
display: flex;
|
138
|
+
align-items: center;
|
139
|
+
line-height: 24px;
|
140
|
+
}
|
125
141
|
|
126
|
-
|
127
|
-
|
128
|
-
|
142
|
+
.Vlt-topmenu {
|
143
|
+
width: 100%;
|
144
|
+
visibility: hidden;
|
145
|
+
z-index: 15;
|
146
|
+
display: block;
|
147
|
+
position: absolute;
|
148
|
+
left: 0;
|
149
|
+
overflow: hidden;
|
150
|
+
min-width: 130px;
|
129
151
|
|
130
152
|
@media #{$S-only} {
|
131
|
-
|
132
|
-
|
153
|
+
display: flex;
|
154
|
+
flex-direction: column;
|
133
155
|
}
|
134
|
-
}
|
135
156
|
|
136
|
-
|
137
|
-
|
138
|
-
min-width: 350px;
|
139
|
-
|
140
|
-
@media only screen and (max-width: 876px) {
|
141
|
-
min-width: auto;
|
142
|
-
float: none;
|
143
|
-
margin-top: -$unit1;
|
144
|
-
margin-bottom: -$unit1;
|
145
|
-
margin-right: -$unit2;
|
146
|
-
flex-shrink: 0;
|
147
|
-
|
148
|
-
.Vlt-input input {
|
149
|
-
border: 0;
|
150
|
-
border-left: 1px solid $grey;
|
151
|
-
border-radius: 0;
|
152
|
-
}
|
157
|
+
&-active {
|
158
|
+
visibility: visible;
|
153
159
|
|
154
|
-
|
155
|
-
|
156
|
-
width: 0;
|
160
|
+
@media #{$S-only} {
|
161
|
+
position: static;
|
157
162
|
}
|
158
163
|
|
159
|
-
.
|
160
|
-
|
164
|
+
.Vlt-tabs__link-menu b {
|
165
|
+
text-decoration: underline;
|
161
166
|
}
|
162
167
|
}
|
163
168
|
}
|
164
|
-
}
|
165
|
-
|
166
|
-
#locale-switcher {
|
167
|
-
margin-right: 24px;
|
168
|
-
|
169
|
-
@media only screen and (max-width: 320px) {
|
170
|
-
margin-right: 0px;
|
171
|
-
}
|
172
169
|
|
173
|
-
.
|
170
|
+
.Adp-header__sub__menu {
|
174
171
|
@media #{$S-only} {
|
175
|
-
|
176
|
-
|
172
|
+
position: absolute;
|
173
|
+
height: 100vh;
|
174
|
+
width: 100vw;
|
175
|
+
background: $black;
|
176
|
+
z-index: 10;
|
177
|
+
top: 60px;
|
178
|
+
left: 0;
|
179
|
+
display: flex;
|
180
|
+
flex-direction: column;
|
181
|
+
padding: 50px;
|
182
|
+
align-items: flex-start;
|
177
183
|
}
|
184
|
+
}
|
178
185
|
|
179
|
-
|
180
|
-
|
186
|
+
.Vlt-header__backdrop {
|
187
|
+
background: black;
|
188
|
+
height: 0px;
|
189
|
+
position: absolute;
|
190
|
+
width: 100%;
|
191
|
+
top: 96px;
|
192
|
+
|
193
|
+
&-active {
|
194
|
+
height: 214px;
|
195
|
+
z-index: 10;
|
196
|
+
|
197
|
+
@media #{$S-only} {
|
181
198
|
display: none;
|
182
199
|
}
|
183
|
-
margin-top: -4px;
|
184
200
|
}
|
185
201
|
}
|
186
202
|
|
187
|
-
.Vlt-
|
188
|
-
|
189
|
-
|
190
|
-
|
203
|
+
.Vlt-topmenu__items {
|
204
|
+
height: auto;
|
205
|
+
display: flex;
|
206
|
+
flex-direction: column;
|
207
|
+
|
208
|
+
@media #{$S-only} {
|
209
|
+
align-items: center;
|
210
|
+
}
|
191
211
|
|
192
|
-
.
|
193
|
-
|
194
|
-
|
212
|
+
.Vlt-topmenu__item {
|
213
|
+
margin-bottom: 16px;
|
214
|
+
}
|
215
|
+
}
|
195
216
|
}
|
196
217
|
|
197
218
|
#skip-to-content, #skip-to-navigation {
|
198
219
|
left: 67%;
|
199
220
|
position: absolute;
|
200
|
-
transform: translateY(-
|
221
|
+
transform: translateY(-2000%);
|
201
222
|
transition: transform 0.3s;
|
202
223
|
|
203
224
|
&:focus {
|
@@ -205,3 +226,7 @@
|
|
205
226
|
z-index: 1000;
|
206
227
|
}
|
207
228
|
}
|
229
|
+
|
230
|
+
.subnav-logo {
|
231
|
+
display: flex;
|
232
|
+
}
|