@openstack_dev/gatsby-theme-marketing-oif-core 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,3 +73,5 @@ redirects:
73
73
  to: /marketplaceadmin/
74
74
  - from: /api/*
75
75
  to: /api/
76
+ - from: /community
77
+ to: /community
package/netlify.toml CHANGED
@@ -3,256 +3,263 @@
3
3
  # Define which paths this specific [[headers]] block will cover.
4
4
  for = "/*"
5
5
  [headers.values]
6
- Authorization = "Basic undefined"
6
+ Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI"
7
7
 
8
8
  [[redirects]]
9
9
  from = "/marketplace/*"
10
- to = "undefined/marketplace/:splat"
10
+ to = "https://devbranch.openstack.org/marketplace/:splat"
11
11
  status = 200
12
12
  force = true
13
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
13
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
14
14
 
15
15
  [[redirects]]
16
16
  from = "/themes/*"
17
- to = "undefined/themes/:splat"
17
+ to = "https://devbranch.openstack.org/themes/:splat"
18
18
  status = 200
19
19
  force = true
20
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
20
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
21
21
 
22
22
  [[redirects]]
23
23
  from = "/navbar/*"
24
- to = "undefined/navbar/:splat"
24
+ to = "https://devbranch.openstack.org/navbar/:splat"
25
25
  status = 200
26
26
  force = true
27
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
27
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
28
28
 
29
29
  [[redirects]]
30
30
  from = "/framework/*"
31
- to = "undefined/framework/:splat"
31
+ to = "https://devbranch.openstack.org/framework/:splat"
32
32
  status = 200
33
33
  force = true
34
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
34
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
35
35
 
36
36
  [[redirects]]
37
37
  from = "/googlemaps/*"
38
- to = "undefined/googlemaps/:splat"
38
+ to = "https://devbranch.openstack.org/googlemaps/:splat"
39
39
  status = 200
40
40
  force = true
41
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
41
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
42
42
 
43
43
  [[redirects]]
44
44
  from = "/node_modules/*"
45
- to = "undefined/node_modules/:splat"
45
+ to = "https://devbranch.openstack.org/node_modules/:splat"
46
46
  status = 200
47
47
  force = true
48
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
48
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
49
49
 
50
50
  [[redirects]]
51
51
  from = "/maps_images/*"
52
- to = "undefined/maps_images/:splat"
52
+ to = "https://devbranch.openstack.org/maps_images/:splat"
53
53
  status = 200
54
54
  force = true
55
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
55
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
56
56
 
57
57
  [[redirects]]
58
58
  from = "/use-cases/*"
59
- to = "undefined/use-cases/:splat"
59
+ to = "https://devbranch.openstack.org/use-cases/:splat"
60
60
  status = 200
61
61
  force = true
62
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
62
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
63
63
 
64
64
  [[redirects]]
65
65
  from = "/software/*"
66
- to = "undefined/software/:splat"
66
+ to = "https://devbranch.openstack.org/software/:splat"
67
67
  status = 200
68
68
  force = true
69
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
69
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
70
70
 
71
71
  [[redirects]]
72
72
  from = "/openstack-map/*"
73
- to = "undefined/openstack-map/:splat"
73
+ to = "https://devbranch.openstack.org/openstack-map/:splat"
74
74
  status = 200
75
75
  force = true
76
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
76
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
77
77
 
78
78
  [[redirects]]
79
79
  from = "/surveys/*"
80
- to = "undefined/surveys/:splat"
80
+ to = "https://devbranch.openstack.org/surveys/:splat"
81
81
  status = 200
82
82
  force = true
83
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
83
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
84
84
 
85
85
  [[redirects]]
86
86
  from = "/user-survey/*"
87
- to = "undefined/user-survey/:splat"
87
+ to = "https://devbranch.openstack.org/user-survey/:splat"
88
88
  status = 200
89
89
  force = true
90
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
90
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
91
91
 
92
92
  [[redirects]]
93
93
  from = "/blog/*"
94
- to = "undefined/blog/:splat"
94
+ to = "https://devbranch.openstack.org/blog/:splat"
95
95
  status = 200
96
96
  force = true
97
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
97
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
98
98
 
99
99
  [[redirects]]
100
100
  from = "/marketing/*"
101
- to = "undefined/marketing/:splat"
101
+ to = "https://devbranch.openstack.org/marketing/:splat"
102
102
  status = 200
103
103
  force = true
104
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
104
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
105
105
 
106
106
  [[redirects]]
107
107
  from = "/summit/*"
108
- to = "undefined/summit/:splat"
108
+ to = "https://devbranch.openstack.org/summit/:splat"
109
109
  status = 200
110
110
  force = true
111
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
111
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
112
112
 
113
113
  [[redirects]]
114
114
  from = "/brand/*"
115
- to = "undefined/brand/:splat"
115
+ to = "https://devbranch.openstack.org/brand/:splat"
116
116
  status = 200
117
117
  force = true
118
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
118
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
119
119
 
120
120
  [[redirects]]
121
121
  from = "/community/*"
122
- to = "undefined/community/:splat"
122
+ to = "https://devbranch.openstack.org/community/:splat"
123
123
  status = 200
124
124
  force = true
125
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
125
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
126
126
 
127
127
  [[redirects]]
128
128
  from = "/events/*"
129
- to = "undefined/events/:splat"
129
+ to = "https://devbranch.openstack.org/events/:splat"
130
130
  status = 200
131
131
  force = true
132
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
132
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
133
133
 
134
134
  [[redirects]]
135
135
  from = "/ptg/*"
136
- to = "undefined/ptg/:splat"
136
+ to = "https://devbranch.openstack.org/ptg/:splat"
137
137
  status = 200
138
138
  force = true
139
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
139
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
140
140
 
141
141
  [[redirects]]
142
142
  from = "/videos/*"
143
- to = "undefined/videos/:splat"
143
+ to = "https://devbranch.openstack.org/videos/:splat"
144
144
  status = 200
145
145
  force = true
146
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
146
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
147
147
 
148
148
  [[redirects]]
149
149
  from = "/summit-video-app/*"
150
- to = "undefined/summit-video-app/:splat"
150
+ to = "https://devbranch.openstack.org/summit-video-app/:splat"
151
151
  status = 200
152
152
  force = true
153
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
153
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
154
154
 
155
155
  [[redirects]]
156
156
  from = "/news/*"
157
- to = "undefined/summit-video-app/:splat"
157
+ to = "https://devbranch.openstack.org/summit-video-app/:splat"
158
158
  status = 200
159
159
  force = true
160
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
160
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
161
161
 
162
162
  [[redirects]]
163
163
  from = "/favicon/*"
164
- to = "undefined/favicon/:splat"
164
+ to = "https://devbranch.openstack.org/favicon/:splat"
165
165
  status = 200
166
166
  force = true
167
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
167
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
168
168
 
169
169
  [[redirects]]
170
170
  from = "/errors_pages/*"
171
- to = "undefined/errors_pages/:splat"
171
+ to = "https://devbranch.openstack.org/errors_pages/:splat"
172
172
  status = 200
173
173
  force = true
174
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
174
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
175
175
 
176
176
  [[redirects]]
177
177
  from = "/speaker_bureau/*"
178
- to = "undefined/speaker_bureau/:splat"
178
+ to = "https://devbranch.openstack.org/speaker_bureau/:splat"
179
179
  status = 200
180
180
  force = true
181
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
181
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
182
182
 
183
183
  [[redirects]]
184
184
  from = "/coa/*"
185
- to = "undefined/coa/:splat"
185
+ to = "https://devbranch.openstack.org/coa/:splat"
186
186
  status = 200
187
187
  force = true
188
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
188
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
189
189
 
190
190
  [[redirects]]
191
191
  from = "/learn/*"
192
- to = "undefined/learn/:splat"
192
+ to = "https://devbranch.openstack.org/learn/:splat"
193
193
  status = 200
194
194
  force = true
195
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
195
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
196
196
 
197
197
  [[redirects]]
198
198
  from = "/Security/*"
199
- to = "undefined/Security/:splat"
199
+ to = "https://devbranch.openstack.org/Security/:splat"
200
200
  status = 200
201
201
  force = true
202
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
202
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
203
203
 
204
204
  [[redirects]]
205
205
  from = "/OpenStackIdAuthenticator/*"
206
- to = "undefined/OpenStackIdAuthenticator/:splat"
206
+ to = "https://devbranch.openstack.org/OpenStackIdAuthenticator/:splat"
207
207
  status = 200
208
208
  force = true
209
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
209
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
210
210
 
211
211
  [[redirects]]
212
212
  from = "/profile/*"
213
- to = "undefined/profile/:splat"
213
+ to = "https://devbranch.openstack.org/profile/:splat"
214
214
  status = 200
215
215
  force = true
216
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
216
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
217
217
 
218
218
  [[redirects]]
219
219
  from = "/userprofile/*"
220
- to = "undefined/userprofile/:splat"
220
+ to = "https://devbranch.openstack.org/userprofile/:splat"
221
221
  status = 200
222
222
  force = true
223
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
223
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
224
224
 
225
225
  [[redirects]]
226
226
  from = "/registration/*"
227
- to = "undefined/registration/:splat"
227
+ to = "https://devbranch.openstack.org/registration/:splat"
228
228
  status = 200
229
229
  force = true
230
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
230
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
231
231
 
232
232
  [[redirects]]
233
233
  from = "/legal/*"
234
- to = "undefined/legal/:splat"
234
+ to = "https://devbranch.openstack.org/legal/:splat"
235
235
  status = 200
236
236
  force = true
237
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
237
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
238
238
 
239
239
  [[redirects]]
240
240
  from = "/ICLA/*"
241
- to = "undefined/ICLA/:splat"
241
+ to = "https://devbranch.openstack.org/ICLA/:splat"
242
242
  status = 200
243
243
  force = true
244
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
244
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
245
245
 
246
246
  [[redirects]]
247
247
  from = "/marketplaceadmin/*"
248
- to = "undefined/marketplaceadmin/:splat"
248
+ to = "https://devbranch.openstack.org/marketplaceadmin/:splat"
249
249
  status = 200
250
250
  force = true
251
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
251
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
252
252
 
253
253
  [[redirects]]
254
254
  from = "/api/*"
255
- to = "undefined/api/:splat"
255
+ to = "https://devbranch.openstack.org/api/:splat"
256
256
  status = 200
257
257
  force = true
258
- headers = {Authorization = "Basic undefined", X-From = "netlify", X-Forwarded-Host = "undefined"}
258
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
259
+
260
+ [[redirects]]
261
+ from = "/community"
262
+ to = "https://devbranch.openstack.org/community"
263
+ status = 200
264
+ force = true
265
+ headers = {Authorization = "Basic b3BlbnN0YWNrOlF1YWNrZXI", X-From = "netlify", X-Forwarded-Host = "main--oif-marketing-site-dev.netlify.app"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -15,7 +15,8 @@
15
15
  "format": "prettier --trailing-comma es5 --no-semi --single-quote --write \"{gatsby-*.js,src/**/*.js}\"",
