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

117 lines
3.8 KiB
TypeScript

import React from 'react';
import {
View,
Text,
StyleSheet,
ScrollView,
} from 'react-native';
import { Colors } from '../../constants/Colors';
import Header from '../../components/navigation/Header';
export default function AccountHelpScreen() {
return (
<View style={styles.container}>
<Header title="Create an Account" />
<ScrollView style={styles.content}>
<View style={styles.section}>
<Text style={styles.heading}>Getting Started with Ritgram</Text>
<Text style={styles.paragraph}>
Ritgram connects developers and GitHub repositories in a social media format.
Here's how to create your account:
</Text>
</View>
<View style={styles.section}>
<Text style={styles.subheading}>Sign Up with GitHub</Text>
<Text style={styles.paragraph}>
The easiest way to join Ritgram is to sign up with your GitHub account:
</Text>
<View style={styles.steps}>
<Text style={styles.step}>1. Tap "Continue with GitHub" on the login screen</Text>
<Text style={styles.step}>2. Authorize Ritgram to access your GitHub profile</Text>
<Text style={styles.step}>3. Your account will be created automatically</Text>
</View>
</View>
<View style={styles.section}>
<Text style={styles.subheading}>Sign Up with Email</Text>
<Text style={styles.paragraph}>
You can also create an account using your email address:
</Text>
<View style={styles.steps}>
<Text style={styles.step}>1. Tap "Sign up with Email" on the login screen</Text>
<Text style={styles.step}>2. Enter your email and create a password</Text>
<Text style={styles.step}>3. Verify your email address</Text>
<Text style={styles.step}>4. Complete your profile setup</Text>
</View>
</View>
<View style={styles.section}>
<Text style={styles.subheading}>Linking Your GitHub Account</Text>
<Text style={styles.paragraph}>
If you signed up with email, you can link your GitHub account later to access additional features like repository sharing and project showcases.
</Text>
<View style={styles.steps}>
<Text style={styles.step}>1. Go to Settings</Text>
<Text style={styles.step}>2. Tap "Linked Accounts"</Text>
<Text style={styles.step}>3. Connect your GitHub account</Text>
</View>
</View>
<View style={styles.section}>
<Text style={styles.subheading}>Profile Setup Tips</Text>
<Text style={styles.paragraph}>
Make your profile stand out:
</Text>
<View style={styles.steps}>
<Text style={styles.step}>- Add a profile photo</Text>
<Text style={styles.step}>- Write a bio about your coding interests</Text>
<Text style={styles.step}>- Showcase your best repositories</Text>
<Text style={styles.step}>- List your programming languages</Text>
</View>
</View>
</ScrollView>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.background,
},
content: {
flex: 1,
padding: 16,
},
section: {
marginBottom: 24,
},
heading: {
fontSize: 22,
fontWeight: '700',
color: Colors.text,
marginBottom: 12,
},
subheading: {
fontSize: 18,
fontWeight: '600',
color: Colors.text,
marginBottom: 8,
},
paragraph: {
fontSize: 15,
color: Colors.textSecondary,
lineHeight: 22,
marginBottom: 12,
},
steps: {
paddingLeft: 8,
},
step: {
fontSize: 15,
color: Colors.text,
lineHeight: 28,
},
});