Skip to content

longcipher/ledgerflow-homepage

Repository files navigation

LedgerFlow - Web3 Payment Gateway

Make Value Flow Like Information.

A modern, dark-themed landing page for a Web3 payment gateway built with Leptos and Rust. LedgerFlow showcases a permissionless, self-custody payment solution for creators and developers in the Web3 ecosystem.

🌟 Features

  • πŸŒ™ Dark Web3 Theme: Modern UI with blue and purple glowing accents
  • ⚑ Rust Performance: Built with Leptos for lightning-fast WASM performance
  • πŸ“± Fully Responsive: Optimized for desktop and mobile devices
  • 🎨 Smooth Animations: CSS animations with fade-in effects and hover states
  • πŸ”§ Easy Configuration: Simple config constants for quick customization
  • 🌐 Static Deployment: Zero server requirements, deploy anywhere

πŸ—οΈ Page Structure

The landing page is built with modular Leptos components:

🧭 Navigation (Navbar)

  • Logo with brand name
  • Navigation links: "Why LedgerFlow?", "Features", "How it Works"
  • Action buttons: "GitHub" and "Get Started"
  • Mobile-responsive menu toggle

πŸš€ Hero Section (HeroSection)

  • Primary headline with animated background
  • Value proposition subtitle
  • Dual CTAs: "View on GitHub" and "Start Receiving Payments via Telegram"
  • Supporting text with fade-in animations

❌ Problem Section (ProblemSection)

  • Title: "Tired of Traditional Payment Rails?"
  • Four problem cards:
    • 🏒 High Barriers: Company registration requirements
    • πŸ”’ Frozen Funds: Platform control over user funds
    • πŸ’Έ Hidden Fees: Unpredictable costs and conversion fees
    • 🌍 Geographic Walls: Banking and country restrictions

βœ… Solution Section (SolutionSection)

  • Title: "Welcome to the Future of Payments."
  • Four solution cards:
    • ⚑ Truly Permissionless: Only crypto address needed
    • πŸ” Self-Custody: Direct on-chain vault control
    • πŸ’Ž Radical Transparency: Only blockchain gas fees
    • 🌐 Genuinely Global: Internet-only requirements

πŸ”„ How It Works Section (HowItWorksSection)

  • Title: "Simple & Secure in 3 Steps"
  • Three-step process:
    1. Create Link: Generate payment request via Telegram Bot
    2. Customer Pays: USDC sent to PaymentVault contract
    3. Receive Funds: On-chain confirmation and instant vault arrival

πŸ› οΈ Features Section (FeaturesSection)

  • Title: "Built for the Web3 Economy"
  • Four core features:
    • πŸ›οΈ Non-Custodial Vault: Single audited smart contract
    • πŸ”— Seamless Multi-Chain: EVM chain compatibility
    • βš™οΈ Programmable & Composable: DeFi integration ready
    • β›½ Gasless Experience: Permit signature support

πŸ“ž Final CTA Section (FinalCTASection)

  • Title: "Ready to Join the Open Financial Network?"
  • Primary action: "Launch the Telegram Bot"
  • Secondary action: "View on GitHub"
  • Testnet contract link on Uniscan

🏠 Footer (Footer)

  • Copyright notice with current year
  • Built with Leptos & Rust branding

πŸš€ Quick Start

Prerequisites

  • Rust: Latest stable version
  • Trunk: WASM web application bundler

Installation

# Install Rust if not already installed
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Install Trunk
cargo install trunk

# Or install via npm
npm install -g trunk

Development

# Clone the repository
git clone https://github.com/longcipher/ledgerflow-homepage.git
cd ledgerflow-homepage

# Start development server
trunk serve

# Open browser to http://127.0.0.1:8080

Production Build

# Build for production
trunk build --release

# Files will be in dist/ directory

🎨 Design System

Color Palette

  • Primary Blue: #3b82f6 - Technology and trust
  • Secondary Purple: #8b5cf6 - Innovation and Web3
  • Accent Cyan: #06b6d4 - Flow and movement
  • Background: #0a0a0a / #111111 - Dark sophistication
  • Text: #ffffff to #71717a - Clarity gradient

