@mohamed-karawia/library 0.1.12 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/dist/stories/Chat/Chat.js +5 -26
  2. package/dist/stories/Enrollment/Admin/CreateForm/CreateForm.js +1 -1
  3. package/dist/stories/Enrollment/Admin/DetailedForm/DetailedForm.js +2 -12
  4. package/dist/stories/Enrollment/Admin/ViewForms/ViewForms.js +4 -19
  5. package/dist/stories/Events/Event/Event.js +5 -9
  6. package/dist/stories/Events/EventsList/EventsList.js +2 -19
  7. package/dist/stories/Library/Folders/Folders.js +3 -9
  8. package/dist/stories/Library/Notes/Notes.js +2 -19
  9. package/dist/stories/Library/ViewNote/ViewNote.js +7 -10
  10. package/dist/stories/Music Album/ViewAlbum/ViewAlbum.js +3 -18
  11. package/dist/stories/Music Album/ViewAlbums/ViewAlbums.js +4 -18
  12. package/dist/stories/Navbar/Navbar.js +14 -44
  13. package/dist/stories/Pages/Chat/Chat.js +13 -1
  14. package/dist/stories/Pages/Enrollment/DetailedForm/DetailedForm.js +11 -1
  15. package/dist/stories/Pages/Enrollment/Forms/Forms.js +26 -1
  16. package/dist/stories/Pages/Events/Event/Event.js +9 -3
  17. package/dist/stories/Pages/Events/Events/Events.js +19 -1
  18. package/dist/stories/Pages/Library/Folders/Library.js +9 -0
  19. package/dist/stories/Pages/Library/Notes/Notes.js +20 -1
  20. package/dist/stories/Pages/Music/MusicAlbum/Music.js +14 -1
  21. package/dist/stories/Pages/Music/MusicAlbums/MusicAlbums.js +58 -2
  22. package/dist/stories/Pages/Photos/Album/Album.js +7 -1
  23. package/dist/stories/Pages/Photos/Albums/Albums.js +40 -2
  24. package/dist/stories/Pages/Video/DetailedVideo/DetailedVideo.js +2 -1
  25. package/dist/stories/Pages/Video/VideoAlbum/Video.js +14 -1
  26. package/dist/stories/Photo Album/ViewAlbum/ViewAlbum.js +0 -8
  27. package/dist/stories/Photo Album/ViewAlbums/ViewAlbums.js +3 -39
  28. package/dist/stories/Reusable Components/Cards/Card-style-10/CardStyle10.js +7 -3
  29. package/dist/stories/Reusable Components/Cards/Card-style-11/CardStyle11.js +7 -1
  30. package/dist/stories/Reusable Components/Cards/Card-style-3/CardStyle3.js +3 -2
  31. package/dist/stories/Reusable Components/Cards/Card-style-9/CardStyle9.js +27 -12
  32. package/dist/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  33. package/dist/stories/Reusable Components/Gallery/Gallery.js +2 -2
  34. package/dist/stories/Reusable Components/ReusableList/ReusableList.js +8 -6
  35. package/dist/stories/Sections/Sections.js +61 -0
  36. package/dist/stories/VideoAlbum/VideoSpace/VideoSpace.js +5 -3
  37. package/dist/stories/VideoAlbum/ViewAlbum/ViewAlbum.js +0 -11
  38. package/dist/stories/helpers/util.js +14 -8
  39. package/package.json +2 -2
  40. package/src/stories/Chat/Chat.jsx +3 -25
  41. package/src/stories/Enrollment/Admin/CreateForm/CreateForm.jsx +1 -0
  42. package/src/stories/Enrollment/Admin/DetailedForm/DetailedForm.jsx +1 -10
  43. package/src/stories/Enrollment/Admin/ViewForms/ViewForms.jsx +2 -16
  44. package/src/stories/Events/Event/Event.jsx +3 -6
  45. package/src/stories/Events/EventsList/EventsList.jsx +1 -17
  46. package/src/stories/Library/Folders/Folders.jsx +1 -7
  47. package/src/stories/Library/Notes/Notes.jsx +1 -17
  48. package/src/stories/Library/ViewNote/ViewNote.jsx +1 -12
  49. package/src/stories/Music Album/ViewAlbum/ViewAlbum.jsx +1 -15
  50. package/src/stories/Music Album/ViewAlbums/ViewAlbums.jsx +3 -14
  51. package/src/stories/Navbar/Navbar.jsx +50 -48
  52. package/src/stories/Pages/Chat/Chat.jsx +17 -4
  53. package/src/stories/Pages/Enrollment/DetailedForm/DetailedForm.jsx +11 -1
  54. package/src/stories/Pages/Enrollment/Forms/Forms.jsx +27 -1
  55. package/src/stories/Pages/Events/Event/Event.jsx +8 -2
  56. package/src/stories/Pages/Events/Events/Events.jsx +18 -0
  57. package/src/stories/Pages/Library/Folders/Library.jsx +12 -1
  58. package/src/stories/Pages/Library/Notes/Notes.jsx +30 -11
  59. package/src/stories/Pages/Music/MusicAlbum/Music.jsx +16 -2
  60. package/src/stories/Pages/Music/MusicAlbums/MusicAlbums.jsx +52 -23
  61. package/src/stories/Pages/Photos/Album/Album.jsx +7 -1
  62. package/src/stories/Pages/Photos/Albums/Albums.jsx +27 -20
  63. package/src/stories/Pages/Video/DetailedVideo/DetailedVideo.jsx +2 -1
  64. package/src/stories/Pages/Video/VideoAlbum/Video.jsx +13 -1
  65. package/src/stories/Photo Album/ViewAlbum/ViewAlbum.jsx +0 -8
  66. package/src/stories/Photo Album/ViewAlbums/ViewAlbums.jsx +1 -36
  67. package/src/stories/Reusable Components/Cards/Card-style-10/CardStyle10.jsx +8 -4
  68. package/src/stories/Reusable Components/Cards/Card-style-11/CardStyle11.jsx +5 -0
  69. package/src/stories/Reusable Components/Cards/Card-style-3/CardStyle3.jsx +5 -2
  70. package/src/stories/Reusable Components/Cards/Card-style-9/CardStyle9.jsx +14 -8
  71. package/src/stories/Reusable Components/Cards/globalCardStyles.js +1 -1
  72. package/src/stories/Reusable Components/Gallery/Gallery.jsx +2 -2
  73. package/src/stories/Reusable Components/ReusableList/ReusableList.jsx +17 -6
  74. package/src/stories/Sections/Sections.jsx +53 -0
  75. package/src/stories/VideoAlbum/VideoSpace/VideoSpace.jsx +3 -1
  76. package/src/stories/VideoAlbum/ViewAlbum/ViewAlbum.jsx +0 -9
  77. package/src/stories/helpers/util.js +11 -7
