From 3b842be5c9eee1a9e717d9d0582fbbdbba03b9a6 Mon Sep 17 00:00:00 2001 From: Emily Liu Date: Fri, 20 Nov 2020 02:44:02 -0500 Subject: [PATCH] poll pg (no css?) + styling --- app/Announcements.js | 2 +- app/Clubs.js | 4 ++-- app/LunchEvents.js | 4 ++-- app/Poll.js | 15 +++++++++++---- app/SSLOps.js | 4 ++-- app/Staff.js | 2 +- app/StudentWeek.js | 32 +++++++++++++++++++++++++------- app/styles/liststyles.js | 12 +++++++++++- 8 files changed, 55 insertions(+), 20 deletions(-) diff --git a/app/Announcements.js b/app/Announcements.js index fa65493..2261c5d 100644 --- a/app/Announcements.js +++ b/app/Announcements.js @@ -55,7 +55,7 @@ function TeacherButton(props) { return ( {props.navigation.navigate('TeacherList',{data:props.data,name:props.name})}} activeOpacity={0.8}> - {props.name} + {props.name} {props.icon?{setColor(color=='#dba309'?'lightgrey':'#dba309');props.addFavorite(props.name)}}/>:<>} diff --git a/app/Clubs.js b/app/Clubs.js index 926058e..b3589d3 100644 --- a/app/Clubs.js +++ b/app/Clubs.js @@ -34,7 +34,7 @@ const Stack = createStackNavigator(); export const ClubInfo = ({route}) => { const item = route.params; return ( - + Meeting Time and Day: {item.meeting} @@ -57,7 +57,7 @@ function ClubElement (props) { props.navigation.navigate('ClubInfo', {data:props.data,name:props.name,meeting:item.meeting,link:item.link,sponsor:item.sponsor})} activeOpacity={0.8}> - {props.item.name} + {props.item.name} diff --git a/app/LunchEvents.js b/app/LunchEvents.js index 1be04d5..fa82372 100644 --- a/app/LunchEvents.js +++ b/app/LunchEvents.js @@ -27,7 +27,7 @@ const Stack = createStackNavigator(); export const LunchInfo = ({route}) => { const item = route.params; return ( - + Description: {item.text} @@ -47,7 +47,7 @@ function LunchEvent (props) { props.navigation.navigate('LunchInfo', {data:props.data,name:item.title,text:item.text,loc:item.loc})} activeOpacity={0.8}> - {item.title} + {item.title} diff --git a/app/Poll.js b/app/Poll.js index 71cc40a..153a1af 100644 --- a/app/Poll.js +++ b/app/Poll.js @@ -15,13 +15,20 @@ import { DebugInstructions, ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; - +import {WebView} from 'react-native-webview'; class Poll extends React.Component { render() { return ( - - - + + ) } } diff --git a/app/SSLOps.js b/app/SSLOps.js index d0818bb..231cdfb 100644 --- a/app/SSLOps.js +++ b/app/SSLOps.js @@ -29,7 +29,7 @@ export const SSLInfo = ({route}) => { const item = route.params; console return ( - + Description: {item.text} @@ -53,7 +53,7 @@ function SSLElement (props) { props.navigation.navigate('SSLInfo', {data: props.data, name: item.item.title, text: item.item.text, loc:item.item.loc, teacher: item.item.teacher})} activeOpacity={0.8}> - {item.item.title} + {item.item.title} diff --git a/app/Staff.js b/app/Staff.js index fd80445..bb65e29 100644 --- a/app/Staff.js +++ b/app/Staff.js @@ -32,7 +32,7 @@ const StaffElement = ({item}) => { setVisible(!visible)} activeOpacity={0.8}> - {item.item.name} + {item.item.name} {visible?extra:<>} diff --git a/app/StudentWeek.js b/app/StudentWeek.js index 924044c..8c3aa25 100644 --- a/app/StudentWeek.js +++ b/app/StudentWeek.js @@ -45,13 +45,31 @@ class StudentWeek extends React.Component { } else { const iconURI = this.state.data.icon !== undefined?`data:image/png;charset=utf-8;base64,${this.state.data.icon}`:''; return ( - - {this.state.data.name} - - - Grade {this.state.data.year} - {"\n"}Hobbies: {this.state.data.hobbies} - {"\n"}Achievements: {this.state.data.achievements} + + + + {this.state.data.name} + {'\t'}Grade {this.state.data.year} + + + + + + + + + + {"\n"}Hobbies + {'\t'}{this.state.data.hobbies} + + + {"\n"}Achievements + {'\t'}{this.state.data.achievements} + + + {"\n"}Message + {'\t'}{this.state.data.messages} + diff --git a/app/styles/liststyles.js b/app/styles/liststyles.js index 2527b12..a6c4313 100644 --- a/app/styles/liststyles.js +++ b/app/styles/liststyles.js @@ -19,7 +19,7 @@ const styles = StyleSheet.create({ width: '100%', }, title: { - fontSize: 28, + fontSize: 20, }, date: { fontSize:12, @@ -40,6 +40,9 @@ const styles = StyleSheet.create({ textDecorationStyle: "solid", textDecorationColor: "red", }, + title3: { + fontSize: 28, + }, link: { fontSize: 28, textDecorationLine: 'underline', @@ -51,6 +54,13 @@ const styles = StyleSheet.create({ borderRadius: 6, padding: 5, marginBottom: 10, + shadowColor: "black", + shadowOffset: { + width: 0, + height: 0 + }, + shadowOpacity: 0.3, + shadowRadius: 3, }, headerTitle: { fontSize: 24,