Typography

  • Font Family: Inter (Google Fonts)
  • Weights: 100-900 available
  • Hierarchy: Clear distinction between titles, subtitles, and body text

Visual Effects

  • Glow Effects: Blue and purple shadows on interactive elements
  • Gradient Text: Primary headlines use blue-to-purple gradients
  • Hover States: Cards lift and glow on interaction
  • Animations: Fade-in effects with staggered delays

πŸ› οΈ Configuration

Core Settings

Edit the CONFIG struct in src/main.rs:

const CONFIG: LedgerFlowConfig = LedgerFlowConfig {
    brand_name: "LedgerFlow",
    hero_title: "Make Value Flow Like Information.",
    hero_subtitle: "The open source, permissionless, self-custody payment gateway...",
    telegram_bot_url: "https://t.me/LedgerFlowBot",
    github_url: "https://github.com/longcipher/ledgerflow",
    testnet_contract_url: "https://sepolia.uniscan.xyz/address/0x...",
};

Content Arrays

Modify the problem/solution/feature arrays:

// Problems users face
const PROBLEMS: &[(&str, &str, &str)] = &[
    ("🏒", "High Barriers", "Forced to register a company..."),
    // Add more problems...
];

// Solutions LedgerFlow provides
const SOLUTIONS: &[(&str, &str, &str)] = &[
    ("⚑", "Truly Permissionless", "All you need is a crypto address..."),
    // Add more solutions...
];

// Core features
const FEATURES: &[(&str, &str, &str)] = &[
    ("πŸ›οΈ", "Non-Custodial Vault", "A single, audited smart contract..."),
    // Add more features...
];

Styling Customization

Update CSS variables in style.css:

:root {
  --color-primary: #3b82f6;
  --color-secondary: #8b5cf6;
  --color-accent: #06b6d4;
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  /* ... more variables */
}

πŸ“¦ Tech Stack

  • Frontend Framework: Leptos - Rust-based reactive UI
  • Build Tool: Trunk - WASM application bundler
  • Styling: Custom CSS with CSS variables and animations
  • Icons: Unicode emojis for lightweight, universal compatibility
  • Fonts: Inter from Google Fonts
  • Deployment: Static files, compatible with any hosting

πŸ—οΈ Project Structure

ledgerflow-homepage/
β”œβ”€β”€ src/
β”‚   └── main.rs                 # Main Leptos components and config
β”œβ”€β”€ dist/                       # Built files (generated)
β”œβ”€β”€ target/                     # Rust build artifacts
β”œβ”€β”€ index.html                  # HTML template
β”œβ”€β”€ style.css                   # Dark theme CSS
β”œβ”€β”€ Cargo.toml                  # Rust dependencies
β”œβ”€β”€ Trunk.toml                  # Trunk configuration
β”œβ”€β”€ Justfile                    # Development commands
β”œβ”€β”€ leptosfmt.toml             # Leptos formatter config
└── README.md                   # This file

🌐 Deployment

Static Hosting

The app builds to static files, deployable anywhere:

trunk build --release

Deploy the dist/ folder to:

  • Vercel: Connect GitHub repo for automatic deployments
  • Netlify: Drag and drop dist folder or connect repo
  • GitHub Pages: Deploy from gh-pages branch
  • AWS S3: Static website hosting
  • IPFS: Decentralized hosting for Web3 alignment

Development Commands

Using Just (justfile):

# Format code
just format

# Lint code
just lint

# Run tests
just test

Or using Cargo directly:

# Format Rust code
cargo fmt

# Check for issues
cargo clippy

# Run tests
cargo test

🎯 Target Audience

This landing page is designed for:

  • Web3 Developers: Clear technical messaging and integration focus
  • Crypto Creators: Self-custody and permissionless value propositions
  • DeFi Users: Emphasis on transparency and composability
  • Global Entrepreneurs: Borderless payment solutions

πŸ”— External Links

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run just lint to ensure code quality
  5. Submit a pull request

πŸ“„ License

MIT License - Feel free to use this template for your Web3 projects.


Built with ❀️ using Leptos and Rust for the decentralized future.

Releases

No releases published

Packages

No packages published