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

Mobile home screen #70

Merged
merged 9 commits into from
Nov 27, 2024
Merged
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
11 changes: 10 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions packages/mobile-app/app/(tabs)/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ export default function UiKit() {
style={{
gap: 10,
padding: 10,
backgroundColor: scheme === "dark" ? "#333" : "#fff",
backgroundColor: scheme === "dark" ? "#101010" : "#fff",
}}
>
<Text size="lg">Count: {count}</Text>
<Button title="Press me" onClick={() => setCount(count + 1)} />
<Box height="auto" bg="pink" borderWidth={2} borderColor="gray">
<Button title="Press me" onClick={() => setCount(count + 1)} />
<Button title="Press me - filled" onClick={() => setCount(count + 1)} />
<Box height="auto" bg="pink" borderWidth={2} borderColor="gray900">
<Button
variant="outline"
title="Press me - outlined"
onClick={() => setCount(count + 1)}
/>
<Button
variant="ghost"
title="Press me - ghost"
onClick={() => setCount(count + 1)}
/>
<Button disabled title="Press me" onClick={() => setCount(count + 1)} />
</Box>
<Text>Input value: {inputValue}</Text>
Expand All @@ -52,7 +61,7 @@ export default function UiKit() {
height="auto"
bg="pink"
borderWidth={8}
borderColor="gray"
borderColor="gray900"
>
<Button title="Press me" onClick={() => setCount(count + 1)} />
<Button disabled title="Press me" onClick={() => setCount(count + 1)} />
Expand Down
67 changes: 48 additions & 19 deletions packages/mobile-app/app/onboarding/index.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,56 @@
import { StatusBar } from "expo-status-bar";
import { StyleSheet, View, Text } from "react-native";
import { View, StyleSheet } from "react-native";
import { LinkButton } from "../../components/LinkButton";
import { VStack, Text } from "@ironfish/tackle-box";
import { LinearGradient } from "expo-linear-gradient";

import LogoWithText from "../../assets/images/logo-with-text.svg";
import KeyPlantOrchid from "../../assets/images/key-plant--orchid.svg";

const styles = StyleSheet.create({
background: {
zIndex: -1,
},
});

export default function Onboarding() {
return (
<View style={styles.container}>
<Text>Welcome to Iron Fish</Text>
<Text>Let's Make Web3 Private</Text>
<LinkButton title="Create Account" href="/onboarding/create/" />
<LinkButton
title="I already have an account"
href="/onboarding/import-encoded/"
<View style={{ padding: 24, flex: 1 }}>
<LinearGradient
colors={["#FFF4E0", "#DE83F0"]}
locations={[0, 1]}
style={[StyleSheet.absoluteFillObject, styles.background]}
/>
<StatusBar style="auto" />
<VStack alignItems="center" gap={8}>
<LogoWithText height={18} />
<Text textAlign="center" size="3xl">
Let's Make Web3 Private
</Text>
</VStack>
<View
style={{
flex: 1,
alignItems: "center",
}}
>
<KeyPlantOrchid style={{ aspectRatio: 0.5 }} />
</View>
<VStack gap={4}>
<LinkButton
variant="outline"
title="I have an account"
href="/onboarding/import-encoded/"
/>
<LinkButton
variant="solid"
title="Create an account"
href="/onboarding/create/"
/>
<LinkButton
variant="ghost"
title="Language preferences"
href="/onboarding/language/"
/>
</VStack>
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});
Loading
Loading