https://github.com/basokant/hamburger-grammar
The hamburger grammar meme turned interactive.
https://github.com/basokant/hamburger-grammar
react typescript
Last synced: 3 months ago
JSON representation
The hamburger grammar meme turned interactive.
- Host: GitHub
- URL: https://github.com/basokant/hamburger-grammar
- Owner: basokant
- Created: 2022-03-23T00:01:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T03:33:50.000Z (over 3 years ago)
- Last Synced: 2024-10-12T00:51:04.006Z (almost 2 years ago)
- Topics: react, typescript
- Language: TypeScript
- Homepage: https://basokant.github.io/hamburger-grammar
- Size: 2.11 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hamburger Grammar
[Live Project](http://localhost:3000/?id=hamburger)

*The unpopular meme brought to life!*
A web app based on a meme with the same name. Different substrings of the word "hamburger" correspond to a specific hamburger ingredient (listed below in the ingredient list). The user can type out their order (a new word using the segments of "hamburger"), and the app will reactively deliver the desired burger for the user! The combinations are endlessly hilarious.
## Ingredient List
- "ham" ~ top bun
- "b" ~ lettuce
- "u" ~ tomato
- "r" ~ cheese
- "g" ~ meat patty
- "er" ~ bottom bun
## My Favourite Creations
*Next time you're at McDonald's, order one of these.*
1. [uuuuuuuuu](https://basokant.github.io/hamburger-grammar/?id=uuuuuuuuu)
2. [erburger](https://basokant.github.io/hamburger-grammar/?id=erburger)
3. [hamer](https://basokant.github.io/hamburger-grammar/?id=hamer)
## Screenshots
The ingredient list

The main screen

## Features
- Beautiful, hand-drawn and home-cooked burgers!
- Link Sharing (enables users to copy their link to save or send their burger order)
## What I Learned
- This was my first TypeScript project! (TypeScript is an AMAZING developer tool)
- Learned some intricasies of CSS, like z-index and the stacking context for stacking the images of the ingredients on top of each other.
- How to create a simple modal.
- The History browser API.
- Debouncing in React.
- *That I love making silly things that let me take life less seriously.*
## Set-Up
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Clone the repository, and run `npm install` under the project directory before running the available scripts to host the React app locally.
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).