Skip to content

Commit

Permalink
updated about us
Browse files Browse the repository at this point in the history
  • Loading branch information
Louie Jay De La Cruz committed Apr 25, 2024
1 parent ad8f8be commit 984c5cc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
22 changes: 17 additions & 5 deletions screens/about.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
import React from 'react';
import {SafeAreaView} from 'react-native';
import {Layout, Text, TopNavigation} from '@ui-kitten/components';
import {
StyleService,
TopNavigation,
useStyleSheet,
} from '@ui-kitten/components';

import {Divider} from '../components/divider';
import {Footer} from '../components/footer';
import {About as AboutComponent} from '../components/about';

export const About = () => {
const styles = useStyleSheet(themedStyles);

return (
<SafeAreaView style={{flex: 1}}>
<SafeAreaView style={styles.container}>
<TopNavigation alignment="center" title="About" />
<Divider />
<Layout style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
<Text>About</Text>
</Layout>
<AboutComponent />
<Footer />
</SafeAreaView>
);
};

const themedStyles = StyleService.create({
container: {
flex: 1,
backgroundColor: 'background-basic-color-1',
},
});
13 changes: 11 additions & 2 deletions screens/comparison.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
import React from 'react';
import {SafeAreaView} from 'react-native';
import {Layout, Text, TopNavigation} from '@ui-kitten/components';
import {StyleService, useStyleSheet} from '@ui-kitten/components';

import {Details} from '../components/details';
import {DetailsTopNavigation} from '../components/detailsTopNavigation';
import {Divider} from '../components/divider';
import {Footer} from '../components/footer';

export const Comparison = () => {
const styles = useStyleSheet(themedStyles);

return (
<SafeAreaView style={{flex: 1}}>
<SafeAreaView style={styles.container}>
<DetailsTopNavigation />
<Divider />
<Details />
<Footer />
</SafeAreaView>
);
};

const themedStyles = StyleService.create({
container: {
flex: 1,
backgroundColor: 'background-basic-color-1',
},
});
13 changes: 2 additions & 11 deletions screens/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ import {Products} from '../components/products';

export const Home = () => {
const styles = useStyleSheet(themedStyles);
const theme = useTheme();

return (
<SafeAreaView
style={[
styles.flex,
{backgroundColor: theme['background-basic-color-1']},
]}>
<SafeAreaView style={styles.container}>
<TopNavigation alignment="center" title="Products" />
<Divider />
<Products />
Expand All @@ -32,12 +27,8 @@ export const Home = () => {
};

const themedStyles = StyleService.create({
flex: {
flex: 1,
},
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'background-basic-color-1',
},
});

0 comments on commit 984c5cc

Please sign in to comment.