Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

WEB102 Prework - Sea Monster Crowdfunding

Submitted by: Your Name Here

Sea Monster Crowdfunding is a website for the company Sea Monster Crowdfunding that displays information about the games they have funded, provides interactive filtering, and showcases key statistics about the crowdfunding campaigns.

Time spent: X hours spent in total

Required Features

The following required functionality is completed:

  • The introduction section explains the background of the company and how many games remain unfunded.
  • The Stats section includes information about the total contributions and dollars raised as well as the top two most funded games.
  • The Our Games section initially displays all games funded by Sea Monster Crowdfunding
  • The Our Games section has three buttons that allow the user to display only unfunded games, only funded games, or all games.

The following optional features are implemented:

  • Responsive flexbox layout for stats cards with hover effects
  • Dynamic game cards displaying game image, name, description, and pledge amount
  • Real-time statistics using reduce() and filter() array methods
  • Destructuring and spread operator for top games selection
  • Ternary operators for grammatically correct text

Video Walkthrough

Here's a walkthrough of implemented features:

Video Walkthrough

GIF created with Kap for macOS

Technical Skills Demonstrated

  • DOM Manipulation: createElement(), appendChild(), classList.add(), innerHTML
  • Array Methods: filter(), reduce(), sort(), destructuring with spread operator
  • Event Handling: Event listeners for filter buttons
  • Template Literals: Dynamic HTML content generation with variables
  • ES6+ Features: Arrow functions, destructuring, spread operator, const/let
  • CSS: Flexbox layouts, hover effects, responsive design

Notes

Challenges Encountered and Solutions:

  1. Understanding reduce() - Initially struggled with the accumulator concept, but the "donation bucket" metaphor helped clarify how values accumulate across iterations.

  2. Destructuring and Spread Operator - Learning the difference between spreading array elements versus accessing specific indices required practice with examples.

  3. Ternary Operators for Grammar - Implementing conditional text for singular/plural required careful planning to ensure grammatically correct output.

  4. CSS Flexbox Alignment - Getting the stats cards to align properly with flexbox required understanding both display: flex and align-items properties.

  5. Event Listener Management - Ensuring the deleteChildElements() function was called before displaying filtered results was crucial to prevent duplicate game cards from appearing.

Installation & Usage

  1. Clone the repository
  2. Open index.html in a web browser
  3. Interact with the buttons to filter games by funding status
  4. View statistics and the top 2 most funded games at the top of the page

License

Copyright 2026 [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

License

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Loom video: https://www.loom.com/share/9ec9ba06662446c1a37ca9eb55431aea

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages