caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

143 lines
3.8 KiB
TypeScript

import React, { useContext } from 'react';
import { Image, Linking, StyleSheet, Text, View } from 'react-native';
import { Modalize } from 'react-native-modalize';
import { responsiveHeight } from 'react-native-responsive-dimensions';
import AntDesign from 'react-native-vector-icons/AntDesign';
import ProximityLogo from '@app/assets/images/proximity-logo.png';
import Config from '@app/config';
import { AppContext } from '@app/context';
import { BottomSheetHeader, Button } from '@app/layout';
import { ThemeStatic, Typography } from '@app/theme';
import { ThemeColors } from '@app/types/theme';
const { FontWeights, FontSizes } = Typography;
const { author: { url }, repository, version } = Config;
const AboutAction = ({ iconName, label, onPress }) => {
const { theme } = useContext(AppContext);
const Icon = () =>
<AntDesign name={iconName}
size={20}
color={ThemeStatic.accent}
/>;
return (
<Button
loading={false}
Icon={Icon}
label={label}
onPress={onPress}
labelStyle={styles(theme).aboutActionLabel}
containerStyle={styles(theme).aboutActionContainer}
/>
);
};
interface AboutBottomSheetProps {
ref: React.Ref<any>
};
const AboutBottomSheet: React.FC<AboutBottomSheetProps> = React.forwardRef((_, ref) => {
const { theme } = useContext(AppContext);
const openLink = (url: string) => {
try {
Linking.openURL(url);
} catch { }
};
return (
<Modalize
//@ts-ignore
ref={ref}
scrollViewProps={{ showsVerticalScrollIndicator: false }}
modalStyle={styles(theme).container}
adjustToContentHeight>
<BottomSheetHeader
heading='About'
subHeading='About Proximity'
/>
<View style={styles().content}>
<Image source={ProximityLogo} style={styles().logoImage} />
<Text style={styles(theme).versionText}>{version}</Text>
<Text style={styles(theme).aboutText}>
Proximity is an Open Source social media app I designed
and developed in my free time, this app is fully open
source and doesn't use your data against you in any
shape or form. The code for mobile apps is open-source
on Github.
</Text>
<Text style={styles(theme).aboutText}>
Curious how I build this? which tech stack I used? Feel free
to leave me message, I'm always excited to talk about new
technologies with new people
</Text>
<View style={styles().actions}>
<AboutAction
iconName='link'
label='Contact me'
onPress={() => openLink(url)}
/>
<AboutAction
iconName='github'
label='Source code'
onPress={() => openLink(repository)}
/>
</View>
</View>
</Modalize>
);
});
const styles = (theme = {} as ThemeColors) => StyleSheet.create({
container: {
padding: 20,
backgroundColor: theme.base,
marginTop: responsiveHeight(8)
},
content: {
flex: 1,
paddingTop: 20,
marginBottom: responsiveHeight(10)
},
logoImage: {
resizeMode: 'contain',
height: 40,
width: '100%',
marginTop: 20,
marginBottom: 10,
alignSelf: 'center'
},
versionText: {
...FontWeights.Light,
...FontSizes.Label,
alignSelf: 'center',
color: theme.text02
},
aboutText: {
...FontWeights.Light,
...FontSizes.Body,
marginVertical: 20,
alignSelf: 'center',
textAlign: 'justify',
color: theme.text01
},
actions: {
marginTop: 10
},
aboutActionLabel: {
marginLeft: 10,
color: theme.accent
},
aboutActionContainer: {
marginVertical: 10,
backgroundColor: 'transparent',
borderWidth: StyleSheet.hairlineWidth,
borderColor: theme.accent
}
});
export default AboutBottomSheet;