Giter VIP home page Giter VIP logo

gallery's Introduction

Hic Et Nunc Digital Art Galleries

This repo creates a set of gallery pages based on IPFS hosted hicetnunc.xyz NFT token artworks:

https://adameivy.com/gallery

Forking / Making it Your Own

You can create your own gallery website with nothing more than a github account.

  1. fork this repo in to your github account
  2. install Node.js: https://nodejs.org/en/
  3. clone your fork to your machine and navigate to the folder
  4. install dependencies: npm install
  5. run the setup script: npm run setup

setup

  1. Add items to your gallery
# this will create the gallery named "prosopagnosia" if it doesn't exist
# add it will add the object 26001 to that gallery
node tools/add_item.js prosopagnosia 26001
  1. Remove items from the gallery
# this will remove object 26001 from the prosopagnosia gallery
node tools/rm_item.js prosopagnosia 26001
  1. Change the favicon.ico files
  • You can upload a new image to a favicon creator like this one: https://favicon.io
  • Download the images and overwrite the files in ./public/
  1. Commit your changes: git add -A .; git commit -m 'initial gallery setup'
  2. Push to your own fork: git push -u origin main
  3. Deploy to github pages: npm run deploy

In a few minutes, your site will be at https://{YOUR_GITHUB_USERNAME}.github.io/gallery

Event Countdown

If you want to setup an event clock for your gallery, edit ./src/data/galleries.json add add an eventTime as a unix timestamp (https://www.unixtimestamp.com) for the moment in time that the event will begin and eventURL that will display as a link to the event location when the countdown finishes.

Example:

"prosopagnosia": {
    "eventTime": 1618167600000,
    "eventURL": "https://www.hicetnunc.xyz/tz/tz1c2e1WMKKtf6oBZcZK3YFxrXgVbb2ggRr9",
    "description": "\"I can't remember her face, but when she looked at me, it felt like this.\"",
    "main": 25769,
    "items": [25769, 25896, 25900, 25918, 25948, 25998, 26001, 26002]
  }

Update Cached Data

npm run fetch

Then you can commit and re-deploy:

git add -A .; git commit -m 'update data'; git push; npm run deploy

Working with the codebase

  • This site is built using Vue.js, SCSS, and pug
  • Text and social media links are in config.json
  • ./src/data/galleries.json can be edited to rearrange items, to set new main thumbnails, add event countdowns, and gallery level descriptions.
  • ./src/data/gallery_data.json is the downloaded object data from hicetnunc.xyz
  • Primary CSS styles for background-color, text-color, etc, can be found in ./src/App.vue

Local testing

npm run serve

gallery's People

Contributors

atomantic avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.