Skip to content
Open
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
14 changes: 9 additions & 5 deletions examples/privy-next-cross-app-connect/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ function Home() {
<div
className={`${
!!address
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={!!address} />
{!!address ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={() => disconnect()}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Disconnect
</button>
Expand All @@ -52,7 +52,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Cross App Connect Demo
Cross App Connect Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand All @@ -68,7 +68,11 @@ function Home() {
onClick={() => {
login();
setTimeout(() => {
(document.querySelector('input[type="email"]') as HTMLInputElement)?.focus();
(
document.querySelector(
'input[type="email"]'
) as HTMLInputElement
)?.focus();
}, 150);
}}
>
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-cross-app-provider/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ function Home() {
<div
className={`${
authenticated
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -44,7 +44,9 @@ function Home() {
<ReadyForCrossAppRequests />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -57,7 +59,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Cross App Provider Demo
Cross App Provider Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-farcaster-mini-app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ function Home() {
<div
className={`${
authenticated
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -86,7 +86,9 @@ function Home() {
<MFA />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -99,7 +101,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Farcaster Mini App Demo
Farcaster Mini App Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-farcaster/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ function Home() {
<div
className={`${
authenticated
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -52,7 +52,9 @@ function Home() {
<MFA />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -65,7 +67,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Farcaster Demo
Farcaster Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
10 changes: 6 additions & 4 deletions examples/privy-next-funding/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function Home() {
}

return (
<div className="bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden">
<div className="bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden">
<Header />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row md:h-[calc(100vh-60px)]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -44,7 +44,9 @@ function Home() {
<MFA />*/}
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-[calc(100vh-60px)] relative">
Expand All @@ -57,7 +59,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Funding Demo
Funding Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
2 changes: 1 addition & 1 deletion examples/privy-next-permissionless/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function HomePage() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Permissionless Demo
Permissionless Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Smart Accounts
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-session-keys/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ function Home() {
<div
className={`${
authenticated
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -52,7 +52,9 @@ function Home() {
<MFA /> */}
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -65,7 +67,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Session Keys Demo
Session Keys Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-smart-wallets/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function Home() {
}

return (
<div className={`${authenticated ? 'bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden' : 'bg-transparent h-screen overflow-hidden'}`}>
<div className={`${authenticated ? 'bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden' : 'bg-transparent h-screen overflow-hidden'}`}>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -48,7 +48,9 @@ function Home() {
<MFA />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -61,7 +63,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Smart Wallets Demo
Smart Wallets Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
12 changes: 7 additions & 5 deletions examples/privy-next-solana/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ function Home() {
<div
className={`${
authenticated
? "bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden"
? "bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden"
: "bg-transparent h-screen overflow-hidden"
}`}
>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -48,7 +48,9 @@ function Home() {
<MFA />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -61,7 +63,7 @@ function Home() {
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Solana Demo
Solana Demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
Expand Down
24 changes: 15 additions & 9 deletions examples/privy-next-wagmi/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function Home() {
}

return (
<div className={`${authenticated ? 'bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden' : 'bg-transparent h-screen overflow-hidden'}`}>
<div className={`${authenticated ? 'bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden' : 'bg-transparent h-screen overflow-hidden'}`}>
<Header authenticated={authenticated} />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row h-screen pt-[60px]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -45,7 +45,9 @@ function Home() {
<MFA /> */}
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-screen relative">
Expand All @@ -57,10 +59,10 @@ function Home() {
priority
/>
<div className="z-10 flex flex-col items-center justify-center w-full h-full">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Wagmi demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
<div className="flex h-10 items-center justify-center rounded-[20px] border border-white px-6 text-lg text-white font-abc-favorit">
Wagmi demo
</div>
<div className="text-center mt-4 text-white text-7xl font-medium font-abc-favorit leading-[81.60px]">
Starter repo
</div>
<div className="text-center text-white text-xl font-normal leading-loose mt-8">
Expand All @@ -71,7 +73,11 @@ function Home() {
onClick={() => {
login();
setTimeout(() => {
(document.querySelector('input[type="email"]') as HTMLInputElement)?.focus();
(
document.querySelector(
'input[type="email"]'
) as HTMLInputElement
)?.focus();
}, 150);
}}
>
Expand Down
10 changes: 6 additions & 4 deletions examples/privy-react-chrome-extension/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ function App() {
}

return (
<div className="bg-[#E0E7FF66] md:max-h-[100vh] md:overflow-hidden">
<div className="bg-[#E0E7FF66] md:max-h-screen md:overflow-hidden">
<Header />
{authenticated ? (
<section className="w-full flex flex-col md:flex-row md:h-[calc(100vh-60px)]">
<div className="flex-grow overflow-y-auto h-full p-4 pl-8">
<section className="w-full flex flex-col md:flex-row md:h-screen pt-[60px]">
<div className="grow md:overflow-y-auto md:h-full p-4 pl-8 pb-4">
<button className="button" onClick={logout}>
<ArrowLeftIcon className="h-4 w-4" strokeWidth={2} /> Logout
</button>
Expand All @@ -42,7 +42,9 @@ function App() {
<MFA />
</div>
</div>
<UserObject />
<div className="md:shrink-0 md:overflow-y-auto md:h-full">
<UserObject />
</div>
</section>
) : (
<section className="w-full flex flex-row justify-center items-center h-[calc(100vh-60px)] relative">
Expand Down
Loading