My weekend project for my daughter! A simple image gallery built with Bevy that compiles to WebAssembly, allowing it to run in web browsers on both desktop and mobile devices.
- Displays a 3x3 grid of images
- Click or tap an image to view it in full screen
- Click or tap anywhere to close the full screen view
- Responsive design that works on mobile devices
- Rust and Cargo (https://www.rust-lang.org/tools/install)
- wasm-bindgen-cli (
cargo install wasm-bindgen-cli)
Or if you are a Nix user, that would be the only dependency of this project.
Run the build script:
./build-wasm.shOr if you are familiar with Nix you may run:
nix build .#build-wasmThis will:
- Compile the Rust code to WebAssembly
- Generate JavaScript bindings
- Copy the HTML file and assets to the output directory
- Start a local web server in the
webdirectory:
nix develop --command simple-http-server -i -p 8080 web- Open a web browser and navigate to
http://localhost:8080
This project is open source and available under the Apache-2.0 License.