2020-08-09 20:56:12 -04:00
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
|
|
SafeAreaView,
|
|
|
|
StyleSheet,
|
|
|
|
ScrollView,
|
|
|
|
View,
|
|
|
|
Text,
|
|
|
|
StatusBar,
|
2020-10-07 13:13:47 -04:00
|
|
|
Linking,
|
|
|
|
Image,
|
2020-10-09 21:10:34 -04:00
|
|
|
TouchableOpacity
|
2020-08-09 20:56:12 -04:00
|
|
|
} from 'react-native';
|
|
|
|
|
|
|
|
import {
|
|
|
|
Header,
|
|
|
|
LearnMoreLinks,
|
|
|
|
Colors,
|
|
|
|
DebugInstructions,
|
|
|
|
ReloadInstructions,
|
|
|
|
} from 'react-native/Libraries/NewAppScreen';
|
2020-10-07 13:13:47 -04:00
|
|
|
import styles from './styles/morestyles';
|
2020-10-09 21:10:34 -04:00
|
|
|
|
|
|
|
function ResourceLink(props) {
|
|
|
|
return (
|
|
|
|
<TouchableOpacity style={styles.resourceContainer} onPress={() => Linking.openURL(props.url)}>
|
|
|
|
<Image source={props.img} style={styles.image}/>
|
2020-12-07 01:07:07 -05:00
|
|
|
<View style={styles.textContainer}>
|
2020-10-09 21:10:34 -04:00
|
|
|
<Text style={styles.resourceText}>{props.name}</Text>
|
|
|
|
</View>
|
|
|
|
</TouchableOpacity>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-08-09 20:56:12 -04:00
|
|
|
class Resources extends React.Component {
|
|
|
|
render() {
|
|
|
|
return (
|
2020-12-07 01:07:07 -05:00
|
|
|
<ScrollView style = {{backgroundColor: 'white'}}>
|
2020-10-09 21:10:34 -04:00
|
|
|
<ResourceLink url='https://classroom.mcpsmd.org/' img={require('./assets/canvaslogo.png')} name='MyMCPS Classroom'/>
|
|
|
|
<ResourceLink url='https://md-mcps-psv.edupoint.com/Home_PXP2.aspx' img={require('./assets/studentvue.jpg')} name='StudentVUE'/>
|
|
|
|
<ResourceLink url='https://student.naviance.com/mbhs' img={require('./assets/naviance.png')} name='Naviance'/>
|
|
|
|
<ResourceLink url='https://blairblazersathletics.com/' img={require('./assets/athletics.jpg')} name='Blair Athletics'/>
|
|
|
|
<ResourceLink url='https://classroom.google.com/u/0/h' img={require('./assets/googleclassroom.jpg')} name='Google Classroom'/>
|
2020-10-07 13:13:47 -04:00
|
|
|
</ScrollView>
|
2020-08-09 20:56:12 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Resources;
|