-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
277 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { router, Stack } from "expo-router"; | ||
import { observer } from "mobx-react-lite"; | ||
import { Button, SizableText } from "tamagui"; | ||
|
||
export const unstable_settings = { | ||
initialRouteName: "index", | ||
}; | ||
|
||
const BreakLayout = observer(() => { | ||
return ( | ||
<Stack> | ||
<Stack.Screen | ||
name="index" | ||
options={{ | ||
title: "Instructions", | ||
presentation: "modal", | ||
headerRight: () => { | ||
return ( | ||
<Button | ||
pressStyle={{ | ||
backgroundColor: "transparent", | ||
borderWidth: 0, | ||
}} | ||
onPress={() => { | ||
router.back(); | ||
}} | ||
borderWidth={0} | ||
size="$4" | ||
backgroundColor={"transparent"} | ||
> | ||
<SizableText color="$text11" size="$4"> | ||
Skip | ||
</SizableText> | ||
</Button> | ||
); | ||
}, | ||
}} | ||
/> | ||
</Stack> | ||
); | ||
}); | ||
|
||
export default BreakLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
import * as Linking from "expo-linking"; | ||
import { router } from "expo-router"; | ||
import * as WebBrowser from "expo-web-browser"; | ||
import { observer } from "mobx-react-lite"; | ||
import { Button, H4, Paragraph, Text, View, XStack, YStack } from "tamagui"; | ||
|
||
import { Container } from "../../components/container"; | ||
import { ShadowCard } from "../../components/shadow.card"; | ||
|
||
const Setup = observer(() => { | ||
return ( | ||
<Container paddingVertical={"$4"}> | ||
<YStack space="$4"> | ||
<> | ||
<H4 color="$text11">Tutorial</H4> | ||
<Paragraph color="$text11">Step by step instructions to get you started.</Paragraph> | ||
</> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
1 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={20}> | ||
Download the shortcut | ||
</H4> | ||
<Paragraph color="$text11">Import the shortcut into your Shortcuts app.</Paragraph> | ||
<Button | ||
onPress={() => { | ||
void WebBrowser.openBrowserAsync("https://www.icloud.com/shortcuts/67875c273b96497f9639a8f374ef7d92"); | ||
}} | ||
marginTop="$2" | ||
backgroundColor={"$primary5"} | ||
paddingHorizontal={"$3"} | ||
paddingVertical={"$2"} | ||
> | ||
<Text fontWeight={"600"}>Download and import shortcut</Text> | ||
</Button> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
2 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={20}> | ||
Open the Shortcut app | ||
</H4> | ||
<Paragraph color="$text11">Go to Automations and create a new automation via the + button.</Paragraph> | ||
<Button | ||
onPress={() => { | ||
void Linking.openURL("shortcuts://automation"); | ||
}} | ||
marginTop="$2" | ||
backgroundColor={"$primary5"} | ||
paddingHorizontal={"$3"} | ||
paddingVertical={"$2"} | ||
> | ||
<Text fontWeight={"600"}>Open Shortcuts App</Text> | ||
</Button> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
3 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={20}> | ||
Select "App"-Trigger | ||
</H4> | ||
<Paragraph color="$text11">Scroll down and select "App" as the trigger.</Paragraph> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
4 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={20}> | ||
Configure the trigger | ||
</H4> | ||
<Paragraph color="$text11">Select "Choose" and search for the app you want to use.</Paragraph> | ||
<Paragraph color="$text11">Info: You need to create a trigger for every app you want to use.</Paragraph> | ||
<Paragraph color="$text11">Select "open directly"</Paragraph> | ||
<Paragraph color="$text11">Select "Next" when you are done.</Paragraph> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
5 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={22}> | ||
Select "digital break" as the action | ||
</H4> | ||
<Paragraph color="$text11">Search for "digital break" and select it.</Paragraph> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
6 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={20}> | ||
Replace the default app | ||
</H4> | ||
<Paragraph color="$text11"> | ||
Replace the default app with the app you want to use. (e.g. Instagram) | ||
</Paragraph> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<ShadowCard> | ||
<XStack space="$3" alignItems={"flex-start"}> | ||
<View | ||
backgroundColor={"$grey1"} | ||
borderRadius={999} | ||
height={"$2.5"} | ||
width={"$2.5"} | ||
flexDirection="row" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Text color="$text11" fontWeight={"800"} fontSize={"$6"}> | ||
7 | ||
</Text> | ||
</View> | ||
<View marginTop={"$1.5"}> | ||
<H4 color="$text11" lineHeight={24}> | ||
Congrats 🎉 | ||
</H4> | ||
<Paragraph color="$text11">You are all set. Now you can try to open the app you selected.</Paragraph> | ||
<Paragraph color="$text11"> | ||
The App will be displayed in Digital Break after the first time you open it. | ||
</Paragraph> | ||
</View> | ||
</XStack> | ||
</ShadowCard> | ||
<Button | ||
onPress={() => { | ||
void router.back(); | ||
}} | ||
marginBottom="$4" | ||
backgroundColor={"$primary5"} | ||
paddingHorizontal={"$3"} | ||
paddingVertical={"$2"} | ||
> | ||
<Text fontWeight={"600"}>Done</Text> | ||
</Button> | ||
</YStack> | ||
</Container> | ||
); | ||
}); | ||
|
||
export default Setup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.