Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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
0
Merge Requests
0
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
21_22-J 38
21_22-J 38
Commits
0c269041
Commit
0c269041
authored
Feb 19, 2022
by
Lihinikaduwa D.N.R.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new activity interface
parent
bf8373d3
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
150 additions
and
5 deletions
+150
-5
.DS_Store
.DS_Store
+0
-0
frontend/src/assets/read/activity-2-backg.jpeg
frontend/src/assets/read/activity-2-backg.jpeg
+0
-0
frontend/src/assets/read/activity-2-rob.png
frontend/src/assets/read/activity-2-rob.png
+0
-0
frontend/src/assets/read/backboard3.png
frontend/src/assets/read/backboard3.png
+0
-0
frontend/src/assets/read/background1.jpeg
frontend/src/assets/read/background1.jpeg
+0
-0
frontend/src/assets/read/reading.jpeg
frontend/src/assets/read/reading.jpeg
+0
-0
frontend/src/assets/read/reading2.png
frontend/src/assets/read/reading2.png
+0
-0
frontend/src/component/buttonView.js
frontend/src/component/buttonView.js
+2
-2
frontend/src/router/router.js
frontend/src/router/router.js
+6
-0
frontend/src/screen/Read.js
frontend/src/screen/Read.js
+8
-2
frontend/src/screen/activity/readActivity.js
frontend/src/screen/activity/readActivity.js
+1
-1
frontend/src/screen/activity/readActivity2.js
frontend/src/screen/activity/readActivity2.js
+133
-0
No files found.
.DS_Store
View file @
0c269041
No preview for this file type
frontend/src/assets/read/activity-2-backg.jpeg
0 → 100644
View file @
0c269041
57.1 KB
frontend/src/assets/read/activity-2-rob.png
0 → 100644
View file @
0c269041
43 KB
frontend/src/assets/read/backboard3.png
0 → 100644
View file @
0c269041
35.7 KB
frontend/src/assets/read/background1.jpeg
deleted
100644 → 0
View file @
bf8373d3
17.4 KB
frontend/src/assets/read/reading.jpeg
deleted
100644 → 0
View file @
bf8373d3
75.8 KB
frontend/src/assets/read/reading2.png
deleted
100644 → 0
View file @
bf8373d3
274 KB
frontend/src/component/buttonView.js
View file @
0c269041
...
...
@@ -5,7 +5,7 @@ import {Button, ButtonGroup, withTheme} from 'react-native-elements';
import
{
block
}
from
'
react-native-reanimated
'
;
export
default
function
ColorActivity
(
props
)
{
const
{
title
,
image
,
id
,
color
,
des
}
=
props
;
const
{
title
,
image
,
id
,
color
,
des
,
path
}
=
props
;
const
navigation
=
useNavigation
();
...
...
@@ -64,7 +64,7 @@ export default function ColorActivity(props) {
marginVertical
:
10
,
}}
onPress
=
{()
=>
{
navigation
.
navigate
(
'
ReadActivity
'
);
navigation
.
navigate
(
path
);
}}
/
>
<
/View
>
...
...
frontend/src/router/router.js
View file @
0c269041
...
...
@@ -11,6 +11,7 @@ import Color from '../screen/Color';
import
Blue
from
'
../screen/activity/Blue
'
;
import
Read
from
'
../screen/Read
'
;
import
ReadActivity
from
'
../screen/activity/readActivity
'
;
import
ReadActivity2
from
'
../screen/activity/readActivity2
'
;
const
Stack
=
createNativeStackNavigator
();
const
AppRouter
=
()
=>
{
...
...
@@ -62,6 +63,11 @@ const AppRouter = () => {
name
=
"
ReadActivity
"
component
=
{
ReadActivity
}
/
>
<
Stack
.
Screen
options
=
{{
headerShown
:
false
}}
name
=
"
ReadActivity2
"
component
=
{
ReadActivity2
}
/
>
<
/Stack.Navigator
>
<
/NavigationContainer
>
);
...
...
frontend/src/screen/Read.js
View file @
0c269041
...
...
@@ -66,8 +66,14 @@ export default function Read() {
return <ButtonView title={data.round} color="#00008B" />;
})} */
}
<
ButtonView
title
=
"
First Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
Second Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
First Round
"
color
=
"
#00008B
"
path
=
"
ReadActivity
"
><
/ButtonView
>
<
ButtonView
title
=
"
Second Round
"
color
=
"
#00008B
"
path
=
"
ReadActivity2
"
><
/ButtonView
>
{
/* <ButtonView title="Third Round" color="#00008B"></ButtonView> */
}
<
/ScrollView
>
<
/SafeAreaView
>
...
...
frontend/src/screen/activity/readActivity.js
View file @
0c269041
...
...
@@ -40,7 +40,7 @@ export default function ReadActivity() {
<
Image
style
=
{
styles
.
robo
}
source
=
{
require
(
'
../../assets/read/
robot1
.png
'
)}
><
/Image
>
source
=
{
require
(
'
../../assets/read/
activity-2-rob
.png
'
)}
><
/Image
>
<
/View
>
<
View
>
...
...
frontend/src/screen/activity/readActivity2.js
0 → 100644
View file @
0c269041
import
{
useNavigation
}
from
'
@react-navigation/native
'
;
import
Orientation
from
'
react-native-orientation-locker
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
Text
,
TouchableOpacity
,
StyleSheet
,
View
,
ImageButton
,
SafeAreaView
,
ImageBackground
,
Button
,
Image
,
}
from
'
react-native
'
;
export
default
function
ReadActivity2
()
{
const
navigation
=
useNavigation
();
// React.useEffect(() => {
// const unsubscribe = navigation.addListener('focus', () => {
// // The screen is focused
// // Call any action
// Orientation.unlockAllOrientations();
// Orientation.lockToLandscape();
// });
// return unsubscribe;
// }, [navigation]);
return
(
<
SafeAreaView
>
<
View
style
=
{{
flexDirection
:
'
column
'
}}
>
<
ImageBackground
style
=
{
styles
.
image
}
source
=
{
require
(
'
../../assets/read/activity-2-backg.jpeg
'
)}
>
<
View
style
=
{
styles
.
imageContainer
}
>
<
View
style
=
{
styles
.
imageView
}
>
<
View
style
=
{
styles
.
robo
}
>
<
Image
source
=
{
require
(
'
../../assets/read/activity-2-rob.png
'
)}
><
/Image
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
textBody
}
>
<
Text
style
=
{
styles
.
text
}
>
Pronounce
this
Word
!<
/Text
>
<
/View
>
<
/View
>
{
/* <View style={styles.textBody}>
<Text style={styles.text}>Pronounce this Word!</Text>
</View>
<View style={styles.robo}>
<Image
source={require('../../assets/read/activity-2-rob.png')}></Image>
</View> */
}
<
View
>
<
Image
style
=
{
styles
.
blackboard
}
source
=
{
require
(
'
../../assets/read/backboard3.png
'
)}
><
/Image
>
<
/View
>
{
/* <View style={{flexDirection: 'row', marginTop: 120}}>
<Button style={styles.button} title="Start" />
</View> */
}
<
/ImageBackground
>
<
/View
>
<
/SafeAreaView
>
);
}
const
styles
=
StyleSheet
.
create
({
imageContainer
:
{
flexDirection
:
'
row
'
,
marginTop
:
70
,
},
imageView
:
{
width
:
180
,
height
:
300
,
// borderWidth:1,
// borderColor: "#000",
marginHorizontal
:
1
,
marginVertical
:
100
,
},
body
:
{
flex
:
1
,
},
image
:
{
width
:
'
100%
'
,
height
:
'
100%
'
,
},
box
:
{
width
:
180
,
height
:
180
,
// borderColor: "#000000",
backgroundColor
:
'
blue
'
,
marginTop
:
-
370
,
marginLeft
:
455
,
borderRadius
:
100
,
},
blackboard
:
{
marginTop
:
-
320
,
marginLeft
:
200
,
width
:
'
50%
'
,
height
:
300
,
},
robo
:
{
marginTop
:
90
,
marginLeft
:
5
,
width
:
150
,
height
:
200
,
},
textBody
:
{
marginTop
:
150
,
marginLeft
:
-
30
,
// backgroundColor: '#00008B',
width
:
150
,
borderRadius
:
50
,
padding
:
5
,
},
text
:
{
fontSize
:
25
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
color
:
'
#00008B
'
,
textAlign
:
'
center
'
,
fontWeight
:
'
bold
'
,
},
button
:
{
padding
:
10
,
marginLeft
:
5
,
color
:
'
#000000
'
,
},
});
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