Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fixes and improvements

daniel31x13dc237b36f3b4
diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx
index 4f24978e..c28a92e6 100644
--- a/apps/mobile/app/_layout.tsx
+++ b/apps/mobile/app/_layout.tsx
@@ -169,6 +169,21 @@ export default function RootLayout() {
}),
}}
/>
+ <Stack.Screen
+ name="index"
+ options={{
+ navigationBarColor:
+ rawTheme[colorScheme as ThemeName]["base-100"],
+ ...Platform.select({
+ android: {
+ statusBarStyle:
+ colorScheme === "light" ? "light" : "dark",
+ statusBarBackgroundColor:
+ rawTheme[colorScheme as ThemeName]["primary"],
+ },
+ }),
+ }}
+ />
<Stack.Screen
name="incoming"
options={{
diff --git a/apps/mobile/app/incoming.tsx b/apps/mobile/app/incoming.tsx
index 463450b4..fa41532e 100644
--- a/apps/mobile/app/incoming.tsx
+++ b/apps/mobile/app/incoming.tsx
@@ -46,7 +46,7 @@ export default function IncomingScreen() {
);
}, [auth, data.shareIntent.url]);
- if (auth.status === "unauthenticated") return <Redirect href="/login" />;
+ if (auth.status === "unauthenticated") return <Redirect href="/" />;
return (
<SafeAreaView className="flex-1 bg-base-100">
diff --git a/apps/mobile/app/index.tsx b/apps/mobile/app/index.tsx
index fdc4ff53..76482cee 100644
--- a/apps/mobile/app/index.tsx
+++ b/apps/mobile/app/index.tsx
@@ -1,12 +1,71 @@
+import { Button } from "@/components/ui/Button";
+import { rawTheme, ThemeName } from "@/lib/colors";
import useAuthStore from "@/store/auth";
-import { Redirect } from "expo-router";
+import { Redirect, router } from "expo-router";
+import { useColorScheme } from "nativewind";
+import { View, Text, Dimensions, TouchableOpacity, Image } from "react-native";
+import { SheetManager } from "react-native-actions-sheet";
+import Svg, { Path } from "react-native-svg";
+import Animated, { SlideInDown } from "react-native-reanimated";
export default function HomeScreen() {
const { auth } = useAuthStore();
+ const { colorScheme } = useColorScheme();
if (auth.session) {
- return <Redirect href="/(tabs)/dashboard" />;
- } else {
- return <Redirect href="/login" />;
+ return <Redirect href="/dashboard" />;
}
+
+ return (
+ <Animated.View
+ entering={SlideInDown.springify().damping(100).stiffness(300)}
+ className="flex-col justify-end h-full bg-primary relative"
+ >
+ <View className="my-auto">
+ <Image
+ source={require("@/assets/images/linkwarden.png")}
+ className="w-[120px] h-[120px] mx-auto"
+ />
+ <Text className="text-base-100 text-4xl font-semibold mt-7 mx-auto">
+ Linkwarden
+ </Text>
+ </View>
+ <View>
+ <Text className="text-base-100 text-xl text-center font-semibold mx-4 mt-3">
+ Welcome to the official mobile app for Linkwarden!
+ </Text>
+
+ <Text className="text-base-100 text-xl text-center mx-4 mt-3">
+ Expect regular improvements and new features as we continue refining
+ the experience.
+ </Text>
+ </View>
+ <Svg
+ viewBox="0 0 1440 320"
+ width={Dimensions.get("screen").width}
+ height={100}
+ >
+ <Path
+ fill={rawTheme[colorScheme as ThemeName]["base-100"]}
+ fill-opacity="1"
+ d="M0,256L48,234.7C96,213,192,171,288,176C384,181,480,235,576,266.7C672,299,768,309,864,277.3C960,245,1056,171,1152,122.7C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"
+ />
+ </Svg>
+ <View className="flex-col justify-end h-auto duration-100 pt-10 bg-base-100 -mt-2 pb-10 gap-4 w-full px-4">
+ <Button
+ variant="accent"
+ size="lg"
+ onPress={() => router.push("/login")}
+ >
+ <Text className="text-white text-xl">Get Started</Text>
+ </Button>
+ <TouchableOpacity
+ className="w-fit mx-auto"
+ onPress={() => SheetManager.show("support-sheet")}
+ >
+ <Text className="text-neutral text-center w-fit">Need help?</Text>
+ </TouchableOpacity>
+ </View>
+ </Animated.View>
+ );
}
diff --git a/apps/mobile/app/login.tsx b/apps/mobile/app/login.tsx
index 8c8a72af..7bcab72a 100644
--- a/apps/mobile/app/login.tsx
+++ b/apps/mobile/app/login.tsx
@@ -75,7 +75,7 @@ export default function HomeScreen() {
className="mx-8 mt-1 self-start"
>
<Text className="text-neutral-content text-sm">
- {!showInstanceField ? "Change host" : "Use default host"}
+ {!showInstanceField ? "Change server" : "Use official server"}
</Text>
</TouchableOpacity>
</View>
@@ -152,7 +152,7 @@ export default function HomeScreen() {
}
}}
>
- <Text className="text-white">Login</Text>
+ <Text className="text-white text-xl">Login</Text>
</Button>
<TouchableOpacity
className="w-fit mx-auto"
diff --git a/apps/mobile/components/ActionSheets/SupportSheet.tsx b/apps/mobile/components/ActionSheets/SupportSheet.tsx
index d0b21436..d8972f95 100644
--- a/apps/mobile/components/ActionSheets/SupportSheet.tsx
+++ b/apps/mobile/components/ActionSheets/SupportSheet.tsx
@@ -1,4 +1,5 @@
import { Text, View } from "react-native";
+import { useState } from "react";
import ActionSheet from "react-native-actions-sheet";
import { rawTheme, ThemeName } from "@/lib/colors";
import { useColorScheme } from "nativewind";
@@ -7,9 +8,14 @@ import { Button } from "../ui/Button";
export default function SupportSheet() {
const { colorScheme } = useColorScheme();
+ const [copied, setCopied] = useState(false);
async function handleEmailPress() {
await Clipboard.setStringAsync("[email protected]");
+ setCopied(true);
+ setTimeout(() => {
+ setCopied(false);
+ }, 2000);
}
return (
@@ -29,7 +35,9 @@ export default function SupportSheet() {
</Text>
<Button onPress={handleEmailPress} variant="outline">
- <Text className="text-base-content">Copy Support Email</Text>
+ <Text className="text-base-content">
+ {copied ? "Copied!" : "Copy Support Email"}
+ </Text>
</Button>
</View>
</ActionSheet>
diff --git a/apps/mobile/store/auth.ts b/apps/mobile/store/auth.ts
index 4cd487af..127101a4 100644
--- a/apps/mobile/store/auth.ts
+++ b/apps/mobile/store/auth.ts
@@ -111,7 +111,7 @@ const useAuthStore = create<AuthStore>((set) => ({
},
});
- router.replace("/login");
+ router.replace("/");
},
}));