|
1 | 1 | import React from 'react'
|
2 |
| -import { StyleSheet, Text, View } from 'react-native' |
3 |
| -import { Link } from '../navigation/Link' |
4 |
| -import { Image } from '../components/Image' |
| 2 | +import { View, Text, Image, Link } from '../components/styled' |
5 | 3 |
|
6 | 4 | /* --- <ImagesScreen/> --------------------------------------------------------------------------- */
|
7 | 5 |
|
8 | 6 | const ImagesScreen = () => {
|
9 | 7 | return (
|
10 |
| - <View style={styles.container}> |
| 8 | + <View className="flex flex-1 justify-center items-center"> |
11 | 9 | <Link
|
12 | 10 | href="/"
|
13 |
| - style={{ ...styles.backButton, ...styles.link, textDecorationLine: 'none' }} |
| 11 | + className="text-blue-500 absolute top-8 web:top-0 left-0 p-4" |
14 | 12 | >
|
15 | 13 | {`< Back`}
|
16 | 14 | </Link>
|
17 | 15 | {/* - 1 - */}
|
18 | 16 | <Image src={require('../assets/aetherspaceLogo.png')} width={60} height={60} />
|
19 |
| - <Text style={styles.subtitle}>src=static-require | width: 60 | height: 60</Text> |
| 17 | + <Text className="mt-2 mb-4 text-center text-base">src=static-require | width: 60 | height: 60</Text> |
20 | 18 | {/* - 2 - */}
|
21 | 19 | <Image src="https://codinsonn.dev/_next/image?url=%2Fimg%2FCodelyFansLogoPic160x160.jpeg&w=256&q=75" width={60} height={60} />
|
22 |
| - <Text style={styles.subtitle}>src=external-url | width: 60 | height: 60</Text> |
| 20 | + <Text className="mt-2 mb-4 text-center text-base">src=external-url | width: 60 | height: 60</Text> |
23 | 21 | {/* - 3 - */}
|
24 |
| - <View style={{ width: 60, height: 80, position: 'relative', borderColor: 'black', borderStyle: 'dashed', borderWidth: 1 }}> |
| 22 | + <View className="w-[60px] h-[80px] relative border-[1px] border-dashed border-black"> |
25 | 23 | <Image src={require('../assets/aetherspaceLogo.png')} fill />
|
26 | 24 | </View>
|
27 |
| - <Text style={styles.subtitle}>wrapper=50x80, relative | fill=true</Text> |
| 25 | + <Text className="mt-2 mb-4 text-center text-base">wrapper=50x80, relative | fill=true</Text> |
28 | 26 | {/* - 4 - */}
|
29 |
| - <View style={{ width: 80, height: 60, position: 'relative', borderColor: 'black', borderStyle: 'dashed', borderWidth: 1 }}> |
| 27 | + <View className="w-[80px] h-[60px] relative border-[1px] border-dashed border-black"> |
30 | 28 | <Image src={require('../assets/aetherspaceLogo.png')} fill contentFit="contain" />
|
31 | 29 | </View>
|
32 |
| - <Text style={styles.subtitle}>wrapper=80x60, relative | fill | contentFit=contain</Text> |
| 30 | + <Text className="mt-2 mb-4 text-center text-base">wrapper=80x60, relative | fill | contentFit=contain</Text> |
33 | 31 | </View>
|
34 | 32 | )
|
35 | 33 | }
|
36 | 34 |
|
37 |
| -/* --- Styles ---------------------------------------------------------------------------------- */ |
38 |
| - |
39 |
| -const styles = StyleSheet.create({ |
40 |
| - container: { |
41 |
| - flex: 1, |
42 |
| - justifyContent: 'center', |
43 |
| - alignItems: 'center', |
44 |
| - }, |
45 |
| - backButton: { |
46 |
| - position: 'absolute', |
47 |
| - top: 16, |
48 |
| - left: 16, |
49 |
| - }, |
50 |
| - subtitle: { |
51 |
| - marginTop: 8, |
52 |
| - marginBottom: 16, |
53 |
| - fontSize: 16, |
54 |
| - textAlign: 'center', |
55 |
| - }, |
56 |
| - link: { |
57 |
| - marginTop: 16, |
58 |
| - fontSize: 16, |
59 |
| - color: 'blue', |
60 |
| - textAlign: 'center', |
61 |
| - textDecorationLine: 'underline', |
62 |
| - }, |
63 |
| -}) |
64 |
| - |
65 | 35 | /* --- Exports --------------------------------------------------------------------------------- */
|
66 | 36 |
|
67 | 37 | export default ImagesScreen
|
0 commit comments