Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions personas-open-source/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
User-agent: *
Allow: /
Allow: /u/*

User-agent: Twitterbot
Allow: /
Allow: /u/*
45 changes: 36 additions & 9 deletions personas-open-source/src/app/chat/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useState, useEffect, useCallback, useRef } from 'react';
import { useState, useEffect, useCallback, useRef, useMemo } from 'react';
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
Expand Down Expand Up @@ -508,6 +508,23 @@ function ChatContent() {
);

const inputRef = useRef<HTMLInputElement>(null);

const getStoreUrl = useMemo(() => {
if (typeof window !== 'undefined') {
// Check if user is on iOS
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
// Check if user is on Android
const isAndroid = /Android/.test(navigator.userAgent);

if (isIOS) {
return 'https://apps.apple.com/us/app/friend-ai-wearable/id6502156163';
} else if (isAndroid) {
return 'https://play.google.com/store/apps/details?id=com.friend.ios';
}
}
// Default to iOS App Store
return 'https://apps.apple.com/us/app/friend-ai-wearable/id6502156163';
}, []);

useEffect(() => {
const handleResize = () => {
Expand Down Expand Up @@ -658,15 +675,25 @@ function ChatContent() {
<Send className="h-5 w-5" />
</Button>
</div>
<div className="max-w-4xl mx-auto mt-4 flex flex-col sm:flex-row justify-between text-xs text-gray-500">
<div className="flex gap-2 mb-2 sm:mb-0">
<span>Omi by Based Hardware © 2025</span>
<div className="max-w-4xl mx-auto mt-4">
<div className="flex justify-center">
<Button
onClick={() => window.open(getStoreUrl, '_blank')}
className="w-full max-w-[250px] mb-4 py-6 text-base font-bold text-[16px] rounded-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white hover:opacity-90"
>
Create my clone
</Button>
</div>
<div className="flex gap-2">
<Button variant="link" className="p-0 h-auto text-xs text-gray-500 hover:text-white">Terms & Conditions</Button>
<Link href="https://www.omi.me/pages/privacy" target="_blank" rel="noopener noreferrer">
<Button variant="link" className="p-0 h-auto text-xs text-gray-500 hover:text-white">Privacy Policy</Button>
</Link>
<div className="flex flex-col sm:flex-row justify-between text-xs text-gray-500">
<div className="flex gap-2 mb-2 sm:mb-0">
<span>Omi by Based Hardware © 2025</span>
</div>
<div className="flex gap-2">
<Button variant="link" className="p-0 h-auto text-xs text-gray-500 hover:text-white">Terms & Conditions</Button>
<Link href="https://www.omi.me/pages/privacy" target="_blank" rel="noopener noreferrer">
<Button variant="link" className="p-0 h-auto text-xs text-gray-500 hover:text-white">Privacy Policy</Button>
</Link>
</div>
</div>
</div>
</div>
Expand Down