ui tweaks

This commit is contained in:
ivic00
2024-10-14 23:02:18 +02:00
17 changed files with 320 additions and 109 deletions

View File

@ -10,27 +10,29 @@ const HeaderTemplate = (props: {
link?: React.ReactNode;
}) => {
const { user, profileData } = useAuthContext();
const headerHeight:number = 80;
return (
<View row centerV marginV-15>
<ImageBackground
source={require("../../assets/images/profile-picture.png")}
style={{
width: 65,
height: 65,
height: headerHeight,
aspectRatio: 1,
borderRadius: 22,
overflow: "hidden",
marginRight: 20,
}}
/>
<View>
<View gap-3>
{props.isWelcome && (
<Text text70L>Welcome, {profileData?.firstName}!</Text>
<Text text70L style={{fontSize: 17, fontFamily: "Manrope_400Regular"}}>Welcome, {profileData?.firstName}!</Text>
)}
<Text text70B style={{ fontSize: 17 }}>
<Text text70B style={{ fontSize: 18, fontFamily: "Manrope_700Bold" }}>
{props.message}
</Text>
{props.children && <View>{props.children}</View>}
{props.link && <View>{props.link}</View>}
{props.link && <View marginT-8>{props.link}</View>}
</View>
</View>
);