Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic landing page #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 62 additions & 6 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,80 @@
import { GluestackUIProvider, Text, Box } from "@gluestack-ui/themed";
import { GluestackUIProvider, Text, Box, View } from "@gluestack-ui/themed";
import React from "react";
import { StyleSheet } from 'react-native';
import { config } from "@gluestack-ui/config"; // Optional if you want to use default theme
import {
Button,
ButtonText,
ButtonIcon,
AddIcon,
Image
} from "@gluestack-ui/themed";


const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 100,
},
logo: {
width: 350,
height: 350,
marginTop: 20
},
welcomeText: {
fontSize: 40,
fontWeight: 'bold',
textAlign: 'center',
margin: 0,
},
yearText: {
fontSize: 48,
fontWeight: 'bold',
textAlign: 'center',
marginBottom: 20,
color: 'darkmagenta'
},
sponsorText: {
fontSize: 16,
fontWeight: 'normal',
textAlign: 'center',
marginBottom: 20,
},
loginButton: {
marginBottom: 10,
width: 250,
height: 50
},
});

const RPLogo = () => (
<Image
source={{uri: "https://i.pinimg.com/originals/89/83/6f/89836f3b1e6a51355dcb2652afea9e49.png"}}
style={styles.logo}
borderRadius="$xl"
alt="RP Logo"
/>
);

export default function App() {
return (
<GluestackUIProvider config={config}>
<Box width="100%" height="100%" justifyContent="center" alignItems="center">
<Text>Open up App.js to start working on your app!</Text>
<Box style={styles.container}>
<RPLogo />
<View>
<Text style={styles.welcomeText}>Welcome to</Text>
<Text style={styles.yearText}>R|P 2024!</Text>
<Text style={styles.sponsorText}>Powered by SPONSOR!!!</Text>
</View>
<Button size="md" variant='solid' action="primary"
isDisabled={false}
isFocusVisible={false}
onPress={() => console.log("pressed!")}
onPress={() => console.log("login pressed!")}
style={styles.loginButton}
>
<ButtonText>Add </ButtonText>
<ButtonIcon as={AddIcon} />
<ButtonText>Login</ButtonText>
</Button>
</Box>
</GluestackUIProvider>
Expand Down
Loading