Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/girish1729/blackgallery
An image gallery for Svelte, Vue,React and Angular
https://github.com/girish1729/blackgallery
angular gallery image plugin react svelte vue
Last synced: 5 days ago
JSON representation
An image gallery for Svelte, Vue,React and Angular
- Host: GitHub
- URL: https://github.com/girish1729/blackgallery
- Owner: girish1729
- Created: 2023-10-14T11:07:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-21T09:46:55.000Z (about 1 year ago)
- Last Synced: 2024-10-28T12:31:52.514Z (17 days ago)
- Topics: angular, gallery, image, plugin, react, svelte, vue
- Language: TypeScript
- Homepage: https://velvety-ganache-63cc22.netlify.app/
- Size: 1.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple image gallery for Angular, Svelte, React and Vue
Blackgallery is a simple image gallery that can show upto 15 images
using simple CSS and JS.No zoom, no fancy effects.
![Blackgallery](https://raw.githubusercontent.com/girish1729/blackgallery/main//screenshots/sample-blackgallery.png)
## Source for porting
Make sure you have typescript installed globally.
```shell
# npm install -g typescript
``````shell
cd source
yarn
yarn build
yarn start
```The build takes care of converting typescript to JavaScript.
The project is split into packages and demo directories.
The package builds a module that can be uploaded to npm registry.
The demo simply installs the module and acts as an example for
integration into third party projects.## Live demo
Check out [live demo](https://velvety-ganache-63cc22.netlify.app/)
This is from an image config file that reads like this.
```js
const images = [{
"src": "https://source.unsplash.com/random?sig=2",
"alt": "Beautiful scenery I "
},
{
"src": "https://source.unsplash.com/random?sig=4",
"alt": "Beautiful scenery II "
},
{
"src": "https://source.unsplash.com/random?sig=3",
"alt": "Beautiful scenery III "
},
{
"src": "https://source.unsplash.com/random?sig=1",
"alt": "Beautiful scenery IV "
},
{
"src": "https://source.unsplash.com/random?sig=45",
"alt": "Beautiful scenery IV "
},
{
"src": "https://source.unsplash.com/random?sig=37",
"alt": "Beautiful scenery IV "
},
{
"src": "https://source.unsplash.com/random?sig=20",
"alt": "Beautiful scenery IV "
},]
```## Instructions for Angular, Vue, Svelte and React
```shell
$ npm install blackgallery-angular
# or
$ yarn add blackgallery-angular
```
### Vue 3```shell
$ npm install blackgallery-vue
# or
$ yarn add blackgallery-vue
```
### React.js```shell
$ npm install blackgallery-react
# or
$ yarn add blackgallery-react
```
### Svelte```shell
$ npm install blackgallery-svelte
# or
$ yarn add blackgallery-svelte
```