Skip to content

bitoslabs/bnos-space

Repository files navigation

BnOS Website

Bilingual website for BnOS (Business OS / Bitcoin Nostr Operating System)

📁 Structure

bnos.space/
├── index.html          # ✅ Language selector with auto-detection
├── css/
│   └── style.css       # ✅ Shared stylesheet (refactored from inline styles)
├── en/                 # English version
│   ├── index.html      # ✅ Main landing page
│   ├── comming.html    # ✅ Coming soon page with countdown
│   └── manual.html     # ✅ Full documentation/manual
└── lo/                 # Lao version (ພາສາລາວ)
    ├── index.html      # ⏳ To be completed (copy & translate from en/index.html)
    ├── comming.html    # ✅ Coming soon page (Lao translation complete)
    └── manual.html     # ⏳ To be completed (copy & translate from en/manual.html)

✅ Completed Features

1. Shared CSS Architecture

  • css/style.css - Centralized stylesheet
  • Extracted common styles from inline CSS
  • Includes:
    • Navigation & language switcher
    • Buttons & animations
    • Background elements (stars, orbs, gradients)
    • Footer styles
    • Responsive design breakpoints

2. Language System

  • Auto-detection: Detects browser language preference
  • Manual selection: Language switcher on all pages
  • Persistent: Remembers user's choice in localStorage
  • Bilingual support: EN (English) and ລາວ (Lao)

3. Completed Pages

English (en/)

  • ✅ index.html - Full landing page with hero, features, etc.
  • ✅ comming.html - Coming soon page with countdown timer
  • ✅ manual.html - Complete documentation

Lao (lo/)

  • ✅ comming.html - Fully translated with Lao font support

⏳ Pending Tasks

Pages to Complete

  1. lo/index.html - Translate main landing page to Lao
  2. lo/manual.html - Translate documentation to Lao

How to Complete Lao Pages

  1. Copy the English version:

    cp en/index.html lo/index.html
    cp en/manual.html lo/manual.html
  2. Update each file:

    • Change lang="en" to lang="lo"
    • Add Noto Sans Lao font in <head>:
      <link
        href="https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@300;400;500;600;700;800&display=swap"
        rel="stylesheet"
      />
    • Update font-family in CSS to include Lao font first
    • Translate all text content to Lao
    • Update language switcher links
    • Update meta tags (title, description) to Lao

🚀 Deployment

Deploy the website using:

./deploy-bnos.sh

This script:

  • Reads server config from .env (SITE_SERVER, SITE_PORT, SITE_REMOTE_PATH)
  • Zips the entire docs/bnos.space directory
  • Uploads to /var/www/bnos.space/html/
  • Extracts and sets permissions
  • Cleans up zip files

🎨 Styling Guide

Using Shared CSS

All pages should link to the shared stylesheet:

<link rel="stylesheet" href="../css/style.css" />

Available CSS Classes

  • .nav - Fixed navigation bar
  • .lang-switcher - Language toggle buttons
  • .btn-primary - Primary orange button
  • .btn-secondary - Secondary outline button
  • .orb, .orb-1, .orb-2 - Floating gradient backgrounds
  • .stars - Animated star field
  • .footer - Fixed footer with social links

Animations

  • float - Floating orb animation
  • pulse - Pulsing dot/border
  • rotate - 360° rotation
  • twinkle - Star twinkling
  • logoGlow - Logo glow effect

🌐 Font Support

English Pages

font-family:
  "Inter",
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  Roboto,
  sans-serif;

Lao Pages

font-family:
  "Noto Sans Lao",
  "Inter",
  -apple-system,
  BlinkMacSystemFont,
  sans-serif;

📝 Translation Guidelines

When translating to Lao:

  1. Maintain structure: Keep HTML structure identical
  2. Font support: Always include Noto Sans Lao
  3. Text direction: Lao is left-to-right (same as English)
  4. Key terms:
    • Business OS → ລະບົບປະຕິບັດການທຸລະກິດ
    • Lightning → Lightning (keep English)
    • Nostr → Nostr (keep English)
    • Bitcoin → Bitcoin (keep English)
    • Point of Sale → ລະບົບຈຸດຂາຍ

🔧 Local Development

To view locally, use any static server:

# Python 3
python -m http.server 8000

# Node.js
npx serve .

# PHP
php -S localhost:8000

Then visit http://localhost:8000

📞 Support

For questions about the website or translations, refer to the main DEPLOYMENT.md in the root directory.

About

lading page https://bnos.space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors