forked from Yoast/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpCenterWrapper.js
More file actions
70 lines (66 loc) · 1.86 KB
/
HelpCenterWrapper.js
File metadata and controls
70 lines (66 loc) · 1.86 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
import React from "react";
import styled from "styled-components";
import HelpCenter from "yoast-components/composites/Plugin/HelpCenter/HelpCenter";
import VideoTutorial from "yoast-components/composites/HelpCenter/views/VideoTutorial";
import { colors } from "@yoast/style-guide";
import AlgoliaSearcher from "@yoast/algolia-search-box";
export const HelpCenterContainer = styled.div`
max-width: 1280px;
margin: 1em auto 0;
background-color: ${ colors.$color_grey_light };
`;
/**
* Returns the HelpCenterWrapper component.
*
* @returns {ReactElement} The HelpCenterWrapper component.
*/
export default function HelpCenterWrapper() {
const items = [
{
label: "Video tutorial",
id: "video-tutorial",
content: <VideoTutorial
src="https://www.youtube.com/embed/bIgcj_pPIbw"
title="Video tutorial"
paragraphs={
[
{
title: "Need some help?",
description: "Go Premium and our experts will be there for you to answer any questions you " +
"might have about the setup and use of the plugin.",
link: "#1",
linkText: "Get Yoast SEO Premium now »",
},
{
title: "Want to be a Yoast SEO Expert?",
description: "Follow our Yoast SEO for WordPress training and become a certified Yoast SEO Expert!",
link: "#2",
linkText: "Enroll in the Yoast SEO for WordPress training »",
},
]
}
/>,
},
{
label: "Knowledge base",
id: "knowledge-base",
content: <AlgoliaSearcher />,
},
{
label: "Get support",
id: "support",
content: <div>Get support content.</div>,
},
];
return (
<HelpCenterContainer>
<HelpCenter
buttonBackgroundColor={ colors.$color_white }
buttonTextColor={ colors.$color_pink_dark }
buttonIconColor={ colors.$color_pink_dark }
buttonWithTextShadow={ false }
items={ items }
/>
</HelpCenterContainer>
);
}