|
| 1 | +# dart_imagehash Website |
| 2 | + |
| 3 | +A beautiful, responsive website for the dart_imagehash package built with SvelteKit 5, Tailwind CSS, and modern web technologies. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **Modern Design**: Clean, responsive design with smooth animations |
| 8 | +- **Interactive Demo**: Test image hashing algorithms with sample images |
| 9 | +- **Comprehensive Documentation**: Complete API reference and usage examples |
| 10 | +- **Algorithm Comparison**: Visual comparison of different hashing algorithms |
| 11 | +- **GitHub Pages Ready**: Configured for easy deployment |
| 12 | + |
| 13 | +## Development |
| 14 | + |
| 15 | +### Prerequisites |
| 16 | + |
| 17 | +- Node.js 18 or higher |
| 18 | +- npm |
| 19 | + |
| 20 | +### Setup |
| 21 | + |
| 22 | +1. Clone the repository: |
| 23 | + |
| 24 | +```bash |
| 25 | +git clone https://github.com/vaibhavhrt/dart_imagehash.git |
| 26 | +cd dart_imagehash/example/example-website |
| 27 | +``` |
| 28 | + |
| 29 | +2. Install dependencies: |
| 30 | + |
| 31 | +```bash |
| 32 | +npm install |
| 33 | +``` |
| 34 | + |
| 35 | +3. Start development server: |
| 36 | + |
| 37 | +```bash |
| 38 | +npm run dev |
| 39 | +``` |
| 40 | + |
| 41 | +Visit `http://localhost:5173` to view the website. |
| 42 | + |
| 43 | +### Building for Production |
| 44 | + |
| 45 | +```bash |
| 46 | +npm run build |
| 47 | +``` |
| 48 | + |
| 49 | +The built files will be in the `build/` directory. |
| 50 | + |
| 51 | +### Deployment |
| 52 | + |
| 53 | +The website is configured for GitHub Pages deployment: |
| 54 | + |
| 55 | +1. **Automatic**: Push to main branch triggers automatic deployment via GitHub Actions |
| 56 | + |
| 57 | +## Project Structure |
| 58 | + |
| 59 | +``` |
| 60 | +src/ |
| 61 | +├── routes/ |
| 62 | +│ ├── +layout.svelte # Main layout with navigation |
| 63 | +│ ├── +layout.ts # Layout configuration |
| 64 | +│ ├── +page.svelte # Homepage |
| 65 | +│ ├── features/ |
| 66 | +│ │ └── +page.svelte # Features comparison page |
| 67 | +│ ├── demo/ |
| 68 | +│ │ └── +page.svelte # Interactive demo page |
| 69 | +│ └── docs/ |
| 70 | +│ └── +page.svelte # Documentation page |
| 71 | +├── app.css # Global styles |
| 72 | +└── app.html # HTML template |
| 73 | +``` |
| 74 | + |
| 75 | +## Technologies Used |
| 76 | + |
| 77 | +- **SvelteKit 5**: Modern web framework with runes |
| 78 | +- **Tailwind CSS 4**: Utility-first CSS framework |
| 79 | +- **TypeScript**: Type-safe JavaScript |
| 80 | +- **Vite**: Fast build tool |
| 81 | +- **GitHub Pages**: Static site hosting |
| 82 | + |
| 83 | +## Contributing |
| 84 | + |
| 85 | +1. Fork the repository |
| 86 | +2. Create a feature branch |
| 87 | +3. Make your changes |
| 88 | +4. Submit a pull request |
| 89 | + |
| 90 | +## License |
| 91 | + |
| 92 | +This project is licensed under the same license as the dart_imagehash package. |
0 commit comments