|
| 1 | +# BridgeX Website |
| 2 | + |
| 3 | +The official website for BridgeX - an open-source graphical interface for converting files to Markdown. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- 🌐 **Multilingual**: Available in English, Spanish, and Portuguese (Brazil) |
| 8 | +- 🌓 **Dark/Light Mode**: Theme toggle with system preference detection |
| 9 | +- 📱 **Responsive Design**: Fully adaptive for mobile, tablet, and desktop |
| 10 | +- ✨ **Modern UI**: Glassmorphism design with smooth animations |
| 11 | +- ⚡ **Fast**: Built with React and Vite for optimal performance |
| 12 | + |
| 13 | +## Pages |
| 14 | + |
| 15 | +- **Home**: Landing page with features, screenshots, and CTA |
| 16 | +- **Downloads**: Platform-specific download options (Windows .exe, pip install) |
| 17 | +- **Documentation**: Installation guides, usage instructions, troubleshooting |
| 18 | +- **About**: Project information, what BridgeX does and doesn't do |
| 19 | +- **Licenses**: Third-party license information (Markitdown, PySide6, etc.) |
| 20 | + |
| 21 | +## Tech Stack |
| 22 | + |
| 23 | +- **React 19** with TypeScript |
| 24 | +- **Vite** for fast builds |
| 25 | +- **React Router** for navigation |
| 26 | +- **i18next** for internationalization |
| 27 | +- **Axios** for API calls |
| 28 | +- **Lucide React** for icons |
| 29 | + |
| 30 | +## Development |
| 31 | + |
| 32 | +### Prerequisites |
| 33 | + |
| 34 | +- Node.js 18+ |
| 35 | +- npm 9+ |
| 36 | + |
| 37 | +### Setup |
| 38 | + |
| 39 | +```bash |
| 40 | +cd website |
| 41 | +npm install |
| 42 | +npm run dev |
| 43 | +``` |
| 44 | + |
| 45 | +### Build |
| 46 | + |
| 47 | +```bash |
| 48 | +npm run build |
| 49 | +``` |
| 50 | + |
| 51 | +### Preview Production Build |
| 52 | + |
| 53 | +```bash |
| 54 | +npm run preview |
| 55 | +``` |
| 56 | + |
| 57 | +## Deployment to GitHub Pages |
| 58 | + |
| 59 | +### Option 1: Automatic Deployment (Recommended) |
| 60 | + |
| 61 | +The website is automatically deployed when changes are pushed to the `web` branch. |
| 62 | + |
| 63 | +1. **Create the `web` branch** (if not exists): |
| 64 | + ```bash |
| 65 | + git checkout -b web |
| 66 | + git push origin web |
| 67 | + ``` |
| 68 | + |
| 69 | +2. **Configure GitHub Pages**: |
| 70 | + - Go to your repository Settings → Pages |
| 71 | + - Under "Build and deployment", select "GitHub Actions" as the source |
| 72 | + - The workflow at `.github/workflows/deploy-website.yml` will handle deployment |
| 73 | + |
| 74 | +3. **Push changes to `web` branch**: |
| 75 | + ```bash |
| 76 | + git checkout web |
| 77 | + git merge main # or your development branch |
| 78 | + git push origin web |
| 79 | + ``` |
| 80 | + |
| 81 | +The website will be available at: `https://<username>.github.io/<repo-name>/` |
| 82 | + |
| 83 | +### Option 2: Manual Deployment |
| 84 | + |
| 85 | +1. Build the website: |
| 86 | + ```bash |
| 87 | + cd website |
| 88 | + npm run build |
| 89 | + ``` |
| 90 | + |
| 91 | +2. Deploy the `dist` folder to your hosting provider |
| 92 | + |
| 93 | +### Configuration |
| 94 | + |
| 95 | +The base URL is configured in `vite.config.ts`. Update it if you're deploying to a different path: |
| 96 | + |
| 97 | +```typescript |
| 98 | +export default defineConfig({ |
| 99 | + base: '/your-repo-name/', |
| 100 | + // ... |
| 101 | +}) |
| 102 | +``` |
| 103 | + |
| 104 | +## Project Structure |
| 105 | + |
| 106 | +``` |
| 107 | +website/ |
| 108 | +├── public/ # Static assets |
| 109 | +├── src/ |
| 110 | +│ ├── components/ |
| 111 | +│ │ ├── common/ # Reusable components |
| 112 | +│ │ ├── layout/ # Layout components (Navbar, Footer) |
| 113 | +│ │ └── sections/ # Page sections (Hero, Features, etc.) |
| 114 | +│ ├── contexts/ # React contexts (Theme) |
| 115 | +│ ├── hooks/ # Custom React hooks |
| 116 | +│ ├── i18n/ |
| 117 | +│ │ ├── locales/ # Translation files (en, es, pt) |
| 118 | +│ │ └── index.ts # i18n configuration |
| 119 | +│ ├── pages/ # Page components |
| 120 | +│ ├── services/ # API services |
| 121 | +│ ├── styles/ # Global styles |
| 122 | +│ ├── App.tsx # Main app component |
| 123 | +│ └── main.tsx # Entry point |
| 124 | +├── index.html # HTML template |
| 125 | +├── package.json |
| 126 | +├── tsconfig.json |
| 127 | +└── vite.config.ts |
| 128 | +``` |
| 129 | + |
| 130 | +## Color Palette |
| 131 | + |
| 132 | +Colors extracted from the BridgeX logo: |
| 133 | + |
| 134 | +| Color | Hex | Usage | |
| 135 | +|-------|-----|-------| |
| 136 | +| Green | `#22c55e` | Primary actions, success states | |
| 137 | +| Yellow | `#eab308` | Secondary actions, warnings | |
| 138 | +| Red | `#ef4444` | Accent, errors, important notices | |
| 139 | + |
| 140 | +## Translations |
| 141 | + |
| 142 | +To add a new language: |
| 143 | + |
| 144 | +1. Create a new file in `src/i18n/locales/` (e.g., `fr.json`) |
| 145 | +2. Copy the structure from `en.json` |
| 146 | +3. Translate all values |
| 147 | +4. Add the language to `src/i18n/index.ts`: |
| 148 | + ```typescript |
| 149 | + import fr from './locales/fr.json'; |
| 150 | + |
| 151 | + const resources = { |
| 152 | + // ... |
| 153 | + fr: { translation: fr } |
| 154 | + }; |
| 155 | + ``` |
| 156 | +5. Add the language option to `src/components/layout/Navbar.tsx` |
| 157 | + |
| 158 | +## License |
| 159 | + |
| 160 | +MIT License - © 2025 Dev2Forge |
0 commit comments