@mohamed-karawia/library 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/stories/Chat/Chat.js +10 -12
- package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +10 -12
- package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +1 -1
- package/dist/stories/Enrollment/Guest/FillForm/FillForm.js +4 -17
- package/dist/stories/Events/Event/Event.js +1 -1
- package/dist/stories/Events/EventsList/EventsList.js +3 -3
- package/dist/stories/Library/Folders/Folders.js +1 -4
- package/dist/stories/Library/Notes/Notes.js +3 -3
- package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +4 -6
- package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +3 -6
- package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +8 -0
- package/dist/stories/Pages/Enrollment/FillForm/FillForm.js +7 -1
- package/dist/stories/Pages/Enrollment/Forms/Forms.js +3 -1
- package/dist/stories/Pages/Events/Events/Events.js +1 -0
- package/dist/stories/Pages/Music/MusicAlbum/Music.js +8 -6
- package/dist/stories/Pages/Photos/Albums/Albums.js +4 -1
- package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +4 -10
- package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -16
- package/dist/stories/Preview/Preview.js +36 -0
- package/dist/stories/Reusable Components/Gallery/Gallery.js +5 -1
- package/dist/stories/Reusable Components/ReusableForm/ReusableForm.js +1 -1
- package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +1 -4
- package/dist/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.js +1 -1
- package/dist/stories/helpers/util.js +26 -2
- package/package.json +1 -1
- package/src/stories/Chat/Chat.jsx +9 -12
- package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +7 -9
- package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +3 -2
- package/src/stories/Enrollment/Guest/FillForm/FillForm.jsx +6 -16
- package/src/stories/Events/Event/Event.jsx +1 -1
- package/src/stories/Events/EventsList/EventsList.jsx +11 -6
- package/src/stories/Library/Folders/Folders.jsx +2 -4
- package/src/stories/Library/Notes/Notes.jsx +8 -4
- package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +9 -4
- package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +6 -7
- package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +10 -1
- package/src/stories/Pages/Enrollment/FillForm/FillForm.jsx +6 -0
- package/src/stories/Pages/Enrollment/Forms/Forms.jsx +3 -1
- package/src/stories/Pages/Events/Events/Events.jsx +75 -74
- package/src/stories/Pages/Library/Folders/Library.jsx +1 -1
- package/src/stories/Pages/Music/MusicAlbum/Music.jsx +8 -6
- package/src/stories/Pages/Photos/Albums/Albums.jsx +3 -0
- package/src/stories/Pages/ViewWorld/styles.json +1 -1
- package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +6 -9
- package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +5 -25
- package/src/stories/Preview/Preview.jsx +27 -0
- package/src/stories/Reusable Components/Gallery/Gallery.jsx +5 -1
- package/src/stories/Reusable Components/ReusableForm/ReusableForm.jsx +1 -1
- package/src/stories/Reusable Components/ReusableHeader/ReusableHeader.jsx +0 -2
- package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +3 -5
- package/src/stories/Widgets/MusicPlayerWidget/MusicPlayerWidget.jsx +1 -1
- package/src/stories/helpers/util.js +19 -1
@@ -2,23 +2,21 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
|
5
|
-
import { controls } from '../Reusable Components/fakeData';
|
6
|
-
import ReusableHeader from '../Reusable Components/ReusableHeader/ReusableHeader';
|
7
5
|
import List from '../Reusable Components/ReusableList/ReusableList';
|
8
6
|
import RichTextInput from '../Common Inputs/RichTextInput/RichTextInput';
|
9
7
|
|
10
8
|
const Chat = ({
|
11
9
|
data,
|
12
|
-
title,
|
13
|
-
cardBackgroundColor,
|
14
|
-
textColor,
|
15
10
|
users,
|
11
|
+
title,
|
12
|
+
backgroundColor,
|
16
13
|
...props }) => {
|
17
14
|
|
18
15
|
return (
|
19
|
-
<Container
|
16
|
+
<Container
|
17
|
+
backgroundColor={backgroundColor}>
|
20
18
|
<List
|
21
|
-
listTitle={title}
|
19
|
+
listTitle={title || 'Chat'}
|
22
20
|
type="flat"
|
23
21
|
data={data}
|
24
22
|
cardStyle="card-style-8"
|
@@ -32,9 +30,8 @@ const Chat = ({
|
|
32
30
|
}
|
33
31
|
|
34
32
|
const Container = styled.div`
|
35
|
-
background-color: ${cardBackgroundColor => cardBackgroundColor};
|
36
33
|
width: 100%;
|
37
|
-
|
34
|
+
background-color: ${({backgroundColor}) => backgroundColor || 'transparent'};
|
38
35
|
`
|
39
36
|
|
40
37
|
Chat.defaultProps = {
|
@@ -44,9 +41,9 @@ Chat.defaultProps = {
|
|
44
41
|
Chat.propTypes = {
|
45
42
|
data: PropTypes.array.isRequired,
|
46
43
|
title: PropTypes.string,
|
47
|
-
|
48
|
-
|
49
|
-
|
44
|
+
backgroundColor: PropTypes.string,
|
45
|
+
customCardStyles: PropTypes.object,
|
46
|
+
headerStyles: PropTypes.object
|
50
47
|
}
|
51
48
|
|
52
49
|
export default Chat
|
@@ -13,11 +13,11 @@ const DetailedForm = ({
|
|
13
13
|
}) => {
|
14
14
|
|
15
15
|
const onAccept = () => {
|
16
|
-
|
16
|
+
props.onAccept()
|
17
17
|
}
|
18
18
|
|
19
19
|
const onDecline = () => {
|
20
|
-
|
20
|
+
props.onDecline()
|
21
21
|
}
|
22
22
|
|
23
23
|
return (
|
@@ -26,17 +26,14 @@ const DetailedForm = ({
|
|
26
26
|
<Card
|
27
27
|
title={userName}
|
28
28
|
img={userImg}
|
29
|
-
|
29
|
+
{...props.userHeaderStyles}
|
30
30
|
/>
|
31
31
|
</User>
|
32
32
|
<List
|
33
|
-
listTitle="Form"
|
33
|
+
listTitle={props.title || "Form"}
|
34
34
|
data={questions}
|
35
35
|
type='flat'
|
36
36
|
cardStyle='card-style-3'
|
37
|
-
customCardStyles={{
|
38
|
-
cardPadding: 10
|
39
|
-
}}
|
40
37
|
{...props}
|
41
38
|
/>
|
42
39
|
<Buttons>
|
@@ -48,7 +45,7 @@ const DetailedForm = ({
|
|
48
45
|
}
|
49
46
|
|
50
47
|
const Container = styled.div`
|
51
|
-
background-color:
|
48
|
+
background-color: ${props => props.backgroundColor || 'transparent'};
|
52
49
|
padding: 10px 0;
|
53
50
|
width: 100%;
|
54
51
|
`
|
@@ -83,7 +80,8 @@ DetailedForm.defaultProps = {};
|
|
83
80
|
DetailedForm.propTypes = {
|
84
81
|
userName: PropTypes.string,
|
85
82
|
userImg: PropTypes.string,
|
86
|
-
questions: PropTypes.array
|
83
|
+
questions: PropTypes.array,
|
84
|
+
title: PropTypes.string
|
87
85
|
}
|
88
86
|
|
89
87
|
export default DetailedForm
|
@@ -8,7 +8,7 @@ const ViewForms = ({
|
|
8
8
|
}) => {
|
9
9
|
return (
|
10
10
|
<List
|
11
|
-
listTitle="Submitted Forms"
|
11
|
+
listTitle={props.title || "Submitted Forms"}
|
12
12
|
data={data}
|
13
13
|
cardStyle="card-style-9"
|
14
14
|
type="sectioned"
|
@@ -20,7 +20,8 @@ const ViewForms = ({
|
|
20
20
|
ViewForms.defaultProps = {};
|
21
21
|
|
22
22
|
ViewForms.propTypes = {
|
23
|
-
data: PropTypes.array
|
23
|
+
data: PropTypes.array,
|
24
|
+
title: PropTypes.string
|
24
25
|
}
|
25
26
|
|
26
27
|
export default ViewForms
|
@@ -9,13 +9,6 @@ const FillForm = ({
|
|
9
9
|
...props
|
10
10
|
}) => {
|
11
11
|
|
12
|
-
// const initialValues = {
|
13
|
-
// question0: '',
|
14
|
-
// question1: '',
|
15
|
-
// question2: '',
|
16
|
-
// question3: '',
|
17
|
-
// question4: '',
|
18
|
-
// }
|
19
12
|
|
20
13
|
const onCreate = (values) => {
|
21
14
|
console.log(values)
|
@@ -28,19 +21,14 @@ const FillForm = ({
|
|
28
21
|
return (
|
29
22
|
<Container>
|
30
23
|
<Form
|
31
|
-
|
32
|
-
formTitle="Join Community Form"
|
24
|
+
formTitle={props.formTitle || 'Join Community Form'}
|
33
25
|
sections={sections}
|
34
26
|
saveBtnText={props.saveBtnText}
|
35
27
|
cancelBtnText={props.cancelBtnText}
|
36
28
|
saveHandler={onCreate}
|
37
29
|
cancelHandler={cancelHandler}
|
38
|
-
|
39
|
-
|
40
|
-
headerBackground: 'black',
|
41
|
-
titleColor: '#ffff',
|
42
|
-
}}
|
43
|
-
bodyRowGap={10}
|
30
|
+
bodyRowGap={props.bodyRowGap || 10}
|
31
|
+
{...props}
|
44
32
|
/>
|
45
33
|
</Container>
|
46
34
|
)
|
@@ -55,7 +43,9 @@ FillForm.defaultProps = {};
|
|
55
43
|
FillForm.propTypes = {
|
56
44
|
sections: PropTypes.array,
|
57
45
|
saveBtnText: PropTypes.string,
|
58
|
-
cancelBtnText: PropTypes.string
|
46
|
+
cancelBtnText: PropTypes.string,
|
47
|
+
formTitle: PropTypes.string,
|
48
|
+
bodyRowGap: PropTypes.number
|
59
49
|
}
|
60
50
|
|
61
51
|
export default FillForm;
|
@@ -47,7 +47,7 @@ const Event = ({
|
|
47
47
|
const Container = styled.div`
|
48
48
|
width: 100%;
|
49
49
|
font-family: sans-serif;
|
50
|
-
background-color: ${({ backgroundColor }) => backgroundColor};
|
50
|
+
background-color: ${({ backgroundColor }) => backgroundColor || 'transparent'};
|
51
51
|
`
|
52
52
|
|
53
53
|
const CoverWrapper = styled.div`
|
@@ -54,9 +54,9 @@ const EventsList = ({
|
|
54
54
|
}
|
55
55
|
|
56
56
|
return (
|
57
|
-
|
57
|
+
<Container>
|
58
58
|
<List
|
59
|
-
listTitle="My Events"
|
59
|
+
listTitle={props.title || "My Events"}
|
60
60
|
data={events}
|
61
61
|
type='flat'
|
62
62
|
cardStyle="card-style-11"
|
@@ -74,14 +74,14 @@ const EventsList = ({
|
|
74
74
|
<div></div>
|
75
75
|
)}>
|
76
76
|
<CreateEvent
|
77
|
-
saveBtnText=
|
78
|
-
cancelBtnText="Cancel"
|
77
|
+
saveBtnText={props.saveBtnText || 'Create'}
|
78
|
+
cancelBtnText={props.cancelBtnText || "Cancel"}
|
79
79
|
saveHandler={onAddFolder}
|
80
80
|
cancelHandler={cancelHandler}
|
81
81
|
/>
|
82
82
|
</Modal>
|
83
83
|
</Container>
|
84
|
-
|
84
|
+
)
|
85
85
|
}
|
86
86
|
|
87
87
|
const Container = styled.div`
|
@@ -92,10 +92,15 @@ EventsList.defaultProps = {};
|
|
92
92
|
|
93
93
|
EventsList.propTypes = {
|
94
94
|
notes: PropTypes.array.isRequired,
|
95
|
+
title: PropTypes.string,
|
95
96
|
iconColor: PropTypes.string,
|
96
97
|
cardTitleFontSize: PropTypes.number,
|
97
98
|
cardTitleColor: PropTypes.string,
|
98
|
-
cardPadding: PropTypes.number
|
99
|
+
cardPadding: PropTypes.number,
|
100
|
+
headerStyles: PropTypes.object,
|
101
|
+
customCardStyles: PropTypes.object,
|
102
|
+
saveBtnText: PropTypes.string,
|
103
|
+
cancelBtnText: PropTypes.string,
|
99
104
|
}
|
100
105
|
|
101
106
|
export default EventsList
|
@@ -53,13 +53,10 @@ const Folders = ({
|
|
53
53
|
return (
|
54
54
|
<Container>
|
55
55
|
<Gallery
|
56
|
-
galleryTitle="Your Folders"
|
56
|
+
galleryTitle={props.title || "Your Folders"}
|
57
57
|
data={folders}
|
58
58
|
type="flat"
|
59
59
|
cardStyle="card-style-10"
|
60
|
-
columnsNumber={columnsNumber}
|
61
|
-
galleryColumnGap={columnGap}
|
62
|
-
galleryRowGap={rowGap}
|
63
60
|
galleryControls={galleryControls}
|
64
61
|
iconClicked={onIconClicked}
|
65
62
|
cardClicked={cardClicked}
|
@@ -92,6 +89,7 @@ Folders.defaultProps = {};
|
|
92
89
|
|
93
90
|
Folders.propTypes = {
|
94
91
|
folders: PropTypes.array,
|
92
|
+
title: PropTypes.string,
|
95
93
|
folderTitle: PropTypes.string,
|
96
94
|
columnsNumber: PropTypes.number,
|
97
95
|
columnGap: PropTypes.number,
|
@@ -56,7 +56,7 @@ const Notes = ({
|
|
56
56
|
return (
|
57
57
|
<Container>
|
58
58
|
<List
|
59
|
-
listTitle="My Notes"
|
59
|
+
listTitle={props.title || "My Notes"}
|
60
60
|
data={notes}
|
61
61
|
type='flat'
|
62
62
|
cardStyle="card-style-11"
|
@@ -74,8 +74,8 @@ const Notes = ({
|
|
74
74
|
<div></div>
|
75
75
|
)}>
|
76
76
|
<CreateFolder
|
77
|
-
saveBtnText="Create"
|
78
|
-
cancelBtnText="Cancel"
|
77
|
+
saveBtnText={props.saveBtnText || "Create"}
|
78
|
+
cancelBtnText={props.cancelBtnText || "Cancel"}
|
79
79
|
saveHandler={onAddFolder}
|
80
80
|
cancelHandler={cancelHandler}
|
81
81
|
/>
|
@@ -95,7 +95,11 @@ Notes.propTypes = {
|
|
95
95
|
iconColor: PropTypes.string,
|
96
96
|
cardTitleFontSize: PropTypes.number,
|
97
97
|
cardTitleColor: PropTypes.string,
|
98
|
-
cardPadding: PropTypes.number
|
98
|
+
cardPadding: PropTypes.number,
|
99
|
+
saveBtnText: PropTypes.string,
|
100
|
+
cancelBtnText: PropTypes.string,
|
101
|
+
headerStyles: PropTypes.object,
|
102
|
+
customCardStyles: PropTypes.object
|
99
103
|
}
|
100
104
|
|
101
105
|
export default Notes;
|
@@ -50,7 +50,7 @@ const ViewAlbum = ({
|
|
50
50
|
return (
|
51
51
|
<Container>
|
52
52
|
<List
|
53
|
-
listTitle="My Album"
|
53
|
+
listTitle={props.title || "My Album"}
|
54
54
|
data={album}
|
55
55
|
cardStyle="card-style-7"
|
56
56
|
type="flat"
|
@@ -70,8 +70,8 @@ const ViewAlbum = ({
|
|
70
70
|
<AddSong
|
71
71
|
saveHandler={onAddSong}
|
72
72
|
cancelHandler={cancelHandler}
|
73
|
-
saveBtnText="Create"
|
74
|
-
cancelBtnText="Cancel" />
|
73
|
+
saveBtnText={props.saveBtnText || "Create"}
|
74
|
+
cancelBtnText={props.cancelBtnText || "Cancel"} />
|
75
75
|
</Modal>
|
76
76
|
</Container>
|
77
77
|
)
|
@@ -82,7 +82,7 @@ const Container = styled.div`
|
|
82
82
|
`
|
83
83
|
|
84
84
|
ViewAlbum.defaultProps = {
|
85
|
-
|
85
|
+
|
86
86
|
};
|
87
87
|
|
88
88
|
ViewAlbum.propTypes = {
|
@@ -92,6 +92,11 @@ ViewAlbum.propTypes = {
|
|
92
92
|
cardClicked: PropTypes.func,
|
93
93
|
cardBackgroundColor: PropTypes.string,
|
94
94
|
songTitleColor: PropTypes.string,
|
95
|
+
title: PropTypes.string,
|
96
|
+
saveBtnText: PropTypes.string,
|
97
|
+
cancelBtnText: PropTypes.string,
|
98
|
+
headerStyles: PropTypes.object,
|
99
|
+
customCardStyles: PropTypes.object,
|
95
100
|
};
|
96
101
|
|
97
102
|
export default ViewAlbum
|
@@ -74,13 +74,10 @@ const ViewAlbums = ({
|
|
74
74
|
return (
|
75
75
|
<Container>
|
76
76
|
<Gallery
|
77
|
-
galleryTitle={props.title}
|
77
|
+
galleryTitle={props.title || 'musicAlbums'}
|
78
78
|
data={albums}
|
79
79
|
type="flat"
|
80
80
|
cardStyle="card-style-6"
|
81
|
-
columnsNumber={3}
|
82
|
-
galleryColumnGap={10}
|
83
|
-
galleryRowGap={20}
|
84
81
|
galleryControls={galleryControls}
|
85
82
|
iconClicked={onHeaderIconClicked}
|
86
83
|
cardControls={cardControls}
|
@@ -96,8 +93,8 @@ const ViewAlbums = ({
|
|
96
93
|
<CreateAlbum
|
97
94
|
saveHandler={onAddAlbum}
|
98
95
|
cancelHandler={cancelHandler}
|
99
|
-
saveBtnText="Create"
|
100
|
-
cancelBtnText="Cancel" />
|
96
|
+
saveBtnText={props.saveBtnText || "Create"}
|
97
|
+
cancelBtnText={props.cancelBtnText || "Cancel"} />
|
101
98
|
</Modal>
|
102
99
|
</Container>
|
103
100
|
)
|
@@ -117,7 +114,9 @@ ViewAlbums.propTypes = {
|
|
117
114
|
cardBackgroundColor: PropTypes.string,
|
118
115
|
albumTitleColor: PropTypes.string,
|
119
116
|
descColor: PropTypes.string,
|
120
|
-
title: PropTypes.string
|
117
|
+
title: PropTypes.string,
|
118
|
+
saveBtnText: PropTypes.string,
|
119
|
+
cancelBtnText: PropTypes.string,
|
121
120
|
};
|
122
121
|
|
123
122
|
export default ViewAlbums
|
@@ -96,7 +96,16 @@ const DetailedForm = (props) => {
|
|
96
96
|
dropdownFontColor: 'white',
|
97
97
|
dropdownItemHoverColor: '#FE1744'
|
98
98
|
},
|
99
|
-
}}
|
99
|
+
}}
|
100
|
+
userHeaderStyles={{
|
101
|
+
cardBackgroundColor: '#FE1744',
|
102
|
+
cardImageRadius: "100",
|
103
|
+
cardTitleColor: 'white',
|
104
|
+
}}
|
105
|
+
customCardStyles={{
|
106
|
+
cardPadding: 10,
|
107
|
+
}}
|
108
|
+
/>
|
100
109
|
|
101
110
|
</SpaceContainer>
|
102
111
|
|
@@ -77,9 +77,15 @@ const FillForm = (props) => {
|
|
77
77
|
hideTitle
|
78
78
|
>
|
79
79
|
<Form
|
80
|
+
formTitle="Community Form"
|
80
81
|
sections={sections}
|
81
82
|
saveBtnText={'Submit'}
|
82
83
|
cancelBtnText="Cancel"
|
84
|
+
headerStyles={{
|
85
|
+
padding: 10,
|
86
|
+
headerBackground: 'black',
|
87
|
+
titleColor: '#ffff',
|
88
|
+
}}
|
83
89
|
/>
|
84
90
|
|
85
91
|
</SpaceContainer>
|
@@ -116,7 +116,6 @@ const Forms = (props) => {
|
|
116
116
|
</Left>
|
117
117
|
<Center>
|
118
118
|
<SpaceContainer
|
119
|
-
title="Music Album"
|
120
119
|
discription="Lorem ipsum dolor sit amet consectetur."
|
121
120
|
hideTitle
|
122
121
|
>
|
@@ -138,6 +137,9 @@ const Forms = (props) => {
|
|
138
137
|
cardTitleColor: 'white',
|
139
138
|
cardBackgroundColor: 'black',
|
140
139
|
cardPadding: 10
|
140
|
+
}}
|
141
|
+
customCardStyles={{
|
142
|
+
cardBackgroundColor: 'white'
|
141
143
|
}}
|
142
144
|
/>
|
143
145
|
|
@@ -19,11 +19,11 @@ import { SPACES } from '../../ViewWorld/constatnts';
|
|
19
19
|
const Events = (props) => {
|
20
20
|
|
21
21
|
const [events, setEvents] = useState([
|
22
|
-
{title: 'Event one', date: '15-11-2020 : 5-8-2021'},
|
23
|
-
{title: 'Event two', date: '14-12-2020 : 14-4-2023'},
|
24
|
-
{title: 'Event three', date: '5-6-2021 : 5-8-2021'},
|
25
|
-
{title: 'Event four', date: '14-4-2023'},
|
26
|
-
{title: 'Event five', date: '5-6-2021 : 14-4-2023'},
|
22
|
+
{ title: 'Event one', date: '15-11-2020 : 5-8-2021' },
|
23
|
+
{ title: 'Event two', date: '14-12-2020 : 14-4-2023' },
|
24
|
+
{ title: 'Event three', date: '5-6-2021 : 5-8-2021' },
|
25
|
+
{ title: 'Event four', date: '14-4-2023' },
|
26
|
+
{ title: 'Event five', date: '5-6-2021 : 14-4-2023' },
|
27
27
|
])
|
28
28
|
|
29
29
|
const onAddEvent = (event) => {
|
@@ -35,7 +35,7 @@ const Events = (props) => {
|
|
35
35
|
case 'delete':
|
36
36
|
deleteEvent(index)
|
37
37
|
break;
|
38
|
-
|
38
|
+
|
39
39
|
default:
|
40
40
|
break;
|
41
41
|
}
|
@@ -48,80 +48,81 @@ const Events = (props) => {
|
|
48
48
|
const cardClicked = (index, cardProps) => {
|
49
49
|
console.log(cardProps)
|
50
50
|
}
|
51
|
-
|
51
|
+
|
52
52
|
return (
|
53
53
|
<BaseMaterial {...worldStyles.containerStyle} {...props}>
|
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
|
-
</Left>
|
89
|
-
<Center>
|
90
|
-
<SpaceContainer
|
91
|
-
title="Music Album"
|
92
|
-
discription="Lorem ipsum dolor sit amet consectetur."
|
93
|
-
hideTitle
|
94
|
-
>
|
95
|
-
<EventsList
|
96
|
-
events={events}
|
97
|
-
iconColor='#FE1744'
|
98
|
-
cardTitleFontSize={15}
|
99
|
-
onAddEvent={onAddEvent}
|
100
|
-
cardIconClicked={cardIconClicked}
|
101
|
-
cardClicked={cardClicked}
|
102
|
-
headerStyles={{
|
103
|
-
padding: 10,
|
104
|
-
headerBackground: '#FE1744',
|
105
|
-
titleColor: '#ffff',
|
106
|
-
controlsStyles: {
|
107
|
-
iconSize: 25
|
108
|
-
}
|
109
|
-
}}
|
110
|
-
customCardStyles={{
|
111
|
-
controlsStyles: {
|
112
|
-
iconColor: '#FE1744'
|
113
|
-
}
|
114
|
-
}}
|
54
|
+
<Navbar />
|
55
|
+
<Body {...worldStyles.bodyStyle}>
|
56
|
+
<Left>
|
57
|
+
<WidgetContainer
|
58
|
+
widgetType='logo'
|
59
|
+
widgetProps={{
|
60
|
+
imgUrl: props.imgUrl,
|
61
|
+
}}
|
62
|
+
/>
|
63
|
+
<WidgetContainer
|
64
|
+
widgetType='list'
|
65
|
+
widgetProps={{
|
66
|
+
listTitle: 'Your Spaces',
|
67
|
+
type: 'sectioned',
|
68
|
+
data: SPACES,
|
69
|
+
cardStyle: 'card-style-3',
|
70
|
+
sectionHeaderStyles: {
|
71
|
+
cardBorderSize: 2,
|
72
|
+
cardPadding: 2,
|
73
|
+
cardBackgroundColor: '#fff',
|
74
|
+
cardBorderColor: 'black',
|
75
|
+
},
|
76
|
+
customCardStyles: {
|
77
|
+
cardPadding: 6,
|
78
|
+
cardTitleFontSize: 15,
|
79
|
+
cardBackgroundColor: 'black',
|
80
|
+
cardTitleColor: 'white',
|
81
|
+
onHoverBackgroundColor: '#F6891F',
|
82
|
+
controlsStyles: {
|
83
|
+
showOnHover: true,
|
84
|
+
}
|
85
|
+
},
|
86
|
+
}}
|
115
87
|
/>
|
88
|
+
</Left>
|
89
|
+
<Center>
|
90
|
+
<SpaceContainer
|
91
|
+
title="Music Album"
|
92
|
+
discription="Lorem ipsum dolor sit amet consectetur."
|
93
|
+
hideTitle
|
94
|
+
>
|
95
|
+
<EventsList
|
96
|
+
events={events}
|
97
|
+
iconColor='#FE1744'
|
98
|
+
cardTitleFontSize={15}
|
99
|
+
onAddEvent={onAddEvent}
|
100
|
+
cardIconClicked={cardIconClicked}
|
101
|
+
cardClicked={cardClicked}
|
102
|
+
headerStyles={{
|
103
|
+
padding: 10,
|
104
|
+
headerBackground: '#FE1744',
|
105
|
+
titleColor: '#ffff',
|
106
|
+
controlsStyles: {
|
107
|
+
iconSize: 25
|
108
|
+
}
|
109
|
+
}}
|
110
|
+
customCardStyles={{
|
111
|
+
cardBackgroundColor: 'white',
|
112
|
+
controlsStyles: {
|
113
|
+
iconColor: '#FE1744',
|
114
|
+
}
|
115
|
+
}}
|
116
|
+
/>
|
116
117
|
|
117
|
-
|
118
|
+
</SpaceContainer>
|
118
119
|
|
119
|
-
|
120
|
-
|
120
|
+
</Center>
|
121
|
+
<Right>
|
121
122
|
|
122
|
-
|
123
|
-
|
124
|
-
|
123
|
+
</Right>
|
124
|
+
</Body>
|
125
|
+
</BaseMaterial>
|
125
126
|
)
|
126
127
|
}
|
127
128
|
|
@@ -26,12 +26,12 @@ import img6 from '../../../assets/images/music6.jpg';
|
|
26
26
|
const Music = (props) => {
|
27
27
|
const [currentSong, setCurrentSong] = useState(0)
|
28
28
|
const [album, setAlbum] = useState([
|
29
|
-
{ index: 0, cover: img4, musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
29
|
+
{ index: 0, cover: img4, musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3', title: 'Plans We Made', description: 'Son Lux', time: '5:20' },
|
30
30
|
{ index: 2, cover: img6, musicSrc: 'https://www.pacdv.com/sounds/free-music/kickstarter.mp3', title: 'Still Loving You', description: 'Scorpions', time: '4:20' },
|
31
|
-
{ index: 1, cover: img5, musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
31
|
+
{ index: 1, cover: img5, musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3', title: 'Night', description: 'Frank Ocean', time: '5:20' },
|
32
32
|
{ index: 3, cover: img1, musicSrc: 'https://www.pacdv.com/sounds/free-music/kickstarter.mp3', title: 'Somebody Else', description: '1975', time: '5:20' },
|
33
|
-
{ index: 4, cover: img3, musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
34
|
-
{ index: 5, cover: img2, musicSrc: 'https://www.pacdv.com/sounds/free-music/
|
33
|
+
{ index: 4, cover: img3, musicSrc: 'https://www.pacdv.com/sounds/free-music/gentle-thoughts-1.mp3', title: 'Enter Sandman', description: 'Metallica', time: '5:20' },
|
34
|
+
{ index: 5, cover: img2, musicSrc: 'https://www.pacdv.com/sounds/free-music/glow-in-the-dark.mp3', title: 'November Rain', description: "Guns N' Roses", time: '5:20' },
|
35
35
|
])
|
36
36
|
|
37
37
|
const nextSong = () => {
|
@@ -133,8 +133,9 @@ const Music = (props) => {
|
|
133
133
|
}
|
134
134
|
}}
|
135
135
|
customCardStyles={{
|
136
|
+
cardBackgroundColor: 'white',
|
136
137
|
controlsStyles: {
|
137
|
-
iconColor: '
|
138
|
+
iconColor: 'black'
|
138
139
|
}
|
139
140
|
}}
|
140
141
|
/>
|
@@ -155,7 +156,8 @@ const Music = (props) => {
|
|
155
156
|
prevSong: prevSong,
|
156
157
|
currentSong: currentSong,
|
157
158
|
borderRadius: '10',
|
158
|
-
primaryColor: 'black'
|
159
|
+
primaryColor: 'black',
|
160
|
+
backgroundColor: 'white'
|
159
161
|
}}
|
160
162
|
headerStyles={{
|
161
163
|
controlsStyles: {
|