@@ -4,14 +4,11 @@ import Select from 'react-select';
4
4
  import styled from 'styled-components';
5
5
  import CustomAutoComplete from '../Common Inputs/CustomAutoComplete/CustomAutoComplete';
6
6
  import BaseMaterial from '../Containers/BaseMaterial';
7
- import home from '../assets/home-svgrepo-com.svg';
8
- import discover from '../assets/compass-svgrepo-com.svg';
9
- import add from '../assets/add-svgrepo-com.svg';
10
- import basket from '../assets/basket-svgrepo-com.svg';
11
- import bell from '../assets/bell-svgrepo-com.svg';
12
- import medal from '../assets/medal-svgrepo-com.svg';
13
- import settings from '../assets/settings-svgrepo-com.svg';
14
- import search from '../assets/search-svgrepo-com.svg';
7
+
8
+ import { AiFillHome, AiFillCompass, AiOutlineSearch, AiFillSetting, AiFillBell } from "react-icons/ai";
9
+ import { MdAddBox } from "react-icons/md";
10
+ import { BiMedal } from "react-icons/bi";
11
+ import { IoBasketSharp } from "react-icons/io5";
15
12
 
16
13
  /* icon size can sm md lg @sm by default*/
17
14
  /* icon background color @transparent by default*/