16
16
  "prepare": "husky",
17
17
  "lint": "eslint src",
18
- "precommit": "npx lint-staged --diff=origin/main --verbose"
18
+ "precommit": "npx lint-staged --diff=origin/main --verbose",
19
+ "rewrite_rules": "NODE_ENV=development node redirection-rules.js"
19
20
  },
20
21
  "lint-staged": {
21
22
  "*.{js,jsx}": "eslint --fix",
@@ -90,6 +91,7 @@
90
91
  "image-size": "^1.0.1",
91
92
  "immutability-helper": "2.9.1",
92
93
  "immutable": "^5.0.0-beta.5",
94
+ "js-cookie": "^3.0.5",
93
95
  "js-yaml": "^4.1.0",
94
96
  "jsdom": "^16.2.2",
95
97
  "lodash": "^4.17.19",
@@ -52,13 +52,14 @@ const buildRedirectionRules = () => {
52
52
 
53
53
  for (let i = 0; i < netlifyConfig.redirects.length; i++) {
54
54
  const redirect = netlifyConfig.redirects[i];
55
-
55
+ // see https://docs.netlify.com/routing/redirects/redirect-options/#splats
56
+ const hasSplat = redirect.from.endsWith("*");
56
57
  if (formerToml && tomlNodeExists(formerToml, NodeType.Route, redirect.from)) continue;
57
58
 
58
59
  netlifyToml += `
59
60
  [[redirects]]
60
61
  from = "${redirect.from}"
61
- to = "${redirectionHost}${redirect.to}:splat"
62
+ to = "${redirectionHost}${redirect.to}${hasSplat ? ":splat" : ""}"
62
63
  status = 200
63
64
  force = true
64
65
  headers = {Authorization = "Basic ${authToken}", X-From = "netlify", X-Forwarded-Host = "${forwardedHost}"}\n`;
@@ -3,10 +3,10 @@
3
3
  background: #fff;
4
4
  margin-bottom: 0;
5
5
  padding: 15px 0;
6
- border-color: #e7e7e7;
7
6
  position: relative;
8
7
  min-height: 50px;
9
8
  border: 1px solid transparent;
9
+ border-bottom: 1px solid #ddd;
10
10
  box-shadow: none;
11
11
  li {
12
12
  position: relative;
package/src/theme.js CHANGED
@@ -2,35 +2,94 @@ import { createTheme } from "@mui/material/styles";
2
2
  import darkScrollbar from "@mui/material/darkScrollbar";
3
3
 
4
4
  // create breakpoints in intermediate theme
5
- let theme = createTheme({
6
- breakpoints: {
7
- values: {
8
- xs: 0,
9
- sm: 320,
10
- md: 768,
11
- lg: 1024,
12
- xl: 1280,
13
- }
14
- }
5
+ const baseTheme = createTheme({
6
+ breakpoints: {
7
+ values: {
8
+ xs: 0,
9
+ sm: 320,
10
+ md: 768,
11
+ lg: 1024,
12
+ xl: 1280,
13
+ },
14
+ },
15
+ palette: {
16
+ primary: {
17
+ main: "#2A4E68",
18
+ light: "#286a9d",
19
+ dark: "#1565c0",
20
+ contrastText: "#FFFFFF",
21
+ },
22
+ background: {
23
+ paper: "#FFFFFF",
24
+ light: "#F9FAFC",
25
+ contrastText: "#000000DE",
26
+ },
27
+ text: {
28
+ primary: "#333333",
29
+ secondary: "#2A4E68",
30
+ },
31
+ },
15
32
  });
16
33
 
17
- // use breakpoints on theme creation
18
- theme = createTheme(theme, {
19
- components: {
20
- MuiCssBaseline: {
21
- styleOverrides: {
22
- body: {
23
- ...darkScrollbar(),
24
- margin: 0,
25
- padding: 0,
26
- border: 0,
27
- fontSize: "100%",
28
- verticalAlign: "baseline",
29
- fontFamily: "\"Open Sans\", Helvetica, Arial, sans-serif",
30
- }
31
- }
32
- }
33
- }
34
+ const theme = createTheme(baseTheme, {
35
+ typography: {
36
+ h1: {
37
+ fontSize: 34,
38
+ color: baseTheme.palette.text.secondary,
39
+ fontWeight: 300,
40
+ textAlign: "center",
41
+ margin: "40px 0",
42
+ },
43
+ h2: {
44
+ fontSize: 30,
45
+ color: baseTheme.palette.text.secondary,
46
+ fontWeight: 300,
47
+ marginTop: 20,
48
+ marginBottom: 25,
49
+ },
50
+ h3: {
51
+ fontSize: 26,
52
+ color: baseTheme.palette.text.secondary,
53
+ fontWeight: 300,
54
+ },
55
+ body1: {
56
+ fontSize: 14,
57
+ },
58
+ },
59
+ components: {
60
+ MuiTypography: {
61
+ defaultProps: {
62
+ fontFamily: "\"Open Sans\",Helvetica,Arial,sans-serif",
63
+ },
64
+ },
65
+ MuiCssBaseline: {
66
+ styleOverrides: {
67
+ body: {
68
+ ...darkScrollbar(),
69
+ margin: 0,
70
+ padding: 0,
71
+ border: 0,
72
+ fontSize: "100%",
73
+ verticalAlign: "baseline",
74
+ fontFamily: "\"Open Sans\", Helvetica, Arial, sans-serif",
75
+ "& a": {
76
+ color: "#337ab7",
77
+ textDecoration: "none",
78
+ "&:hover": {
79
+ color: "#30739C",
80
+ textDecoration: "underline",
81
+ },
82
+ },
83
+ hr: {
84
+ marginTop: 20,
85
+ marginBottom: 20,
86
+ border: 0,
87
+ borderTop: "1px solid #eee",
88
+ },
89
+ },
90
+ },
91
+ },
92
+ },
34
93
  });
35
94
 
36
95
  export default theme;
@@ -6,7 +6,7 @@ const STYLES_DIR_PATH = "src/styles";
6
6
  const DEFAULT_COLORS_FILE_PATH = `${DEFAULTS_DIR_PATH}/colors.json`;
7
7
  const COLORS_FILE_PATH = `${DATA_DIR_PATH}/colors.json`;
8
8
  const SPONSORED_PROJECTS_FILE_PATH = `${DATA_DIR_PATH}/sponsored-projects.json`;
9
- const COLORS_SASS_FILE_PATH = `${STYLES_DIR_PATH}/colors.scss`
9
+ const COLORS_SASS_FILE_PATH = `${STYLES_DIR_PATH}/colors.scss`;
10
10
  const FONTS_SCSS_FILE_PATH = `${STYLES_DIR_PATH}/fonts.scss`;
11
11
  const SITE_SETTINGS_DIR_PATH = `${STATIC_CONTENT_DIR_PATH}/site-settings`;
12
12
  const SITE_SETTINGS_FILE_PATH = `${SITE_SETTINGS_DIR_PATH}/index.json`;
@@ -21,7 +21,7 @@ const FOOTER_DIR_PATH = `${STATIC_CONTENT_DIR_PATH}/footer`;
21
21
  const FOOTER_FILE_PATH = `${FOOTER_DIR_PATH}/index.json`;
22
22
  const ANNOUNCEMENT_BANNER_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/announcement-banner/index.json`;
23
23
  const POSTER_PAGES_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/posters-pages.json`;
24
- const SUMMIT_FILE_NAME = `summit.json`
24
+ const SUMMIT_FILE_NAME = "summit.json";
25
25
  const SUMMIT_FILE_PATH = `${DATA_DIR_PATH}/${SUMMIT_FILE_NAME}`;
26
26
  const EVENTS_FILE_NAME = "events.json";
27
27
  const EVENTS_FILE_PATH = `${DATA_DIR_PATH}/${EVENTS_FILE_NAME}`;
@@ -40,21 +40,22 @@ const EXPO_HALL_PAGE_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/expo-hall-page/inde
40
40
  const INVITATIONS_REJECT_PAGE_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/invitations-reject-page/index.json`;
41
41
  const SPONSORS_FILE_NAME = "sponsors.json";
42
42
  const SPONSORS_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/${SPONSORS_FILE_NAME}`;
43
- const CMS_FONT_FILE_PATH = "/static/fonts/"
43
+ const CMS_FONT_FILE_PATH = "/static/fonts/";
44
44
  const PAYMENTS_FILE_PATH = `${STATIC_CONTENT_DIR_PATH}/payments.json`;
45
- const APPLE_PAY_DOMAIN_FILE_PATH = `/static/.well-known/`
46
- const APPLE_PAY_DOMAIN_FILE_NAME = `apple-developer-merchantid-domain-association`;
45
+ const APPLE_PAY_DOMAIN_FILE_PATH = "/static/.well-known/";
46
+ const APPLE_PAY_DOMAIN_FILE_NAME = "apple-developer-merchantid-domain-association";
47
47
 
48
48
  exports.REQUIRED_DIR_PATHS = [
49
- DATA_DIR_PATH,
50
- STATIC_CONTENT_DIR_PATH,
51
- CONTENT_PAGES_DIR_PATH,
52
- STYLES_DIR_PATH,
53
- SITE_SETTINGS_DIR_PATH,
54
- NAVBAR_DIR_PATH,
55
- FOOTER_DIR_PATH
49
+ DATA_DIR_PATH,
50
+ STATIC_CONTENT_DIR_PATH,
51
+ CONTENT_PAGES_DIR_PATH,
52
+ STYLES_DIR_PATH,
53
+ SITE_SETTINGS_DIR_PATH,
54
+ NAVBAR_DIR_PATH,
55
+ FOOTER_DIR_PATH,
56
56
  ];
57
57
 
58
+ exports.DATA_DIR_PATH = DATA_DIR_PATH;
58
59
  exports.STATIC_CONTENT_DIR_PATH = STATIC_CONTENT_DIR_PATH;
59
60
  exports.DEFAULT_COLORS_FILE_PATH = DEFAULT_COLORS_FILE_PATH;
60
61
  exports.COLORS_FILE_PATH = COLORS_FILE_PATH;