mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:33:26 +00:00
add header and background design
This commit is contained in:
41
apps/expo/src/components/layout/Header.tsx
Normal file
41
apps/expo/src/components/layout/Header.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import { Linking } from "react-native";
|
||||
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
|
||||
import { Circle, View } from "tamagui";
|
||||
|
||||
import { DISCORD_LINK, GITHUB_LINK } from "~/constants/core";
|
||||
import { BrandPill } from "../BrandPill";
|
||||
|
||||
export function Header() {
|
||||
return (
|
||||
<View alignItems="center" gap="$3" flexDirection="row">
|
||||
<BrandPill />
|
||||
|
||||
<Circle
|
||||
backgroundColor="$pillBackground"
|
||||
size="$2.5"
|
||||
pressStyle={{
|
||||
opacity: 1,
|
||||
scale: 1.05,
|
||||
}}
|
||||
onPress={async () => {
|
||||
await Linking.openURL(DISCORD_LINK);
|
||||
}}
|
||||
>
|
||||
<MaterialIcons name="discord" size={20} color="white" />
|
||||
</Circle>
|
||||
<Circle
|
||||
backgroundColor="$pillBackground"
|
||||
size="$2.5"
|
||||
pressStyle={{
|
||||
opacity: 1,
|
||||
scale: 1.05,
|
||||
}}
|
||||
onPress={async () => {
|
||||
await Linking.openURL(GITHUB_LINK);
|
||||
}}
|
||||
>
|
||||
<FontAwesome6 name="github" size={20} color="white" />
|
||||
</Circle>
|
||||
</View>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user