Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pianoApp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
norhalimah
pianoApp
Commits
a0a9af4c
Commit
a0a9af4c
authored
Apr 13, 2021
by
norhalimah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style
parent
11a4245d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
38 deletions
+60
-38
App.js
App.js
+16
-5
data.js
screens/data.js
+28
-28
listening.js
screens/listening.js
+10
-0
quiz.js
screens/quiz.js
+0
-0
styleQuiz.js
style/styleQuiz.js
+6
-5
No files found.
App.js
View file @
a0a9af4c
...
@@ -141,12 +141,18 @@ class App extends React.PureComponent {
...
@@ -141,12 +141,18 @@ class App extends React.PureComponent {
name
=
"2"
name
=
"2"
component
=
{
Quiz
}
component
=
{
Quiz
}
options
=
{({
navigation
})
=>
({
options
=
{({
navigation
})
=>
({
//title: 'C Major',
title
:
'Scale'
,
headerTitleStyle
:
{
fontFamily
:
'Gilroy-Bold'
,
fontSize
:
20
,
lineHeight
:
25
,
marginHorizontal
:
Dimensions
.
get
(
'window'
).
width
*
0.15
,
color
:
'#3B3A39'
,
},
headerStyle
:
{
headerStyle
:
{
backgroundColor
:
'#E07EF9'
,
backgroundColor
:
'#E07EF9'
,
},
},
headerTintColor
:
'#fff'
,
headerTintColor
:
'#fff'
,
title
:
''
,
headerTransparent
:
true
,
headerTransparent
:
true
,
headerBackImage
:
()
=>
(
headerBackImage
:
()
=>
(
<
Icon
<
Icon
...
@@ -166,12 +172,18 @@ class App extends React.PureComponent {
...
@@ -166,12 +172,18 @@ class App extends React.PureComponent {
name
=
"3"
name
=
"3"
component
=
{
Listen
}
component
=
{
Listen
}
options
=
{({
navigation
})
=>
({
options
=
{({
navigation
})
=>
({
//title: 'C Major
',
title
:
'Listen Skill
'
,
headerStyle
:
{
headerStyle
:
{
backgroundColor
:
'#E07EF9'
,
backgroundColor
:
'#E07EF9'
,
},
},
headerTitleStyle
:
{
fontFamily
:
'Gilroy-Bold'
,
fontSize
:
30
,
lineHeight
:
25
,
marginHorizontal
:
Dimensions
.
get
(
'window'
).
width
*
0.15
,
color
:
'#3B3A39'
,
},
headerTintColor
:
'#fff'
,
headerTintColor
:
'#fff'
,
title
:
''
,
headerTransparent
:
true
,
headerTransparent
:
true
,
headerBackImage
:
()
=>
(
headerBackImage
:
()
=>
(
<
Icon
<
Icon
...
@@ -201,7 +213,6 @@ class App extends React.PureComponent {
...
@@ -201,7 +213,6 @@ class App extends React.PureComponent {
fontFamily
:
'Gilroy-Bold'
,
fontFamily
:
'Gilroy-Bold'
,
fontSize
:
20
,
fontSize
:
20
,
lineHeight
:
25
,
lineHeight
:
25
,
marginHorizontal
:
Dimensions
.
get
(
'window'
).
width
*
0.15
,
},
},
headerBackImage
:
()
=>
(
headerBackImage
:
()
=>
(
<
Image
<
Image
...
...
screens/data.js
View file @
a0a9af4c
...
@@ -2,115 +2,115 @@
...
@@ -2,115 +2,115 @@
const
notes
=
[
const
notes
=
[
{
{
name
:
'C Major'
,
name
:
'C Major'
,
image
:
require
(
'../media/img/
C
major.png'
),
image
:
require
(
'../media/img/
img_c
major.png'
),
},
},
{
{
name
:
'D Major'
,
name
:
'D Major'
,
image
:
require
(
'../media/img/
D
major.png'
),
image
:
require
(
'../media/img/
img_d
major.png'
),
},
},
{
{
name
:
'E Major'
,
name
:
'E Major'
,
image
:
require
(
'../media/img/
E
major.png'
),
image
:
require
(
'../media/img/
img_e
major.png'
),
},
},
{
{
name
:
'F Sharp Major'
,
name
:
'F Sharp Major'
,
image
:
require
(
'../media/img/
Fs
major.png'
),
image
:
require
(
'../media/img/
img_fsharp
major.png'
),
},
},
{
{
name
:
'F Major'
,
name
:
'F Major'
,
image
:
require
(
'../media/img/
F
major.png'
),
image
:
require
(
'../media/img/
img_f
major.png'
),
},
},
{
{
name
:
'E Flat Major'
,
name
:
'E Flat Major'
,
image
:
require
(
'../media/img/
E
flatmajor.png'
),
image
:
require
(
'../media/img/
img_e
flatmajor.png'
),
},
},
{
{
name
:
'D Flat Major'
,
name
:
'D Flat Major'
,
image
:
require
(
'../media/img/
D
flatmajor.png'
),
image
:
require
(
'../media/img/
img_d
flatmajor.png'
),
},
},
{
{
name
:
'G Major'
,
name
:
'G Major'
,
image
:
require
(
'../media/img/
G
major.png'
),
image
:
require
(
'../media/img/
img_g
major.png'
),
},
},
{
{
name
:
'A Major'
,
name
:
'A Major'
,
image
:
require
(
'../media/img/
A
major.png'
),
image
:
require
(
'../media/img/
img_a
major.png'
),
},
},
{
{
name
:
'B Major'
,
name
:
'B Major'
,
image
:
require
(
'../media/img/
B
major.png'
),
image
:
require
(
'../media/img/
img_b
major.png'
),
},
},
{
{
name
:
'C Sharp Major'
,
name
:
'C Sharp Major'
,
image
:
require
(
'../media/img/
Cs
major.png'
),
image
:
require
(
'../media/img/
img_csharp
major.png'
),
},
},
{
{
name
:
'B Flat Major'
,
name
:
'B Flat Major'
,
image
:
require
(
'../media/img/
B
flatmajor.png'
),
image
:
require
(
'../media/img/
img_b
flatmajor.png'
),
},
},
{
{
name
:
'A Flat Major'
,
name
:
'A Flat Major'
,
image
:
require
(
'../media/img/
A
flatmajor.png'
),
image
:
require
(
'../media/img/
img_a
flatmajor.png'
),
},
},
{
{
name
:
'G Flat Major'
,
name
:
'G Flat Major'
,
image
:
require
(
'../media/img/
G
flatmajor.png'
),
image
:
require
(
'../media/img/
img_g
flatmajor.png'
),
},
},
{
{
name
:
'Bass Clef C Major'
,
name
:
'Bass Clef C Major'
,
image
:
require
(
'../media/img/bass_cmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_cmajor.png'
),
},
},
{
{
name
:
'Bass Clef D Major'
,
name
:
'Bass Clef D Major'
,
image
:
require
(
'../media/img/bass_dmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_dmajor.png'
),
},
},
{
{
name
:
'Bass Clef E Major'
,
name
:
'Bass Clef E Major'
,
image
:
require
(
'../media/img/bass_emajor.png'
),
image
:
require
(
'../media/img/
img_
bass_emajor.png'
),
},
},
{
{
name
:
'Bass Clef F Sharp Major'
,
name
:
'Bass Clef F Sharp Major'
,
image
:
require
(
'../media/img/bass_fsmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_fsmajor.png'
),
},
},
{
{
name
:
'Bass Clef F Major'
,
name
:
'Bass Clef F Major'
,
image
:
require
(
'../media/img/bass_fmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_fmajor.png'
),
},
},
{
{
name
:
'Bass Clef E Flat Major'
,
name
:
'Bass Clef E Flat Major'
,
image
:
require
(
'../media/img/bass_eflat.png'
),
image
:
require
(
'../media/img/
img_
bass_eflat.png'
),
},
},
{
{
name
:
'Bass Clef D Flat Major'
,
name
:
'Bass Clef D Flat Major'
,
image
:
require
(
'../media/img/bass_dflat.png'
),
image
:
require
(
'../media/img/
img_
bass_dflat.png'
),
},
},
{
{
name
:
'Bass Clef G Major'
,
name
:
'Bass Clef G Major'
,
image
:
require
(
'../media/img/bass_gmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_gmajor.png'
),
},
},
{
{
name
:
'Bass Clef A Major'
,
name
:
'Bass Clef A Major'
,
image
:
require
(
'../media/img/bass_amajor.png'
),
image
:
require
(
'../media/img/
img_
bass_amajor.png'
),
},
},
{
{
name
:
'Bass Clef B Major'
,
name
:
'Bass Clef B Major'
,
image
:
require
(
'../media/img/bass_bmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_bmajor.png'
),
},
},
{
{
name
:
'Bass Clef C Sharp Major'
,
name
:
'Bass Clef C Sharp Major'
,
image
:
require
(
'../media/img/bass_csmajor.png'
),
image
:
require
(
'../media/img/
img_
bass_csmajor.png'
),
},
},
{
{
name
:
'Bass Clef B Flat Major'
,
name
:
'Bass Clef B Flat Major'
,
image
:
require
(
'../media/img/bass_bflat.png'
),
image
:
require
(
'../media/img/
img_
bass_bflat.png'
),
},
},
{
{
name
:
'Bass Clef A Flat Major'
,
name
:
'Bass Clef A Flat Major'
,
image
:
require
(
'../media/img/bass_aflat.png'
),
image
:
require
(
'../media/img/
img_
bass_aflat.png'
),
},
},
{
{
name
:
'Bass Clef G Flat Major'
,
name
:
'Bass Clef G Flat Major'
,
image
:
require
(
'../media/img/bass_gflat.png'
),
image
:
require
(
'../media/img/
img_
bass_gflat.png'
),
},
},
];
];
...
...
screens/listening.js
View file @
a0a9af4c
...
@@ -67,6 +67,16 @@ const NOTESBLACK = [{name: 'A#0', left: 0.053},
...
@@ -67,6 +67,16 @@ const NOTESBLACK = [{name: 'A#0', left: 0.053},
const
keywordsList
=
[];
const
keywordsList
=
[];
const
corSound
=
require
(
'../media/sound/correct.mp3'
);
const
corSound
=
require
(
'../media/sound/correct.mp3'
);
const
wroSound
=
require
(
'../media/sound/wrong.mp3'
);
const
wroSound
=
require
(
'../media/sound/wrong.mp3'
);
const
correctIcon
=
require
(
'../media/img/img_smile.png'
);
const
wrongIcon
=
require
(
'../media/img/img_sad.png'
);
const
doneIcon
=
require
(
'../media/img/img_achieve.png'
);
const
quitIcon
=
require
(
'../media/img/img_qiut.png'
);
const
wroIcon
=
require
(
'../media/img/icon_wrong.png'
);
const
corIcon
=
require
(
'../media/img/icon_check.png'
);
const
timerIcon
=
require
(
'../media/img/icon_timer.png'
);
const
rightIcon
=
require
(
'../media/img/btn_right.png'
);
const
leftIcon
=
require
(
'../media/img/btn_left.png'
);
const
playIcon
=
require
(
'../media/img/btn_play.png'
);
const
keySound
=
Listennotes
;
const
keySound
=
Listennotes
;
var
soundN
=
''
;
var
soundN
=
''
;
...
...
screens/quiz.js
View file @
a0a9af4c
This diff is collapsed.
Click to expand it.
style/styleQuiz.js
View file @
a0a9af4c
...
@@ -180,9 +180,6 @@ export default StyleSheet.create({
...
@@ -180,9 +180,6 @@ export default StyleSheet.create({
logo
:
{
logo
:
{
height
:
config
.
deviceWidth
*
0.22
,
height
:
config
.
deviceWidth
*
0.22
,
width
:
config
.
deviceHeight
*
0.5
,
width
:
config
.
deviceHeight
*
0.5
,
borderColor
:
'black'
,
borderWidth
:
3
,
borderRadius
:
10
,
position
:
'absolute'
,
position
:
'absolute'
,
marginTop
:
config
.
deviceWidth
*
0.11
,
marginTop
:
config
.
deviceWidth
*
0.11
,
backgroundColor
:
'white'
,
backgroundColor
:
'white'
,
...
@@ -271,7 +268,7 @@ export default StyleSheet.create({
...
@@ -271,7 +268,7 @@ export default StyleSheet.create({
selectedKeywordStyle
:
{
selectedKeywordStyle
:
{
width
:
config
.
deviceWidth
*
0.075
,
width
:
config
.
deviceWidth
*
0.075
,
alignItems
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
'#
EEA1E1
'
,
backgroundColor
:
'#
FCE1FF
'
,
borderRightWidth
:
1
,
borderRightWidth
:
1
,
borderColor
:
'black'
,
borderColor
:
'black'
,
borderBottomWidth
:
1
,
borderBottomWidth
:
1
,
...
@@ -283,10 +280,14 @@ export default StyleSheet.create({
...
@@ -283,10 +280,14 @@ export default StyleSheet.create({
height
:
'55%'
,
height
:
'55%'
,
width
:
'5%'
,
width
:
'5%'
,
position
:
'absolute'
,
position
:
'absolute'
,
borderWidth
:
0.5
,
borderColor
:
'#707070'
,
},
},
SbuttonB1
:
{
SbuttonB1
:
{
alignItems
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
'#92ddea'
,
backgroundColor
:
'#FCE1FF'
,
borderWidth
:
0.5
,
borderColor
:
'#707070'
,
height
:
'55%'
,
height
:
'55%'
,
width
:
'5%'
,
width
:
'5%'
,
position
:
'absolute'
,
position
:
'absolute'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment