station 0.0.120 → 0.0.121

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