This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/presentation/react-native/components/About.tsx

91 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-05-20 15:05:34 +02:00
import { View } from "react-native"
import { Text } from "react-native-paper"
import { SafeAreaView } from "react-native-safe-area-context"
import { ExternalLink } from "@/presentation/react-native/ui/ExternalLink"
import { getVersion } from "@/utils/version"
export interface AboutProps {
actionButton: React.ReactNode
2024-05-23 13:51:22 +02:00
footer?: React.ReactNode
2024-05-20 15:05:34 +02:00
}
export const About: React.FC<AboutProps> = (props) => {
2024-05-23 13:51:22 +02:00
const { actionButton, footer } = props
2024-05-20 15:05:34 +02:00
const version = getVersion()
return (
<SafeAreaView
style={{
flex: 1,
paddingHorizontal: 20,
2024-05-23 15:55:00 +02:00
justifyContent: "center",
2024-05-20 15:05:34 +02:00
}}
>
2024-05-23 15:55:00 +02:00
<View
style={{
alignItems: "center",
marginVertical: 20,
}}
>
2024-05-20 15:05:34 +02:00
<Text
style={{
fontWeight: "bold",
fontSize: 28,
textAlign: "center",
}}
>
Habits Tracker
</Text>
<Text
style={{
marginTop: 6,
fontWeight: "bold",
fontSize: 18,
textAlign: "center",
}}
>
To perform at work and in everyday life.
</Text>
<Text
style={{
marginTop: 6,
fontWeight: "bold",
fontSize: 16,
textAlign: "center",
}}
>
v{version}
</Text>
</View>
<Text variant="bodyLarge" style={{ textAlign: "center" }}>
<ExternalLink href="https://unistra.fr" style={{ color: "#006CFF" }}>
Université de Strasbourg
</ExternalLink>
</Text>
<Text variant="bodyLarge" style={{ textAlign: "center" }}>
BUT Informatique - IUT Robert Schuman
</Text>
<Text variant="bodyLarge" style={{ textAlign: "center" }}>
P61 Mobile Development
</Text>
2024-05-23 13:51:22 +02:00
{footer}
2024-05-20 15:05:34 +02:00
<View
style={{
justifyContent: "center",
alignItems: "center",
marginVertical: 20,
}}
>
{actionButton}
</View>
</SafeAreaView>
)
}