GithubHelp home page GithubHelp logo

juliankrzysiak / 404-page Goto Github PK

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

Slot Machine 404 Page

Home Page: https://404-page-7ty.pages.dev/

License: MIT License

JavaScript 1.92% TypeScript 96.17% CSS 1.91%
404 404-page not-found

404-page's Introduction


Logo

Not Found

404 Page for Codédex's monthly challenge.

View Demo · Report Bug · Request Feature

About The Project

Screenshot

Desktop Screenshot

Built With

Next.JS Static Badge
Styled Components Static Badge

Inspiration

I wanted to create a 404 page that matched the main theme and style of Codédex, gamification. It should be something that was informative while also being a small game in of itself. Wanting to combine the Codédex coin with a game, my mind naturally wandered to making a Slot Machine. The slot numbers would be the response code, and a user could win by getting a "good" response code, 200. And just like a Slot Machine, a flurry of coins would fall randomly when a winning spin had been achieved. I also added the ability to drop even more coins when the user won to supoprt the gaming theme moreso; and thus, my idea had come to fruition.

Features / Usage

  • Slot Machine progressing through random numbers
    • Will always land on 404 when page is first loaded
    • Will always land on 200 (or any other number) in a random number of spins within a defined range, eg., the default is set to 3-5, so it will take 3, 4, or 5 spins to win
  • Can always go back to the previous page if desired
  • Many Codédex coins will fall randomly when the winning spin has been achieved
  • When a win has been achieved, the user can click to drop a random number of coins from the heavens
  • Messages when losing are randomized so it doesn't get boring
  • Enter the Konami Code for a secret Easter Egg

Optimizations

  • Built on the same Next.JS version to ensure it will work and ease transfer for the Codédex team.
  • Built on the same Styled Components version to again ensure an easier transfer.
  • All design choices (colors, fonts, images, etc.) were implemented to match Codédex's design system as closely as possible.
    • Codédex Team can feel free to replace elements I tried to replicate, ie., buttons, with their own
  • Responsive Design
  • Only uses 1 extra dependency
    • Motion One, a simple animation library smaller than most.
  • Customization Galore, most functions have sensible default parameters which can be easily changed using objects
  • Error Page is an actual error page since the main button takes you to a non-existent location

Getting Started

To get a local copy running, follow the instructions.

Prerequisites

  • pnpm
    npm install -g pnpm
    

Installation

  1. Clone the repo
    git clone https://github.com/CastillejaCode/portfolio.git
    
  2. Install NPM packages
    pnpm install 
    
  3. Run local development server
    pnpm dev
    

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Julian Krzysiak - [email protected]

Acknowledgments

(back to top)

404-page's People

Contributors

juliankrzysiak 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.