@@ -92,30 +89,30 @@ const Navbar = ({ iconSize, iconBackgroundColor, navbarColor, dropDownItemHeight
92
89
  <BaseMaterial>
93
90
  <NavBar color={navbarColor}>
94
91
  <UniverseContainer>
95
- <IconContainer size={iconSize} color={iconBackgroundColor}>
96
- <Icon src={home} size={iconSize} />
92
+ <IconContainer >
93
+ <AiFillHome size={iconSize} color={iconBackgroundColor} />
97
94
  </IconContainer>
98
- <IconContainer size={iconSize} color={iconBackgroundColor}>
99
- <Icon src={add} size={iconSize} />
95
+ <IconContainer >
96
+ <MdAddBox size={iconSize} color={iconBackgroundColor} />
100
97
  </IconContainer>
101
98
  <div style={{ width: '200px' }}>
102
99
  <Select options={options} styles={{ color: 'blue' }} />
103
100
  </div>
104
101
  </UniverseContainer>
105
102
  <DiscoverContainer>
106
- <IconContainer size={iconSize} color={iconBackgroundColor}>
107
- <Icon src={discover} size={iconSize} />
103
+ <IconContainer>
104
+ <AiFillCompass size={iconSize} color={iconBackgroundColor} />
108
105
  </IconContainer>
109
- <IconContainer size={iconSize} color={iconBackgroundColor}>
110
- <Icon src={medal} size={iconSize} />
106
+ <IconContainer>
107
+ <BiMedal size={iconSize} color={iconBackgroundColor}/>
111
108
  </IconContainer>
112
- <IconContainer size={iconSize} color={iconBackgroundColor}>
113
- <Icon src={basket} size={iconSize} />
109
+ <IconContainer>
110
+ <IoBasketSharp size={iconSize} color={iconBackgroundColor}/>
114
111
  </IconContainer>
115
112
  </DiscoverContainer>
116
113
  <SearchContainer>
117
114
  <SearchBar>
118
- <Icon src={search} size={iconSize} />
115
+ <AiOutlineSearch color={iconBackgroundColor} />
119
116
 
120
117
  <Formik
121
118
  initialValues={initialValues}
@@ -171,11 +168,11 @@ const Navbar = ({ iconSize, iconBackgroundColor, navbarColor, dropDownItemHeight
171
168
  <UserName>illo</UserName>
172
169
  </ProfileContainer>
173
170
  <SettingsContainer>
174
- <IconContainer size={iconSize} color={iconBackgroundColor}>
175
- <Icon src={settings} size={iconSize} />
171
+ <IconContainer>
172
+ <AiFillSetting size={iconSize} color={iconBackgroundColor}/>
176
173
  </IconContainer>
177
- <IconContainer size={iconSize} color={iconBackgroundColor}>
178
- <Icon src={bell} size={iconSize} />
174
+ <IconContainer>
175
+ <AiFillBell size={iconSize} color={iconBackgroundColor}/>
179
176
  </IconContainer>
180
177
  </SettingsContainer>
181
178
  </ProfileBar>
@@ -218,22 +215,8 @@ const UniverseContainer = styled('div')({
218
215
 
219
216
  const IconContainer = styled.div`
220
217
  flex: 0 0 auto;
221
- width: ${(props) =>
222
- props.size === 'sm'
223
- ? '30px'
224
- : props.size === 'md'
225
- ? '35px'
226
- : props.size === 'lg'
227
- ? '40px'
228
- : '30px'};
229
- height: ${(props) =>
230
- props.size === 'sm'
231
- ? '30px'
232
- : props.size === 'md'
233
- ? '35px'
234
- : props.size === 'lg'
235
- ? '40px'
236
- : '30px'};
218
+
219
+
237
220
  display: flex;
238
221
  align-items: center;
239
222
  margin-left: 0px;
@@ -241,7 +224,26 @@ const IconContainer = styled.div`
241
224
  border-radius: 20px;
242
225
  flex-direction: row;
243
226
  justify-content: center;
244
- background-color: ${(props) => props.color || 'transparent'};
227
+
228
+ & svg {
229
+ width: ${(props) =>
230
+ props.size === 'sm'
231
+ ? '30px'
232
+ : props.size === 'md'
233
+ ? '35px'
234
+ : props.size === 'lg'
235
+ ? '40px'
236
+ : '30px'};
237
+ };
238
+ height: ${(props) =>
239
+ props.size === 'sm'
240
+ ? '30px'
241
+ : props.size === 'md'
242
+ ? '35px'
243
+ : props.size === 'lg'
244
+ ? '40px'
245
+ : '30px'};
246
+ fill: ${(props) => props.color || 'transparent'};
245
247
  `;
246
248
 
247
249
  const Icon = styled.img`
@@ -249,18 +251,18 @@ const Icon = styled.img`
249
251
  props.size === 'sm'
250
252
  ? '20px'
251
253
  : props.size === 'md'
252
- ? '25px'
253
- : props.size === 'lg'
254
- ? '30px'
255
- : '20px'};
254
+ ? '25px'
255
+ : props.size === 'lg'
256
+ ? '30px'
257
+ : '20px'};
256
258
  height: ${(props) =>
257
259
  props.size === 'sm'
258
260
  ? '20px'
259
261
  : props.size === 'md'
260
- ? '25px'
261
- : props.size === 'lg'
262
- ? '30px'
263
- : '20px'};
262
+ ? '25px'
263
+ : props.size === 'lg'
264
+ ? '30px'
265
+ : '20px'};
264
266
  `;
265
267
 
266
268
  const DiscoverContainer = styled('div')({
@@ -67,13 +67,26 @@ const Chat = ({
67
67
  discription="Lorem ipsum dolor sit amet consectetur."
68
68
  hideTitle
69
69
  >
70
- <ChatSpace data={data} users={users} />
71
-
70
+ <ChatSpace
71
+ data={data}
72
+ users={users}
73
+ title={'Chat'}
74
+ headerStyles={{
75
+ padding: 10,
76
+ headerBackground: '#00ADC4',
77
+ titleColor: '#ffff',
78
+ controlsStyles: {
79
+ iconSize: 25
80
+ }
81
+ }}
82
+ customCardStyles={{
83
+ cardTitleColor: '#00ADC4',
84
+ }}
85
+ />
72
86
  </SpaceContainer>
73
-
74
87
  </Center>
75
88
  <Right>
76
-
89
+
77
90
  </Right>
78
91
  </Body>
79
92
  </BaseMaterial>
@@ -86,7 +86,17 @@ const DetailedForm = (props) => {
86
86
  <Detailed
87
87
  userName="User Name"
88
88
  userImg="https://www.kindpng.com/picc/m/163-1636340_user-avatar-icon-avatar-transparent-user-icon-png.png"
89
- questions={questions} />
89
+ questions={questions}
90
+ headerStyles={{
91
+ padding: 10,
92
+ headerBackground: '#FE1744',
93
+ titleColor: '#ffff',
94
+ controlsStyles: {
95
+ dropdownBackground: 'black',
96
+ dropdownFontColor: 'white',
97
+ dropdownItemHoverColor: '#FE1744'
98
+ },
99
+ }} />
90
100
 
91
101
  </SpaceContainer>
92
102
 
@@ -69,6 +69,14 @@ const Forms = (props) => {
69
69
  },
70
70
  ])
71
71
 
72
+ const cardClicked = (index, cardProps) => {
73
+ console.log(cardProps)
74
+ }
75
+
76
+ const onAction = (action, index) => {
77
+ console.log(action)
78
+ }
79
+
72
80
  return (
73
81
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
74
82
  <Navbar />
@@ -113,7 +121,25 @@ const Forms = (props) => {
113
121
  hideTitle
114
122
  >
115
123
  <ViewForms
116
- data={forms} />
124
+ data={forms}
125
+ cardClicked={cardClicked}
126
+ cardIconClicked={onAction}
127
+ headerStyles={{
128
+ padding: 10,
129
+ headerBackground: '#FE1744',
130
+ titleColor: '#ffff',
131
+ controlsStyles: {
132
+ dropdownBackground: 'black',
133
+ dropdownFontColor: 'white',
134
+ dropdownItemHoverColor: '#FE1744'
135
+ },
136
+ }}
137
+ sectionHeaderStyles={{
138
+ cardTitleColor: 'white',
139
+ cardBackgroundColor: 'black',
140
+ cardPadding: 10
141
+ }}
142
+ />
117
143
 
118
144
  </SpaceContainer>
119
145
 
@@ -67,11 +67,17 @@ const Event = (props) => {
67
67
  date="15/11/1976 : 16/11/1976"
68
68
  disc="Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia impedit fugiat reprehenderit adipisci eos atque ullam error quia amet nihil, exercitationem beatae distinctio eligendi neque, consequuntur odit commodi id porro."
69
69
  backgroundColor="black"
70
- headerBackground="black"
71
- headerTitleColor="white"
72
70
  titleColor="white"
73
71
  discColor="white"
74
72
  dateColor="white"
73
+ headerStyles={{
74
+ padding: 10,
75
+ headerBackground: 'black',
76
+ titleColor: '#ffff',
77
+ controlsStyles: {
78
+ iconSize: 25
79
+ }
80
+ }}
75
81
  />
76
82
 
77
83
  </SpaceContainer>
@@ -45,6 +45,10 @@ const Events = (props) => {
45
45
  setEvents(deleteFromArrayByIndex(events, index))
46
46
  }
47
47
 
48
+ const cardClicked = (index, cardProps) => {
49
+ console.log(cardProps)
50
+ }
51
+
48
52
  return (
49
53
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
50
54
  <Navbar />
@@ -94,6 +98,20 @@ const Events = (props) => {
94
98
  cardTitleFontSize={15}
95
99
  onAddEvent={onAddEvent}
96
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
+ }}
97
115
  />
98
116
 
99
117
  </SpaceContainer>
@@ -46,6 +46,10 @@ const Library = (props) => {
46
46
  setFolders(deleteFromArrayByIndex(folders, index))
47
47
  }
48
48
 
49
+ const cardClicked = (index, cardProps) => {
50
+ console.log(cardProps)
51
+ }
52
+
49
53
  return (
50
54
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
51
55
  <Navbar />
@@ -95,6 +99,7 @@ const Library = (props) => {
95
99
  columnsNumber={3}
96
100
  onAddFolder={onAddFolder}
97
101
  cardIconClicked={cardIconClicked}
102
+ cardClicked={cardClicked}
98
103
  headerStyles={{
99
104
  padding: 10,
100
105
  headerBackground: '#ff2d2d',
@@ -102,7 +107,13 @@ const Library = (props) => {
102
107
  controlsStyles: {
103
108
  iconSize: 25
104
109
  }
105
- }} />
110
+ }}
111
+ customCardStyles={{
112
+ cardPadding: 10,
113
+ iconColor: '#ff2d2d'
114
+ }}
115
+
116
+ />
106
117
 
107
118
  </SpaceContainer>
108
119
 
@@ -20,11 +20,11 @@ import { SPACES } from '../../ViewWorld/constatnts';
20
20
  const Notes = (props) => {
21
21
 
22
22
  const [notes, setNotes] = useState([
23
- {title: 'Study notes', date: '15/11/2020'},
24
- {title: 'Music notes', date: '14/12/2020'},
25
- {title: 'Workout notes', date: '5/8/2021'},
26
- {title: 'Gaming notes', date: '14/4/2023'},
27
- {title: 'Working notes', date: '5/6/2021'},
23
+ { title: 'Study notes', date: '15/11/2020' },
24
+ { title: 'Music notes', date: '14/12/2020' },
25
+ { title: 'Workout notes', date: '5/8/2021' },
26
+ { title: 'Gaming notes', date: '14/4/2023' },
27
+ { title: 'Working notes', date: '5/6/2021' },
28
28
  ])
29
29
 
30
30
  const cardIconClicked = (action, index) => {
@@ -32,7 +32,7 @@ const Notes = (props) => {
32
32
  case 'delete':
33
33
  deleteNote(index)
34
34
  break;
35
-
35
+
36
36
  default:
37
37
  break;
38
38
  }
@@ -45,7 +45,11 @@ const Notes = (props) => {
45
45
  const deleteNote = (index) => {
46
46
  setNotes(deleteFromArrayByIndex(notes, index))
47
47
  }
48
-
48
+
49
+ const cardClicked = (index, cardProps) => {
50
+ console.log(cardProps)
51
+ }
52
+
49
53
  return (
50
54
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
51
55
  <Navbar />
@@ -90,10 +94,25 @@ const Notes = (props) => {
90
94
  hideTitle
91
95
  >
92
96
  <ViewNotes
93
- onAddNote={onAddNote}
94
- cardIconClicked={cardIconClicked}
95
- notes={notes}
96
- />
97
+ onAddNote={onAddNote}
98
+ cardIconClicked={cardIconClicked}
99
+ notes={notes}
100
+ cardClicked={cardClicked}
101
+ headerStyles={{
102
+ padding: 10,
103
+ headerBackground: '#FE1744',
104
+ titleColor: '#ffff',
105
+ controlsStyles: {
106
+ iconSize: 25
107
+ }
108
+ }}
109
+ customCardStyles={{
110
+ iconColor: '#FE1744',
111
+ controlsStyles: {
112
+ iconColor: '#FE1744'
113
+ }
114
+ }}
115
+ />
97
116
 
98
117
  </SpaceContainer>
99
118
 
@@ -66,7 +66,7 @@ const Music = (props) => {
66
66
  case 'delete':
67
67
  deleteSonngFromAlbum(index)
68
68
  break;
69
-
69
+
70
70
  default:
71
71
  break;
72
72
  }
@@ -123,7 +123,21 @@ const Music = (props) => {
123
123
  album={album}
124
124
  onAddSong={onAddSong}
125
125
  cardIconClicked={cardIconClicked}
126
- cardClicked={onPlaySong} />
126
+ cardClicked={onPlaySong}
127
+ headerStyles={{
128
+ padding: 10,
129
+ headerBackground: 'black',
130
+ titleColor: '#ffff',
131
+ controlsStyles: {
132
+ iconSize: 25
133
+ }
134
+ }}
135
+ customCardStyles={{
136
+ controlsStyles: {
137
+ iconColor: 'blue'
138
+ }
139
+ }}
140
+ />
127
141
  </SpaceContainer>
128
142
 
129
143
  </Center>
@@ -56,6 +56,19 @@ const MusicAlbums = (props) => {
56
56
  const deleteFromAlbums = (index) => {
57
57
  setAlbums(deleteFromArrayByIndex(albums, index))
58
58
  }
59
+
60
+ const cardClicked = (index, cardProps) => {
61
+ console.log(cardProps)
62
+ }
63
+
64
+ const notes = [
65
+ {title: 'Study notes', date: '15/11/2020'},
66
+ {title: 'Music notes', date: '14/12/2020'},
67
+ {title: 'Workout notes', date: '5/8/2021'},
68
+ {title: 'Gaming notes', date: '14/4/2023'},
69
+ {title: 'Working notes', date: '5/6/2021'},
70
+ ]
71
+
59
72
  return (
60
73
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
61
74
  <Navbar />
@@ -100,35 +113,51 @@ const MusicAlbums = (props) => {
100
113
  hideTitle
101
114
  >
102
115
  <ViewAlbums
116
+ title="Music Albums"
103
117
  albums={albums}
104
118
  cardIconClicked={cardIconClicked}
105
- onAddAlbum={onAddAlbum} />
119
+ onAddAlbum={onAddAlbum}
120
+ headerStyles={{
121
+ padding: 10,
122
+ headerBackground: 'black',
123
+ titleColor: '#ffff',
124
+ controlsStyles: {
125
+ iconSize: 25
126
+ }
127
+ }}
128
+ customCardStyles={{
129
+ darkOnHover: true,
130
+ controlsStyles: {
131
+ showOnHover: true,
132
+ position: 'center',
133
+ dropdownFontColor: "white",
134
+ iconBorderRadius: 100,
135
+ iconSize: 40,
136
+ iconsGap: 10,
137
+ iconColor: 'white',
138
+ containerPadding: 20,
139
+ }
140
+ }}
141
+ cardClicked={cardClicked}
142
+ />
106
143
  </SpaceContainer>
107
144
 
108
145
  </Center>
109
146
  <Right>
110
- {/* <WidgetContainer
111
- widgetType='music player'
112
- controlsStyles={{
113
- iconColor: 'black',
114
- dropdownBackground: 'black',
115
- dropdownFontColor: 'white',
116
- }}
117
- widgetProps={{
118
- playlist: album,
119
- nextSong: nextSong,
120
- prevSong: prevSong,
121
- currentSong: currentSong,
122
- borderRadius: '10',
123
- primaryColor: 'black'
124
- }}
125
- headerStyles={{
126
- controlsStyles: {
127
- iconColor: 'red',
128
- },
129
- }}
130
- /> */}
131
-
147
+ <WidgetContainer
148
+ widgetType='notes'
149
+ widgetProps={{
150
+ notes,
151
+ headerStyles:{
152
+ padding: 10,
153
+ headerBackground: 'black',
154
+ titleColor: '#ffff',
155
+ controlsStyles: {
156
+ iconSize: 25
157
+ }
158
+ }}
159
+ }
160
+ />
132
161
  </Right>
133
162
  </Body>
134
163
  </BaseMaterial>
@@ -105,7 +105,13 @@ const Album = (props) => {
105
105
  addPhoto={onAddPhoto}
106
106
  deletePhoto={onDeletePhoto}
107
107
  cardIconClicked={cardIconClicked}
108
- columnsNumber={2} />
108
+ columnsNumber={2}
109
+ headerStyles={{
110
+ padding: 10,
111
+ controlsStyles: {
112
+ iconSize: 25
113
+ }
114
+ }} />
109
115
  </SpaceContainer>
110
116
 
111
117
  </Center>
@@ -36,6 +36,15 @@ const Albums = (props) => {
36
36
  { img: img6, title: 'Album 6', count: '24' },
37
37
  ])
38
38
 
39
+ const folders = [
40
+ { title: 'Folder one', description: 'Discription for folder one' },
41
+ { title: 'Folder two', description: 'Discription for folder two' },
42
+ { title: 'Folder three', description: 'Discription for folder three' },
43
+ { title: 'Folder four', description: 'Discription for folder four' },
44
+ { title: 'Folder five', description: 'Discription for folder five' },
45
+ { title: 'Folder six', description: 'Discription for folder six' },
46
+ ]
47
+
39
48
  const cardIconClicked = (action, index) => {
40
49
  switch (action) {
41
50
  case 'delete':
@@ -59,6 +68,10 @@ const Albums = (props) => {
59
68
  setAlbums(addObjectToArray(albums, newAlbum))
60
69
  }
61
70
 
71
+ const cardClicked = (index, cardProps) => {
72
+ console.log(cardProps)
73
+ }
74
+
62
75
  return (
63
76
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
64
77
  <Navbar />
@@ -108,32 +121,26 @@ const Albums = (props) => {
108
121
  onDeleteAlbum={onDeleteAlbum}
109
122
  onAddAlbum={onAddAlbum}
110
123
  columnsNumber={2}
124
+ cardClicked={cardClicked}
111
125
  />
112
126
  </SpaceContainer>
113
127
 
114
128
  </Center>
115
129
  <Right>
116
- {/* <WidgetContainer
117
- widgetType='music player'
118
- controlsStyles={{
119
- iconColor: 'black',
120
- dropdownBackground: 'black',
121
- dropdownFontColor: 'white',
122
- }}
130
+ <WidgetContainer
131
+ widgetType='folders'
123
132
  widgetProps={{
124
- playlist: album,
125
- nextSong: nextSong,
126
- prevSong: prevSong,
127
- currentSong: currentSong,
128
- borderRadius: '10',
129
- primaryColor: 'black'
130
- }}
131
- headerStyles={{
132
- controlsStyles: {
133
- iconColor: 'red',
134
- },
135
- }}
136
- /> */}
133
+ folders,
134
+ columnsNumber: 3,
135
+ customCardStyles:{
136
+ cardPadding: 10,
137
+ iconColor: '#ff2d2d',
138
+ controlsStyles: {
139
+ iconColor:'#FE1744'
140
+ }
141
+ }}
142
+ }
143
+ />
137
144
 
138
145
  </Right>
139
146
  </Body>
@@ -76,7 +76,8 @@ const DetailedVideo = (props) => {
76
76
  date="10/11/2022"
77
77
  comments={comments}
78
78
  discColor="gray"
79
- dateColor="gray" />
79
+ dateColor="gray"
80
+ videoSrc={'https://www.youtube.com/watch?v=vETUpJ88cfA'} />
80
81
  </SpaceContainer>
81
82
 
82
83
  </Center>
@@ -84,6 +84,9 @@ const Video = (props) => {
84
84
  setAlbum(deleteFromArrayByIndex(album, index))
85
85
  }
86
86
 
87
+ const cardClicked = (index, cardProps) => {
88
+ console.log(cardProps)
89
+ }
87
90
 
88
91
  return (
89
92
  <BaseMaterial {...worldStyles.containerStyle} {...props}>
@@ -132,7 +135,16 @@ const Video = (props) => {
132
135
  album={album}
133
136
  onAddVideo={onAddVideo}
134
137
  onDeleteSong={deleteVideoFromAlbum}
135
- cardIconClicked={cardIconClicked} />
138
+ cardIconClicked={cardIconClicked}
139
+ cardClicked={cardClicked}
140
+ headerStyles={{
141
+ padding: 10,
142
+ headerBackground: 'black',
143
+ titleColor: '#ffff',
144
+ controlsStyles: {
145
+ iconSize: 25
146
+ }
147
+ }} />
136
148
  </SpaceContainer>
137
149
 
138
150
  </Center>