Passed
Push — master ( 67133e...c59620 )
by Huu-Phat
01:48 queued 10s
created

cms/src/dashboard/components/GetStarted.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 81
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 77
mnd 0
bc 0
fnc 0
dl 0
loc 81
ccs 4
cts 4
cp 1
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
import React from 'react'
2
import { styled } from '@material-ui/core/styles'
3
import Grid from '@material-ui/core/Grid'
4
import Container from './GetStarted/Container'
5
import Title from './GetStarted/Title'
6
import SubTitle from './GetStarted/SubTitle'
7
import Item from './GetStarted/Item'
8
import ItemTitle from './GetStarted/ItemTitle'
9
import { Link } from 'react-router-dom'
10
import { pages, THEME_URL } from 'core/const/pages'
11
12
import PostAdd from '@material-ui/icons/PostAdd'
13
import Visibility from '@material-ui/icons/Visibility'
14
import LibraryBooksIcon from '@material-ui/icons/LibraryBooks'
15
import AccountBoxIcon from '@material-ui/icons/AccountBox'
16
import SettingsIcon from '@material-ui/icons/Settings'
17
import PhotoLibraryIcon from '@material-ui/icons/PhotoLibrary'
18
19 4
const GetStarted = () => (
20 1
  <Container>
21
    <Title>Welcome to illuminati!</Title>
22
    <SubTitle>We’ve assembled some things to get you started:</SubTitle>
23
    <Grid container spacing={4}>
24
      <Grid item md={4} xl={3}>
25
        <Item>
26
          <ItemTitle>Get Started</ItemTitle>
27
          <Line>
28
            <SettingsIcon style={{ marginRight: '5px' }} />
29
            <BreakLink to={pages.settings.url}>Open Your Settings</BreakLink>
30
          </Line>
31
          <Line>
32
            <PhotoLibraryIcon style={{ marginRight: '5px' }} />
33
            <BreakLink to={THEME_URL}>Change your theme</BreakLink>
34
          </Line>
35
        </Item>
36
      </Grid>
37
      <Grid item md={4} xl={3}>
38
        <Item>
39
          <ItemTitle>Next steps</ItemTitle>
40
          <Line>
41
            <PostAdd style={{ marginRight: '5px' }} />
42
            <BreakLink to={pages.posts.url}>
43
              Write your first blog post
44
            </BreakLink>
45
          </Line>
46
          <Line>
47
            <Visibility style={{ marginRight: '5px' }} />
48
            <a href={'https://phatho-folio.now.sh//blogs'}>View your site</a>
49
          </Line>
50
        </Item>
51
      </Grid>
52
      <Grid item md={4} lg={3}>
53
        <Item>
54
          <ItemTitle>More actions</ItemTitle>
55
          <Line>
56
            <LibraryBooksIcon style={{ marginRight: '5px' }} />
57
            <BreakLink to={pages.posts.url}>Manage Posts</BreakLink>
58
          </Line>
59
60
          <Line>
61
            <AccountBoxIcon style={{ marginRight: '5px' }} />
62
            <BreakLink to={pages.profile.url}>Manage Profile</BreakLink>
63
          </Line>
64
        </Item>
65
      </Grid>
66
    </Grid>
67
  </Container>
68
)
69
70
export default GetStarted
71
72 4
const Line = styled('div')({
73
  margin: '8px 0',
74
  display: 'flex',
75
  alignItems: 'center'
76
})
77
78 4
const BreakLink = styled(Link)({
79
  overflowWrap: 'break-word'
80
})
81