Giter VIP home page Giter VIP logo

selector-safari's Introduction

Selector Safari

Production Build License: MIT Contributor Covenant

Overview

Selector Safari is a WIP game for learning CSS selectors!

Selector Safari is made by Drew, Nandana, Kevin, Janis, Nhi, and Lisha from the Teach LA Dev team.

This project is the brainchild of Matt and is inspired by Flexbox Froggy, Grid Garden, and Flexbox Defense. It uses React. We promise it will be playable soon :)

figma: https://www.figma.com/file/Hcet8ZB9HjIx13dNu2LEnk/Wire-Frame?node-id=0%3A1

Development Setup

We'll use a really common Node.js project workflow!

First, let's clone our repository, and install all of our node dependencies:

git clone https://github.com/uclaacm/selector-safari.git
cd selector-safari
npm install

To start our app, you just need to run npm start!

npm start

And to build our project for production (with CRA's webpack bundling and all that goodness),

npm run build

Contribution Workflow

Want to make a change? Great! Here are the steps:

  1. Either make a new branch or a fork of this repository. master is a protected branch, so you cannot push to it.
  2. Follow the instructions in "Development Setup" above. If you're on a fork, replace the URL with the fork's URL; if you're on a different branch, check it out using git checkout.
  3. Make your changes!
  4. Before you push, make sure your app builds with npm run build. If there are any errors, our CI/CD service will reject your build.
  5. Once you're ready, stage and commit your changes!
  6. Make a pull request with your changes, and let someone on the dev team know. Netlify has a neat feature called "Deploy Previews" that give you a link to preview your changes; see the blog post for more info!
  7. If your code passes code review, we'll merge it into master. Congratulations! If you'd like, it's now safe to delete your branch/fork.

Licensing & Attribution

This project and its code are licensed under the MIT License. You're free to use them however you wish, though we'd love to hear from you if you found this useful!

Create React App Artifacts

You can delete these if you want!

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open 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 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 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.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

selector-safari's People

Contributors

celebilaw avatar evanhe1 avatar gautier404 avatar kyle-pu avatar leo-xliu avatar lishamohan avatar matthewcn56 avatar mattxwang avatar megang33 avatar nandanaw avatar nhamakami7 avatar reginawang3495 avatar timothycpoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

selector-safari's Issues

Game Tutorial Pop ups

On first level, add little textboxes with arrows that explain what the different tools in our game do.

Bug: Fix 'Great job! Next level' text

After passing a level, if you go to the next level using the arrows at the top right instead of the 'next level' button, the 'Great job! Next level' text is still shown.

image

image

Handle when user uses too many selectors

E.g. most levels could probably be passed using just the ID selector, so we need to restrict that

  • count selectors by counting brackets?
  • should every level even have IDs (at least, IDs that we show to the user)?

Remove left arrow for level 1

On the first level, there is left arrow on the top-right. This doesn't need to be there, however, since there aren't any levels before level 1.

image

Copy hexcode to clipboard and display color of hexcode text

Some levels need you to use a specific hexcode, so it would be convenient if you were able to click on the hexcode to copy it

It would also be nice if the color of the text of a hexcode was actually the color of the hexcode itself.

(Optional): Also, there should probably be a little dropdown or something that has all the hexcodes they might need (e.g. background color, "green")

image

Fix HTML Tab content

Current HTML content only displays id's of the components, not their class. Need the content to also show the class.

Refresh code editor on each level

I think at the moment the code editor currently saves the CSS used on the most recent level even on subsequent levels. There isn't any bug with functionality of the game however, as the old CSS disappears as soon as we refresh the code editor on the current level, even if we haven't inputted anything in the current level yet. I think it would be nice if we could address this issue for polish though.

first level:
image

third level:
image

Notice how the zebra is still blue even though the code editor hasn't had anything inputted yet!

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.