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
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
Here's a walkthrough of implemented features:
GIF created with Kap for macOS
- 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
-
Understanding reduce() - Initially struggled with the accumulator concept, but the "donation bucket" metaphor helped clarify how values accumulate across iterations.
-
Destructuring and Spread Operator - Learning the difference between spreading array elements versus accessing specific indices required practice with examples.
-
Ternary Operators for Grammar - Implementing conditional text for singular/plural required careful planning to ensure grammatically correct output.
-
CSS Flexbox Alignment - Getting the stats cards to align properly with flexbox required understanding both
display: flexandalign-itemsproperties. -
Event Listener Management - Ensuring the deleteChildElements() function was called before displaying filtered results was crucial to prevent duplicate game cards from appearing.
- Clone the repository
- Open
index.htmlin a web browser - Interact with the buttons to filter games by funding status
- View statistics and the top 2 most funded games at the top of the page
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.
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
