|
| 1 | +<h1 align="center">Flip The Coin</h1> |
| 2 | + |
| 3 | +<div align="center"> |
| 4 | + <h3> |
| 5 | + <a href="https://hdoc1509.github.io/dev-challenges/flip-the-coin/">Solution</a> |
| 6 | + <span> | </span> |
| 7 | + <a href="https://devchallenges.io/challenge/flip-the-coin">Challenge</a> |
| 8 | + </h3> |
| 9 | +</div> |
| 10 | + |
| 11 | +## Deploy status |
| 12 | + |
| 13 | +[![Deploy challenges][deploy-status]][deploy-url] |
| 14 | + |
| 15 | +## Overview |
| 16 | + |
| 17 | +<!-- TODO: Update screenshot and its aspect ratio once project has completed --> |
| 18 | + |
| 19 | +<p align="center"> |
| 20 | + <img |
| 21 | + src="https://user-images.githubusercontent.com/16707738/92399059-5716eb00-f132-11ea-8b14-bcacdc8ec97b.png" |
| 22 | + alt="flip-the-coin screenshot" |
| 23 | + style="aspect-ratio: 16 / 9" |
| 24 | + /> |
| 25 | +</p> |
| 26 | + |
| 27 | +Build a coin flipping game using HTML, CSS, and JavaScript to practice your web |
| 28 | +development skills. Test your knowledge of HTML and CSS syntax while |
| 29 | +incorporating JavaScript to create an interactive game. |
| 30 | + |
| 31 | +## User Stories |
| 32 | + |
| 33 | +- [ ] Create a web page that allows users to flip a virtual coin. |
| 34 | +- [ ] Display the result of the coin flip (heads or tails) on the page. |
| 35 | +- [ ] Add a button that triggers the coin flip when clicked. |
| 36 | +- [ ] Style the web page according to the design. |
| 37 | +- [ ] Use JavaScript to handle the logic of the coin flip and update the page |
| 38 | + accordingly. |
| 39 | +- [ ] Deploy the website to make it accessible for everyone. |
| 40 | + |
| 41 | +### Built With |
| 42 | + |
| 43 | +- [Vite](https://vitejs.dev/) |
| 44 | +- [BEM](https://getbem.com/) and [CUBE CSS](https://cube.fyi) |
| 45 | +- [fontsource](https://fontsource.org/) fonts: |
| 46 | + - _List of fonts used in the project_ |
| 47 | + |
| 48 | +### Extra Features |
| 49 | + |
| 50 | +_WIP_ |
| 51 | + |
| 52 | +### What I learned |
| 53 | + |
| 54 | +_WIP_ |
| 55 | + |
| 56 | +## How To Use |
| 57 | + |
| 58 | +To clone and run this application, you'll need [Git](https://git-scm.com), |
| 59 | +[Node.js](https://nodejs.org/en/download/) and [pnpm](https://pnpm.io/installation) |
| 60 | +installed on your computer. From your command line: |
| 61 | + |
| 62 | +```bash |
| 63 | +# clone this repository |
| 64 | +git clone https://github.com/Hdoc1509/dev-challenges |
| 65 | + |
| 66 | +# install all required dependencies |
| 67 | +cd dev-challenges |
| 68 | +pnpm install --filter "@hdoc/dev-challenges" --filter "flip-the-coin"... |
| 69 | + |
| 70 | +# run dev-server |
| 71 | +cd "vanilla/flip-the-coin" |
| 72 | +pnpm run dev --open |
| 73 | +``` |
| 74 | + |
| 75 | +[deploy-status]: https://github.com/Hdoc1509/dev-challenges/actions/workflows/deploy.yml/badge.svg |
| 76 | +[deploy-url]: https://github.com/Hdoc1509/dev-challenges/actions/workflows/deploy.yml |
| 77 | + |
| 78 | +<!-- markdownlint-disable-file MD033 MD036 --> |
0 commit comments