- sitemap.xml, robots.txt, og:url, og:image, twitter:image, metadataBase all resolve from NEXT_PUBLIC_SITE_URL with a https://ritgram.ereboslab.com default instead of the dead gitgram.app (NXDOMAIN). - Page titles, OG copy, PWA manifest, offline.html, service-worker push notification title: Gitgram -> Ritgram. Left internal SW cache-name/tag strings (gitgram-static-, gitgram-sync, etc.) alone as low-risk code identifiers. - /[owner]/page.tsx (top-level profile route) converted to an async Server Component that calls fetchProfile() + notFound() before any HTML streams, so a GET on any nonexistent username now returns a real 404 instead of a 200 loading-shell (the same pattern [owner]/[name]/page.tsx already used one level down). - apps/ritgram/backend: matching Gitgram->Ritgram string rename sweep across controllers/services/config comments and defaults (EMAIL_FROM, AITM_API_URL description, etc.) — no behavior change. - apps/ritgram/mobile: matching user-visible string rename sweep. tsc --noEmit clean on both web and backend. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
142 lines
4.0 KiB
TypeScript
142 lines
4.0 KiB
TypeScript
import React from 'react';
|
|
import {
|
|
View,
|
|
Text,
|
|
StyleSheet,
|
|
ScrollView,
|
|
TouchableOpacity,
|
|
Linking,
|
|
} from 'react-native';
|
|
import { Colors } from '../constants/Colors';
|
|
import Header from '../components/navigation/Header';
|
|
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
|
|
export default function AboutScreen() {
|
|
const handleOpenLink = (url: string) => {
|
|
Linking.openURL(url);
|
|
};
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Header title="About Ritgram" />
|
|
<ScrollView style={styles.content}>
|
|
<View style={styles.section}>
|
|
<Text style={styles.title}>Ritgram</Text>
|
|
<Text style={styles.version}>Version 1.0.0</Text>
|
|
<Text style={styles.description}>
|
|
Ritgram is a social platform for developers to share their GitHub projects, connect with other developers, and discover amazing open-source work.
|
|
</Text>
|
|
</View>
|
|
|
|
<View style={styles.section}>
|
|
<Text style={styles.sectionTitle}>Links</Text>
|
|
<TouchableOpacity
|
|
style={styles.linkItem}
|
|
onPress={() => handleOpenLink('https://ritgram.ereboslab.com')}
|
|
>
|
|
<Icon name="language" size={24} color={Colors.text} />
|
|
<Text style={styles.linkText}>Website</Text>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
<TouchableOpacity
|
|
style={styles.linkItem}
|
|
onPress={() => handleOpenLink('https://github.com/gitgram')}
|
|
>
|
|
<Icon name="code" size={24} color={Colors.text} />
|
|
<Text style={styles.linkText}>GitHub</Text>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
<TouchableOpacity
|
|
style={styles.linkItem}
|
|
onPress={() => handleOpenLink('https://twitter.com/gitgram')}
|
|
>
|
|
<Icon name="alternate-email" size={24} color={Colors.text} />
|
|
<Text style={styles.linkText}>Twitter</Text>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
</View>
|
|
|
|
<View style={styles.section}>
|
|
<Text style={styles.sectionTitle}>Legal</Text>
|
|
<TouchableOpacity
|
|
style={styles.linkItem}
|
|
onPress={() => handleOpenLink('https://ritgram.ereboslab.com/privacy')}
|
|
>
|
|
<Text style={styles.linkText}>Privacy Policy</Text>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
<TouchableOpacity
|
|
style={styles.linkItem}
|
|
onPress={() => handleOpenLink('https://ritgram.ereboslab.com/terms')}
|
|
>
|
|
<Text style={styles.linkText}>Terms of Service</Text>
|
|
<Icon name="chevron-right" size={24} color={Colors.textSecondary} />
|
|
</TouchableOpacity>
|
|
</View>
|
|
|
|
<View style={styles.section}>
|
|
<Text style={styles.copyright}>
|
|
© {new Date().getFullYear()} Ritgram. All rights reserved.
|
|
</Text>
|
|
</View>
|
|
</ScrollView>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: Colors.background,
|
|
},
|
|
content: {
|
|
flex: 1,
|
|
padding: 16,
|
|
},
|
|
section: {
|
|
marginBottom: 32,
|
|
},
|
|
title: {
|
|
fontSize: 28,
|
|
fontWeight: 'bold',
|
|
color: Colors.text,
|
|
marginBottom: 8,
|
|
},
|
|
version: {
|
|
fontSize: 14,
|
|
color: Colors.textSecondary,
|
|
marginBottom: 16,
|
|
},
|
|
description: {
|
|
fontSize: 16,
|
|
color: Colors.text,
|
|
lineHeight: 24,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: 18,
|
|
fontWeight: '600',
|
|
color: Colors.text,
|
|
marginBottom: 16,
|
|
},
|
|
linkItem: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
padding: 16,
|
|
backgroundColor: Colors.surface,
|
|
borderRadius: 8,
|
|
marginBottom: 8,
|
|
gap: 12,
|
|
},
|
|
linkText: {
|
|
flex: 1,
|
|
fontSize: 16,
|
|
color: Colors.text,
|
|
},
|
|
copyright: {
|
|
fontSize: 14,
|
|
color: Colors.textSecondary,
|
|
textAlign: 'center',
|
|
},
|
|
});
|
|
|