Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
568dc46
docs: add offline instructions to "Docs" folder
seba3510 Apr 23, 2025
1364311
style: add flexbox to the status container
seba3510 Apr 23, 2025
6f23787
feature: implement addGamesToPage() function
seba3510 Apr 23, 2025
5e3c2d7
feat: modify implementation of addGamesToPage()
seba3510 Apr 23, 2025
723f80d
docs: update "Challenges.docx"
seba3510 Apr 23, 2025
08209d5
chore: move JavaScript files and css file to new folder
seba3510 Apr 23, 2025
dc82e4c
feat: implement countTotalContributions() function
seba3510 Apr 23, 2025
d724f94
feat: implement getTotalAmountRaised()
seba3510 Apr 23, 2025
612e65d
feat: implement getNumGames() function
seba3510 Apr 23, 2025
5322eb4
chore: remove extra zeroes off the result of getTotalAmountRaised()
seba3510 Apr 23, 2025
8c47f86
chore: delete "~$allenges.docx"
seba3510 Apr 23, 2025
9181b61
this is a commit
seba3510 Apr 23, 2025
4e03ad1
Merge branch 'challenge-4'
seba3510 Apr 23, 2025
0b3acc1
feat: display funded games and unfunded games
seba3510 Apr 23, 2025
33ec7d7
feat: add event listener that displays all of the games
seba3510 Apr 23, 2025
2f77ee5
fix: fix implementation of filterUnfundedOnly() function
seba3510 Apr 24, 2025
288f847
fix: fix implementation of filterFundedOnly() function
seba3510 Apr 24, 2025
72c8826
fix: fix implementation of showAllGames() function
seba3510 Apr 24, 2025
8a6e6df
refactor: refactor code
seba3510 Apr 24, 2025
20cd41e
docs: update contents of "Challenges.docx"
seba3510 Apr 24, 2025
943b7e8
docs: update contents of "Challenges.docx"
seba3510 Apr 24, 2025
b9e4cea
Merge branch 'challenge-5'
seba3510 Apr 24, 2025
09c21e0
feat: implement getTotalUnfundedGames() function
seba3510 Apr 24, 2025
0fe0855
feat: implement displayNumUnfundedGames() function
seba3510 Apr 25, 2025
9b4d9ab
refactor: refactor code of index.js
seba3510 Apr 25, 2025
3ae3efd
refactor: finsish refactoring code of index.js
seba3510 Apr 25, 2025
83ac3f0
style: add title bar to index.html
seba3510 Apr 25, 2025
d69cad7
Merge branch 'challenge-6'
seba3510 Apr 25, 2025
ff3ebe0
fix: fix implementation of displayUnfundedGamesDescription()
seba3510 Apr 25, 2025
243f681
feat: implement displayTopFundedGame() and displayRunnerUp() functions
seba3510 Apr 25, 2025
4c1e687
refactor: refactor code of index.js
seba3510 Apr 25, 2025
7a48b4e
refactor: refactor code of index.js
seba3510 Apr 25, 2025
781604b
feat: remove button that displays all games
seba3510 Apr 25, 2025
b1abe3e
feat: display header of table
seba3510 Apr 25, 2025
4061176
feat: display all games in a table
seba3510 Apr 25, 2025
c80bc24
feat: display funded and unfunded books in a table
seba3510 Apr 25, 2025
ad342ad
feat: implement event handler to display all books in table
seba3510 Apr 25, 2025
efa7e2e
style: center images displayed in the table
seba3510 Apr 25, 2025
17c173b
feat: display games on table, based on the button clicked
seba3510 Apr 25, 2025
7deaf23
docs: update Challenges.docx
seba3510 Apr 25, 2025
801d76a
fix: fix implementation of Challenge #2
seba3510 Apr 25, 2025
7d65e39
fix: one again fix implementation of Challenge #4
seba3510 Apr 25, 2025
042b1ed
docs: update README
seba3510 Apr 25, 2025
21c729a
docs: update README
seba3510 Apr 25, 2025
52bb9ff
docs: check all optional and required features that were implemented
seba3510 Apr 25, 2025
b1fb688
docs: add video walkthrough to README
seba3510 Apr 25, 2025
409a17f
docs: update README
seba3510 Apr 25, 2025
50bea04
docs: update README
seba3510 Apr 25, 2025
bf61606
docs: update link of video walkthrough
seba3510 Apr 25, 2025
60433ae
docs: update README
seba3510 Apr 25, 2025
817ac50
docs: update README
seba3510 Apr 25, 2025
4947fe1
update README
seba3510 Apr 25, 2025
ce6a2a1
update README
seba3510 Apr 25, 2025
bbdf6cb
update README
seba3510 Apr 25, 2025
27153d7
docs: update README
seba3510 Apr 25, 2025
949d5d5
docs: update README
seba3510 Apr 25, 2025
8901f6e
chore: format code of games.js and index.js
seba3510 Apr 25, 2025
2d52798
docs: update README
seba3510 Apr 25, 2025
e6e0177
refactor: use innerHTML to display table headers
seba3510 Apr 26, 2025
1193476
chore: move gif of video Walkthrough to "assets" folder
seba3510 Apr 26, 2025
a5e3ae9
docs: fix grammatical error on README
seba3510 Apr 26, 2025
9b9de97
refactor: refactor code of index.js
seba3510 Apr 26, 2025
e084660
chore: fix grammatical error on getUnfundedGamesDescription()
seba3510 Apr 28, 2025
210af8e
chore: removed unused lines of code
seba3510 Apr 28, 2025
d2dfdba
refactor: refactor code
seba3510 Apr 28, 2025
0e4ae3a
Merge branch 'challenge-7'
seba3510 Apr 28, 2025
82d9524
chore: remove repeated line of code
seba3510 Apr 28, 2025
8d5331e
chore: remove duplicated while loop in deleteChildElements()
seba3510 Apr 28, 2025
600c738
fix: fix error on implementation of getUnfundedGamesDescription()
seba3510 Apr 28, 2025
b892cf8
chore: add new version of video Walkthrough
seba3510 Apr 28, 2025
b16085f
chore: remove unnecessary filter function in getTotalUnfundedGames()
seba3510 Apr 28, 2025
ba877ac
chore: remove unused code
seba3510 Apr 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
Binary file added Docs/Challenges.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Docs/__MACOSX/._Locked PDFs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Docs/~$allenges.docx
Binary file not shown.
Binary file added Docs/~WRL0003.tmp
Binary file not shown.
Binary file added Docs/~WRL2937.tmp
Binary file not shown.
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
# WEB102 Prework - *Name of App Here*
# WEB102 Prework - _SeaMonsterFundingApp_

