-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
e171a8e
commit 894d1ba
Showing
5 changed files
with
62 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
semi: true, | ||
singleQuote: true, | ||
bracketSpacing: true, | ||
printWidth: 1200, | ||
printWidth: 100, | ||
} |
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,20 @@ | ||
import { TextInput } from 'react-native'; | ||
|
||
type Props = { | ||
value?: string; | ||
placeholder?: string; | ||
containerClass?: string; | ||
onPressClose?: () => void; | ||
onChangeText: (value: string) => void; | ||
}; | ||
|
||
const Input = ({ value, containerClass, placeholder, onChangeText }: Props) => ( | ||
<TextInput | ||
value={value} | ||
placeholder={placeholder} | ||
onChangeText={onChangeText} | ||
className={`border-[2px] rounded-lg h-[50px] border-zinc-700 text-zinc-600 px-4 pr-10 font-Medium bg-white ${containerClass}`} | ||
/> | ||
); | ||
|
||
export default Input; |
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,36 @@ | ||
import Button from '@components/core/Button'; | ||
import Input from '@components/core/Input'; | ||
import { text } from '@theme/text'; | ||
import { useState } from 'react'; | ||
import { Text, View } from 'react-native'; | ||
|
||
const WelcomeScreen = () => { | ||
const [wordpressSite, setWordpressSiteUrl] = useState('https://blog.ted.com/'); | ||
|
||
return ( | ||
<View className="flex-1 items-center justify-center px-5 bg-white"> | ||
<View className="mb-10 items-center"> | ||
<View className="flex-row"> | ||
<Text className="text-zinc-700 text-[28px] font-Bold">Wo</Text> | ||
<View className="bg-zinc-900 rounded-md"> | ||
<Text className="text-white text-[28px] font-Bold mx-2">Mob</Text> | ||
</View> | ||
</View> | ||
<Text className={text({ type: 'subtitle', class: 'opacity-60 text-zinc-900 mt-1' })}> | ||
Wordpress to Mobile App | ||
</Text> | ||
</View> | ||
<View className="w-full"> | ||
<Input | ||
value={wordpressSite} | ||
containerClass="w-full mb-4" | ||
onChangeText={setWordpressSiteUrl} | ||
placeholder="Type your wordpress site link" | ||
/> | ||
<Button title="Convert Wordpress into Mobile" /> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default WelcomeScreen; |