managarten/apps-archived/maerchenzauber/apps/mobile/components/molecules/CreateCharacterAvatar.tsx
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

70 lines
1.6 KiB
TypeScript

import React from 'react';
import { View, StyleSheet, Pressable, useWindowDimensions } from 'react-native';
import Text from '../atoms/Text';
import { Ionicons } from '@expo/vector-icons';
interface CreateCharacterAvatarProps {
onPress: () => void;
size?: number;
}
const CreateCharacterAvatar: React.FC<CreateCharacterAvatarProps> = ({ onPress, size = 100 }) => {
const { width: windowWidth } = useWindowDimensions();
const isTablet = windowWidth >= 768;
// Responsive font sizes
const nameFontSize = isTablet ? 28 : 18;
const nameLineHeight = isTablet ? 34 : 24;
const styles = StyleSheet.create({
buttonText: {
fontSize: 12,
color: '#FFFFFF',
marginTop: 4,
},
container: {
alignItems: 'center',
},
avatarContainer: {
width: size,
height: size,
borderRadius: size / 2,
backgroundColor: '#2C2C2C',
alignItems: 'center',
justifyContent: 'center',
marginBottom: 8,
overflow: 'hidden',
shadowColor: '#000',
shadowOffset: {
width: 4,
height: 4,
},
shadowOpacity: 0.3,
shadowRadius: 5,
elevation: 8,
},
name: {
fontWeight: 'bold',
color: '#FFFFFF',
textAlign: 'center',
letterSpacing: 0.3,
},
pressed: {
opacity: 0.7,
},
});
return (
<View style={styles.container}>
<Pressable
onPress={onPress}
style={({ pressed }) => [styles.avatarContainer, pressed && styles.pressed]}
>
<Ionicons name="add" size={size * 0.4} color="#FFD700" />
</Pressable>
<Text style={[styles.name, { fontSize: nameFontSize, lineHeight: nameLineHeight }]}>Neu</Text>
</View>
);
};
export default CreateCharacterAvatar;