Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 18
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 18
22_23-J 18
Commits
059e94b6
Commit
059e94b6
authored
Apr 17, 2023
by
Udbhasa M M S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
container modifications
parent
5d2eb43f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
89 additions
and
12 deletions
+89
-12
App/Frontend/App.js
App/Frontend/App.js
+4
-0
App/Frontend/screens/PhoneticWordsScreen.js
App/Frontend/screens/PhoneticWordsScreen.js
+23
-0
App/Frontend/screens/SpeechTherapyScreen.js
App/Frontend/screens/SpeechTherapyScreen.js
+62
-12
App/Frontend/screens/assets/ST/blackboard.png
App/Frontend/screens/assets/ST/blackboard.png
+0
-0
App/Frontend/screens/assets/ST/content/school_sentence.m4a
App/Frontend/screens/assets/ST/content/school_sentence.m4a
+0
-0
App/Frontend/screens/assets/ST/next.png
App/Frontend/screens/assets/ST/next.png
+0
-0
App/Frontend/screens/assets/ST/owl.png
App/Frontend/screens/assets/ST/owl.png
+0
-0
App/Frontend/screens/assets/ST/st_bg.png
App/Frontend/screens/assets/ST/st_bg.png
+0
-0
No files found.
App/Frontend/App.js
View file @
059e94b6
...
...
@@ -8,6 +8,7 @@ import WordGenerationScreen from './screens/WordGenerationScreen';
import
SpeechTherapyScreen
from
'
./screens/SpeechTherapyScreen
'
;
import
ProgressMapScreen
from
'
./screens/ProgressMapScreen
'
;
import
WordGameScreen
from
'
./screens/WordGameScreen
'
;
import
PhoneticWordScreen
from
'
./screens/PhoneticWordsScreen
'
;
const
MainStack
=
createStackNavigator
(
{
...
...
@@ -32,6 +33,9 @@ const MainStack = createStackNavigator(
WordGame
:
{
screen
:
WordGameScreen
,
},
PhoneticWord
:
{
screen
:
PhoneticWordScreen
,
},
},
{
initialRouteName
:
'
Login
'
,
...
...
App/Frontend/screens/PhoneticWordsScreen.js
0 → 100644
View file @
059e94b6
import
React
from
'
react
'
;
import
{
StyleSheet
,
Text
,
View
}
from
'
react-native
'
;
export
default
function
ScreenName
()
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
text
}
>
Sample
screen
<
/Text
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
backgroundColor
:
'
#61A6AB
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
},
text
:
{
fontSize
:
24
,
color
:
'
white
'
,
},
});
App/Frontend/screens/SpeechTherapyScreen.js
View file @
059e94b6
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
View
,
Text
,
StyleSheet
}
from
'
react-native
'
;
import
{
View
,
Text
,
StyleSheet
,
ImageBackground
,
TouchableOpacity
,
Image
}
from
'
react-native
'
;
import
{
Audio
}
from
'
expo-av
'
;
import
*
as
ScreenOrientation
from
'
expo-screen-orientation
'
;
const
SpeechTherapyScreen
=
()
=>
{
const
SpeechTherapyScreen
=
(
{
navigation
}
)
=>
{
const
[
sound
,
setSound
]
=
useState
(
null
);
const
[
progress
,
setProgress
]
=
useState
(
0
);
const
text
=
"
i go to school
"
;
const
audioPath
=
'
./assets/CG/content/school_sentence.m4a
'
;
const
text
=
"
I go to school
"
;
const
audioPath
=
'
./assets/ST/content/school_sentence.m4a
'
;
const
backgroundPath
=
'
./assets/ST/blackboard.png
'
;
const
buttonPath
=
'
./assets/ST/next.png
'
;
const
owlPath
=
'
./assets/ST/owl.png
'
;
useEffect
(()
=>
{
async
function
changeScreenOrientation
()
{
...
...
@@ -50,20 +53,38 @@ const SpeechTherapyScreen = () => {
const
getCharColor
=
(
charIndex
)
=>
{
const
charProgress
=
charIndex
/
text
.
length
;
return
charProgress
<=
progress
?
'
black
'
:
'
white
'
;
return
charProgress
<=
progress
?
'
#FFCE6D
'
:
'
white
'
;
};
const
navigateToPhoneticWords
=
()
=>
{
navigation
.
navigate
(
'
PhoneticWord
'
);
};
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
text
}
>
{
text
.
split
(
''
).
map
((
char
,
index
)
=>
(
<
Text
key
=
{
index
}
style
=
{{
color
:
getCharColor
(
index
)
}}
>
{
char
}
<
View
style
=
{
styles
.
backgroundWrapper
}
>
<
ImageBackground
source
=
{
require
(
backgroundPath
)}
style
=
{
styles
.
backgroundImage
}
resizeMode
=
"
contain
"
>
<
Text
style
=
{
styles
.
text
}
>
{
text
.
split
(
''
).
map
((
char
,
index
)
=>
(
<
Text
key
=
{
index
}
style
=
{{
color
:
getCharColor
(
index
)
}}
>
{
char
}
<
/Text
>
))}
<
/Text
>
))}
<
/Text
>
<
/ImageBackground
>
<
/View
>
<
TouchableOpacity
onPress
=
{
navigateToPhoneticWords
}
style
=
{
styles
.
button
}
>
<
Image
source
=
{
require
(
buttonPath
)}
style
=
{
styles
.
buttonImage
}
/
>
<
/TouchableOpacity
>
<
Image
source
=
{
require
(
owlPath
)}
style
=
{
styles
.
owlImage
}
/
>
<
/View
>
);
};
const
styles
=
StyleSheet
.
create
({
...
...
@@ -73,8 +94,37 @@ const styles = StyleSheet.create({
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
},
backgroundWrapper
:
{
width
:
'
90%
'
,
height
:
'
80%
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
},
backgroundImage
:
{
width
:
'
100%
'
,
height
:
'
100%
'
,
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
},
text
:
{
fontSize
:
24
,
fontSize
:
65
,
fontWeight
:
'
bold
'
,
},
button
:
{
position
:
'
absolute
'
,
bottom
:
10
,
right
:
10
,
},
buttonImage
:
{
width
:
50
,
height
:
50
,
},
owlImage
:
{
position
:
'
absolute
'
,
bottom
:
10
,
left
:
30
,
width
:
190
,
height
:
140
,
},
});
...
...
App/Frontend/screens/assets/ST/blackboard.png
0 → 100644
View file @
059e94b6
3.12 MB
App/Frontend/screens/assets/
CG
/content/school_sentence.m4a
→
App/Frontend/screens/assets/
ST
/content/school_sentence.m4a
View file @
059e94b6
File moved
App/Frontend/screens/assets/ST/next.png
0 → 100644
View file @
059e94b6
46.7 KB
App/Frontend/screens/assets/ST/owl.png
0 → 100644
View file @
059e94b6
151 KB
App/Frontend/screens/assets/ST/st_bg.png
0 → 100644
View file @
059e94b6
74.3 KB
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