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
8 changes: 8 additions & 0 deletions examples/nextjs/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# UTXOS Configuration
# Get your Project ID from https://utxos.dev/dashboard

# Network: 0 = preprod/testnet, 1 = mainnet
NEXT_PUBLIC_NETWORK_ID=0

# Your UTXOS Project ID
NEXT_PUBLIC_UTXOS_PROJECT_ID=your-project-id-here
30 changes: 30 additions & 0 deletions examples/nextjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# typescript
*.tsbuildinfo
next-env.d.ts
27 changes: 27 additions & 0 deletions examples/nextjs/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "UTXOS Wallet | Web3 Wallet as a Service",
description: "Connect your wallet with social login - Google, Discord, Twitter, Apple, Email",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
<style>{`
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(1.1); }
@keyframes spin { to { transform: rotate(360deg); } }
`}</style>
</head>
<body>{children}</body>
</html>
);
}
Loading