@appdirect/sfb-theme-plaza 0.0.73 → 0.0.75

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.
@@ -16,6 +16,9 @@
16
16
  width: 610px;
17
17
  text-align: center;
18
18
  }
19
+ .toggle_buttons {
20
+ padding-left: 0px;
21
+ }
19
22
  </style>
20
23
  </head>
21
24
 
@@ -24,22 +27,19 @@
24
27
  <div>
25
28
  <div>
26
29
  <h1>{{ statusCode | default('404') }}</h1>
27
- <h2>Sorry, we couldn't find it.</h2>
28
- <p class="text-center">Page Not Found ({{ statusCode | default('404') }})</p>
30
+ <h2>{{ i18n.custom['errorPage.title'] }}</h2>
31
+ <p class="text-center">{{ i18n.custom['errorPage.subtitle'] }} ({{ statusCode | default('404') }})</p>
29
32
  </div>
30
33
  <hr/>
31
34
  <div>
32
- <p>Apologies, but the page you are looking for could not be found. It may have moved or the url might be misspelled.</p>
33
- <p><strong>Where would you like to go from here?</strong></p>
35
+ <p>{{ i18n.custom['errorPage.message'] }}</p>
36
+ <p><strong>{{ i18n.custom['errorPage.links.message'] }}</strong></p>
34
37
  <menu class="toggle_buttons">
35
38
  <button class="button" onclick="window.history.back();return false">
36
- <span>Go to Previous Page</span>
39
+ <span>{{ i18n.custom['errorPage.links.previousPage'] }}</span>
37
40
  </button>
38
- <button class="button" onclick="var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow; if (win == window) { window.location.href='../'; } ;return false">
39
- <span>AppDirect Home</span>
40
- </button>
41
- <button class="button" onclick="window.location.href='http://support.appdirect.com';return false;">
42
- <span>Contact Support</span>
41
+ <button class="button" onclick="const locale = window.location.pathname.split('/')[1]; window.location.href= `/${locale}/home`;">
42
+ <span>{{ i18n.custom['errorPage.links.home'] }}</span>
43
43
  </button>
44
44
  </menu>
45
45
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appdirect/sfb-theme-plaza",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "description": "A modern theme built with react components that can be customized with Storefront Builder.",
5
5
  "main": "index.js",
6
6
  "scripts": {