caelum0x 6ee7ff4033 fix(ritgram): rebrand Gitgram->Ritgram everywhere user-visible, fix OG/sitemap base URL, real 404s
- 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>
2026-11-17 03:20:08 +03:00

129 lines
3.0 KiB
TypeScript

import React from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { useRouter } from 'expo-router';
import { Colors } from '../../constants/Colors';
export default function WelcomeScreen() {
const router = useRouter();
return (
<View style={styles.container}>
<View style={styles.content}>
<Text style={styles.emoji}>๐Ÿš€</Text>
<Text style={styles.title}>Welcome to Ritgram</Text>
<Text style={styles.subtitle}>
The social platform for GitHub projects. Share your code, discover amazing projects, and connect with developers.
</Text>
<View style={styles.features}>
<View style={styles.feature}>
<Text style={styles.featureEmoji}>๐Ÿ“ฑ</Text>
<Text style={styles.featureText}>Share your projects</Text>
</View>
<View style={styles.feature}>
<Text style={styles.featureEmoji}>๐Ÿ”</Text>
<Text style={styles.featureText}>Discover code</Text>
</View>
<View style={styles.feature}>
<Text style={styles.featureEmoji}>๐Ÿ‘ฅ</Text>
<Text style={styles.featureText}>Connect with developers</Text>
</View>
</View>
<View style={styles.buttons}>
<TouchableOpacity
style={styles.primaryButton}
onPress={() => router.push('/(auth)/register')}
>
<Text style={styles.primaryButtonText}>Get Started</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.secondaryButton}
onPress={() => router.push('/(auth)/login')}
>
<Text style={styles.secondaryButtonText}>Already have an account?</Text>
</TouchableOpacity>
</View>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.background,
},
content: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 32,
},
emoji: {
fontSize: 80,
marginBottom: 24,
},
title: {
fontSize: 32,
fontWeight: 'bold',
color: Colors.text,
textAlign: 'center',
marginBottom: 16,
},
subtitle: {
fontSize: 16,
color: Colors.textSecondary,
textAlign: 'center',
lineHeight: 24,
marginBottom: 48,
},
features: {
width: '100%',
marginBottom: 48,
},
feature: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 16,
gap: 12,
},
featureEmoji: {
fontSize: 24,
},
featureText: {
fontSize: 16,
color: Colors.text,
},
buttons: {
width: '100%',
gap: 12,
},
primaryButton: {
backgroundColor: Colors.text,
borderRadius: 8,
padding: 16,
alignItems: 'center',
width: '100%',
},
primaryButtonText: {
color: Colors.background,
fontSize: 16,
fontWeight: '600',
},
secondaryButton: {
padding: 16,
alignItems: 'center',
},
secondaryButtonText: {
color: Colors.text,
fontSize: 14,
},
});