Submitted by: **Your Name Here**
Submitted by: **Sebastián L. Corporán Berríos**

**Name of your app** is a website for the company Sea Monster Crowdfunding that displays information about the games they have funded.
**SeaMonsterFundingApp** is a website for the company Sea Monster Crowdfunding that displays information about the games they have funded.

Time spent: **X** hours spent in total
Time spent: **16** 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.
- [x] The introduction section explains the background of the company and how many games remain unfunded.
- [x] The Stats section includes information about the total contributions and dollars raised as well as the top two most funded games.
- [x] The Our Games section initially displays all games funded by Sea Monster Crowdfunding
- [x] 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:

* [ ] List anything else that you can get done to improve the app functionality!
- [x] Display all games in a dynamically created table
- [x] Change name of title bar, and add an icon

## Video Walkthrough

Here's a walkthrough of implemented features:

<img src='http://i.imgur.com/link/to/your/gif/file.gif' title='Video Walkthrough' width='' alt='Video Walkthrough' />
<img src='./assets/Walkthrough.gif' title='Video Walkthrough' alt='Video Walkthrough' />

<!-- Replace this with whatever GIF tool you used! -->
GIF created with ...

GIF created with [ScreenToGif](https://www.screentogif.com/) for Windows

<!-- Recommended tools:
[Kap](https://getkap.co/) for macOS
[ScreenToGif](https://www.screentogif.com/) for Windows
[peek](https://github.com/phw/peek) for Linux. -->

## Notes

Describe any challenges encountered while building the app.
Some challenges that I encountered were the following:

- Challenge #4: With this challenge, I struggled to understand the problem at first. I initially thought the total money raised had to include only the unfunded games, rather than both funded and unfunded games.

- Displaying each game in a table: This was by far the most difficult challenge I faced. When I clicked the buttons to show only funded or unfunded games, everything worked fine. However, the issue arose when I tried to display all games. If I clicked that button first, it worked as expected. But after displaying only funded or unfunded games, clicking the "Show All Games" button created a second table inside the existing one. This resulted in multiple nested tables being displayed.

## License

Copyright [yyyy] [name of copyright owner]
Copyright [2025] [Sebastián L. Corporán Berríos]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Binary file added assets/Walkthrough.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 44 additions & 1 deletion style.css → css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ body {
background-color: #758190;
}

*{
margin-left: 0;
margin-right: 0;
}



#tentacles {
width: 50px;
}
Expand All @@ -21,6 +28,14 @@ body {

.stats-container {
display: flex;
flex-direction: row;
align-items: stretch;
cursor: pointer;
box-shadow: 0 0 30px;
}

.stats-container:hover {
color: lightblue;
}

.stats-card {
Expand All @@ -32,7 +47,9 @@ body {
text-align: center;
}

#num-contributions, #total-raised, #num-games {
#num-contributions,
#total-raised,
#num-games {
font-size: 50px;
}

Expand Down Expand Up @@ -72,4 +89,30 @@ button {
padding: 1%;
margin: 1%;
border-radius: 7px;
}

img{
width: 50%;

}

table {
table-layout: fixed;
border-collapse: collapse;
width: fit-content;
}

table,
tr,
td,
th,
tbody,
thead {
border: 1px solid black;
text-align: center;
}

thead th {
/* background-color: rgba(26, 26, 27, 0.301); */
color: white;
}
108 changes: 55 additions & 53 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,64 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width">
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!-- header row with logo -->
<div class="header">
<img id="tentacles" src="assets/tentacles.png">
<h1 class="header-text">Sea Monster Crowdfunding</h1>
</div>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<title>Sea Monster</title>
<link rel="icon" href="./assets/tentacles.png" />
</head>

<!-- background info about company -->
<h2>Welcome to Sea Monster!</h2>
<div id="description-container">
<p>The purpose of our company is to fund independent games. We've been in operation for 12 years.</p>
</div>
<body>
<!-- header row with logo -->
<div class="header">
<img id="tentacles" src="./assets/tentacles.png" />
<h1 class="header-text">Sea Monster Crowdfunding</h1>
</div>

<!-- top games & other interesting stats -->
<h2>Stats</h2>
<div class="stats-container">
<div class="stats-card">
<h3>Individual Contributions</h3>
<p id="num-contributions">
</p>
</div>
<div class="stats-card">
<h3>Total Raised</h3>
<p id="total-raised">
</p>
</div>
<div class="stats-card">
<h3>Total Number of Games</h3>
<p id="num-games">
</p>
</div>
<!-- background info about company -->
<h2>Welcome to Sea Monster!</h2>
<div id="description-container">
<p>
The purpose of our company is to fund independent games. We've been in
operation for 12 years.
</p>
</div>

<!-- top games & other interesting stats -->
<h2>Stats</h2>
<div class="stats-container">
<div class="stats-card">
<h3>Individual Contributions</h3>
<p id="num-contributions"></p>
</div>
<div class="stats-container" id="top-games">
<div class="stats-card" id="first-game">
<h3>🥇 Top Funded Game</h3>
</div>
<div class="stats-card" id="second-game">
<h3>🥈 Runner Up</h3>
</div>
<div class="stats-card">
<h3>Total Raised</h3>
<p id="total-raised"></p>
</div>

<!-- list of games funded by Sea Monster -->
<h2>Our Games</h2>
<p>Check out each of our games below!</p>
<div id="button-container">
<button id="unfunded-btn">Show Unfunded Only</button>
<button id="funded-btn">Show Funded Only</button>
<button id="all-btn">Show All Games</button>
<div class="stats-card">
<h3>Total Number of Games</h3>
<p id="num-games"></p>
</div>
<div id="games-container">

</div>
<div class="stats-container" id="top-games">
<div class="stats-card" id="first-game">
<h3>🥇 Top Funded Game</h3>
</div>
<div class="stats-card" id="second-game">
<h3>🥈 Runner Up</h3>
</div>
</div>

<!-- list of games funded by Sea Monster -->
<h2>Our Games</h2>
<p>Check out each of our games below!</p>
<div id="button-container">
<button id="unfunded-btn">Show Unfunded Only</button>
<button id="funded-btn">Show Funded Only</button>
<button id="all-btn">Show All Games</button>
</div>
<div id="games-container"></div>

<script type="module" src="./js/index.js"></script>
</body>

<script type="module" src="index.js"></script>
</body>
</html>
Loading