-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent.js
More file actions
114 lines (106 loc) · 2.68 KB
/
content.js
File metadata and controls
114 lines (106 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import React from 'react';
import './style.scss';
function getStepsArray(steps) {
let result = [];
for (let i = 0, n = steps.length; i < n; i++) {
let item = steps[i];
result[i] = {
title: item.title,
target: item.target,
content: (
<div className="tour-body">
<h4 className="tour-body-title">{item.lowTitle}</h4>
<p className="tour-body-content">{item.content}</p>
</div>
),
placement: item.placement,
disableOverlayClicks: true,
showSkipButton: true,
}
}
return result;
}
/**
* URL and Title for the Customer homepage
* (Ripple Foundation by default)
*/
export const homepage = {
link: 'https://ripple.foundation',
title: 'Ripple Foundation',
};
/**
* Tour steps should be added automatically in theme installation
*
* @type {Array}
*/
const steps = [
{
title: 'Hello!',
lowTitle: 'Welcome to the quick tour of Showcase',
target: '#icon-tour',
content: '',
placement: 'bottom',
},
{
title: 'Guided Step 1',
lowTitle: 'Select the home button at any time...',
target: '#icon-home',
content: 'Press the home button at any time to return to your dashboard.',
placement: 'bottom',
},
{
title: 'Guided Step 2',
lowTitle: 'Select the profile icon...',
target: '#icon-profile',
content: 'The profile allows you to view your personal information.',
placement: 'bottom',
},
{
title: 'Guided Step 3',
lowTitle: 'Click on a heading or icon for further information',
target: '#summary-panel-problems .board',
content: 'Click on the icon, or heading to view the detailed information within.',
placement: 'bottom',
},
];
const lastStep = {
title: 'End of tour',
target: '#logo-image',
content: (
<div className="tour-body">
<p className="tour-body-content">
For more information and a guide on how to use {homepage.title}, please go to <a className="link" href={homepage.link} title={homepage.title} target="_blank">
{homepage.link}
</a>
</p>
</div>
),
placement: 'bottom',
disableOverlayClicks: true,
showSkipButton: true,
};
const stepsArray = getStepsArray(steps);
export const tourSteps = stepsArray.concat(lastStep);
/**
* Styles should be added automatically in theme installation
*/
export const toursStyles = {
options: {
beaconSize: 36,
overlayColor: 'rgba(0, 0, 0, 0.5)',
primaryColor: '#f04',
spotlightShadow: 'none',
textColor: '#333',
width: 400,
zIndex: 999999,
}
};
/**
* This information should be added automatically in theme installation
*/
export const locale = {
next: 'Next',
skip: 'Cancel',
last: 'Last',
back: 'Back',
};