Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #87

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Dev #87

Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# WEB102 Prework - *Name of App Here*
# WEB102 Prework - Sea Monster

Submitted by: **Your Name Here**
Submitted by: **Aidan H.**

**Name of your app** is a website for the company Sea Monster Crowdfunding that displays information about the games they have funded.
**Sea Monster** 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: **12** 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] Add a hero image to the top of the page
- [x] Add a footer with copyright information
- [x] Stylize the event listener buttons using CSS
- [x] Convert the pledges and goals in the game cards to a locale string

## Video Walkthrough

Expand All @@ -26,19 +29,26 @@ 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' />

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

GIF created with ...

<!-- 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.
<!-- Describe any challenges encountered while building the app. -->

- Getting the hero image, along with the gradient transition, added on approximately 3 hours to the project - half of which was spent looking up how to do it and the other half was me being a perfectionist.
<!-- - In an effort to conserve time, I did not make the website responsive; for now, it looks best on a 3x4 screen. -->
- I had a hard time getting the total amount of underfunded games, even though it seemed like it would be an easy JavaScript for loop. As a result, the code may look janky and unprofessional.
- Another hard thing was designing the UI/UX for the site. I do not have any certifications in UI/UX design, but I still tried my best to make this site stand out from the crowd in an effort to learn all I can about CSS.

## License

Copyright [yyyy] [name of copyright owner]
Copyright 2024 Aidan H.

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/sea-monster-attack.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/sea-monster-attack.jpgZone.Identifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://www.iloveimg.com/
HostUrl=https://api3g.iloveimg.com/v1/download/rksvdkftfjrvk70b0qd2lk2Ak753b8l470mlsqcx3fpw4ym9vwz52f4twyzym4zyqc2c3h2kpwjz4mw4j59p6A8sA56dwppnvrz4hvg36wAp62c4hzzjqp2800wh55gjqd2s9jml864xpmg76hf9djc2yny10w8r1npcvtz4f1wvynl7l7j1
6 changes: 3 additions & 3 deletions games.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const games = ` [
"img": "./assets/kingdom_death.png"
}
]
`
`;
const template = `
{
"name": "",
Expand All @@ -99,6 +99,6 @@ const template = `
"backers": 0,
"img": ""
},
`
`;

export default games;
export default games;
147 changes: 87 additions & 60 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,64 +1,91 @@
<!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>
<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">
<h1 class="header-text"><i>Sea Monster Crowdfunding</i></h1>
</div> -->
<header>
<div class="hero-image">
<div class="header-text">
<img id="tentacles" src="assets/tentacles.png" />
<h1><i> Sea Monster Crowdfunding</i></h1>
</div>
</div>
</header>
<main>
<!-- background info about company -->
<section class="about-us-section">
<div id="about-us-text">
<span class="stretched-text"><b>About Us</b></span>
</div>
<div id="description-container">
<div>
Welcome to Sea Monster! The purpose of our company is to fund
independent games. We've been in operation for <i>12</i> years.
</div>
<br />
</div>
</section>
<!-- top games & other interesting stats -->
<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>
</div>
<div class="stats-container" id="top-games">
<div class="stats-card">
<h3>🥇 Top Funded Game</h3>
<div id="first-game"></div>
</div>
<div class="stats-card">
<h3>🥈 Runner Up</h3>
<div id="second-game"></div>
</div>
</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>
<!-- list of games funded by Sea Monster -->
<div id="our-games"><b>—Our Games—</b></div>
<div class="button-container">
<button id="unfunded-btn">Show Underfunded Only</button>
<button id="funded-btn">Show Funded Only</button>
<button id="all-btn">Show All Games</button>
</div>
<div id="games-container"></div>
</main>
<footer>
<div class="footer-container">
<p>Copyright 2024 Aidan H.</p>
<p>
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
</p>
<p>
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.
</p>
</div>
</footer>

<!-- 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-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>
</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="index.js"></script>
</body>
</html>
<script type="module" src="./index.js"></script>
</body>
</html>
Loading