Giter Site home page Giter Site logo

tuduun / smartcontractcolorchanger Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 149 KB

A playful DApp that lets users change a website's background color via a blockchain smart contract. Interact using MetaMask and see the decentralized magic unfold!

Home Page: https://tuduun.github.io/SmartContractColorchanger/

License: Creative Commons Attribution 4.0 International

Solidity 100.00%
dapp decentralized-applications javascript smart-contracts solidity web3

smartcontractcolorchanger's Introduction

SmartContractColorchanger

Overview

SmartContractColorchanger is a decentralized application (DApp) that allows users to change the website's background color. The color change is facilitated through a smart contract deployed on a blockchain, and users can interact with it using the MetaMask extension.

Features

  • Decentralized Color Change: The application leverages blockchain technology to allow users to change the website's color in a decentralized manner.
  • MetaMask Integration: Users can interact with the smart contract using the MetaMask browser extension, making the process seamless and user-friendly.
  • Solidity Smart Contract: The core logic for the color change is implemented in a Solidity smart contract.

How to Use

  1. Visit the SmartContractColorchanger website.
  2. If you wish to change the color, press the "set status" button. This will prompt you to pay a test asset via MetaMask.
  3. To view the current color set by someone, press the "get status" button. The website background will change to the color set by the last user who paid.

Code Structure

  • JavaScript Logic: The [script.js] file contains the frontend logic to interact with the smart contract and update the website's UI.
  • Smart Contract: The [contract.sol] file contains the Solidity smart contract responsible for handling the color change logic on the blockchain.

Contributing

Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the [CC-BY-4.0 license]

smartcontractcolorchanger's People

Contributors

tuduun avatar github-classroom[bot] avatar

Watchers

 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.