You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
721 B
20 lines
721 B
import { StyleSheet, Text, View } from 'react-native';
|
|
import { colors } from '../../../src/theme';
|
|
import { Illustration } from './Illustration';
|
|
|
|
/** 统一品牌头部:Logo + 名称 + 标语 */
|
|
export function BrandHeader({ slogan }: { slogan?: string }) {
|
|
return (
|
|
<View style={styles.wrap}>
|
|
<Illustration name="logo" size={64} radius={18} />
|
|
<Text style={styles.name}>有职</Text>
|
|
{slogan ? <Text style={styles.slogan}>{slogan}</Text> : null}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
wrap: { alignItems: 'center', gap: 12, paddingVertical: 8 },
|
|
name: { fontSize: 26, fontWeight: '800', color: colors.textPrimary },
|
|
slogan: { fontSize: 13, color: colors.textHint },
|
|
});
|
|
|