Let’s Go Camping!

Let’s Go Camping!

Note: This is a submission for the DEV Challenge, Glam Up My Markup: Camp Activities

What we built
Demo
Inspiration
Struggles

My overall feelings about this challenge

Me
Thomas

Footnotes

What we built

@thomasbnt and I built a video game style form where players pick camping activities from the dropdown menu and have the option to share their character’s food allergies and other information that the counsellor, aka the game’s mentor. Once players hit the submit button, they’ll be notified “A new player who loves [activity you chose] entered into the party!” and the game will continue1.

Demo

demo link

source code link

Inspiration

I was thinking about back to my childhood playing video games like Pokemon Silver or The Legend of Zelda. So, I thought to myself “Why not bring this theme to the form?”. When I presented my idea to @thomasbnt, he loved my idea and from there, we got to work.

Struggles

During this challenge, I struggled with creating the cartoon pointer effect. At first, I had the code like this:

select {
cursor: auto;
}

After noticing that the pointer would not appear and doing some googling, I realized that it needed an image of the cartoon hand. So, I found one at Freepik.com2, went to MDN Web Docs’s article about the cursor property to learn how to link the image, and did this:

select {
cursor: url(/images/cursor_pointer.png), auto;
}

Save code snippet

For Thomas, he had trouble with targeting the submit button with JavaScript since it did not have an id. After doing some research, he came up with this

const submit = document.getElementsByTagName(button)[0];

Save code snippet

My overall feelings about this challenge

I had fun doing this challenge(shoutout to @thomasbnt for being an awesome partner! 😊) and can’t wait to do the next one. If you want to see more of mine and Thomas’ coding adventures, follow us on dev.to and check the other links below:

Me

🐦 Follow me on X(Twitter)

📝 Check out my other content on Hashnode

🫱🏾‍🫲🏻 Connect with me on Linkedin

Thomas

🐦 Follow Thomas on X(Twitter)

🌐 Check out Thomas’ website

🫱🏻‍🫲🏽 Connect with Thomas on Linkedin

Footnotes

This is just an idea we made in our head.  ↩

Image by macrovector on Freepik ↩

Leave a Reply

Your email address will not be published. Required fields are marked *