-
Notifications
You must be signed in to change notification settings - Fork 357
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
Veras Guess Who! #338
base: main
Are you sure you want to change the base?
Veras Guess Who! #338
Changes from 12 commits
d96bef9
ac4d38a
5d62aca
4d56c29
47267b3
9882504
e10d911
eac0247
c36eb9b
7277ce5
028e2f5
a3418dd
6be4ece
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
# Project Name | ||
# Guess who | ||
|
||
Replace this readme with your own information about your project. | ||
|
||
Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. | ||
This project was to create a "Guess who"-game. It inluded using the DOM, eventlisteners etc. | ||
|
||
## The problem | ||
|
||
Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? | ||
It was alot of information to start with in the files already, which both made it easier and trickier. Less to do and figure out along the way, but a lot of code to understand at once in the beginning. | ||
If I hade more time, I would probably work more on the styling, and additional strechgoals. | ||
|
||
## View it live | ||
|
||
Have you deployed your project somewhere? Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. | ||
https://guesswhoveras.netlify.app |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,45 +3,93 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Project Name</title> | ||
<title>Guess Who!</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body> | ||
<div id="startBox" class="start-box"> | ||
<img | ||
class="guess-who-icon" | ||
src="imagesnew/guessWhoLogoNew.png" | ||
alt="Guess Who" | ||
/> | ||
<h1>Hey Babe! Welcome to Guess Who!</h1> | ||
<p>Click the button below to start the game. <br> Remeber, I'll be taking the time until you confirm your guess! Good luck!!</p> | ||
<button id="startButton" class="filled-button">START GAME!</button> | ||
</div> | ||
|
||
<aside class="question-section"> | ||
|
||
<button type="button" id="restart" class="outlined-button">RESTART</button> | ||
|
||
<img | ||
class="guess-who-icon" | ||
src="images/guess-who-bubble.png" | ||
src="imagesnew/guessWhoLogoNew.png" | ||
alt="Guess Who" | ||
/> | ||
|
||
<h1>Does the person have</h1> | ||
|
||
<h1>Does the person have...</h1> | ||
<select title="questions" id="questions"> | ||
<option value="default" disabled selected >choose an attribute</option> | ||
<optgroup label="hair"> | ||
<option value="brown">brown hair</option> | ||
<option value="yellow">yellow hair</option> | ||
<!-- Add the rest of hair colors as options --> | ||
<option value="brown">brown hair?</option> | ||
<option value="blonde">blonde hair?</option> | ||
<option value="no">no hair?</option> | ||
<option value="black">black hair?</option> | ||
<option value="grey">grey hair?</option> | ||
<option value="white">white hair?</option> | ||
<option value="red">red hair?</option> | ||
<option value="very specific">very specific hair?</option> | ||
|
||
</optgroup> | ||
<optgroup label="eyes"> | ||
<option value="hidden">hidden eyes</option> | ||
<!-- Add the rest of eye colors as options --> | ||
<option value="brown">brown eyes?</option> | ||
<option value="blue">blue eyes?</option> | ||
<option value="haunting">haunting eyes?</option> | ||
</optgroup> | ||
|
||
<optgroup label="accessories"> | ||
<option value="glasses">glasses</option> | ||
<!-- Add the other accessory option here. (hat) --> | ||
<option value="glasses">glasses?</option> | ||
<option value="sunglasses">sunglasses?</option> | ||
<option value="a headpiece">a headpiece?</option> | ||
<option value="a dog">a dog?</option> | ||
<option value="jewelry">jewelry?</option> | ||
<option value="a weapon">a weapon?</option> | ||
<option value="a plan">a plan?</option> | ||
<option value="dollars">dollars?</option> | ||
</optgroup> | ||
|
||
<optgroup label="other"> | ||
<option value="smoker">a smoking habit</option> | ||
<option value="a smoking habit">a smoking habit?</option> | ||
<option value="a fashion habit">a fashion habit?</option> | ||
<option value="a magical habit">a magical habit?</option> | ||
<option value="a phone">braids?</option> | ||
<option value="a beard">a beard?</option> | ||
<option value="elf ears">elf ears?</option> | ||
<option value="a mustache">a mustache?</option> | ||
<option value="a striking complexion">a striking complexion?</option> | ||
</optgroup> | ||
</select> | ||
|
||
<button id="filter" class="filled-button">FIND OUT</button> | ||
|
||
<section class="time-section"> | ||
<h2>Your time: | ||
<span class="timer" id="timer">0</span> seconds | ||
</h2> | ||
</section> | ||
|
||
<section class="count-section"> | ||
<h2>Number of guesses: | ||
<span class="guess-container" id="guess-container">0</span> | ||
</h2> | ||
</section> | ||
|
||
</aside> | ||
|
||
<section class="board-wrapper"> | ||
|
@@ -52,11 +100,17 @@ <h1>Does the person have</h1> | |
<div class="win-or-lose"> | ||
<img | ||
class="guess-who-icon" | ||
src="images/guess-who-bubble.png" | ||
src="imagesnew/guessWhoLogoNew.png" | ||
alt="Guess Who" | ||
/> | ||
<h1 id="winOrLoseText"></h1> | ||
<button type="button" id="playAgain" class="filled-button">PLAY AGAIN</button> | ||
<section class="count-section"> | ||
<h2>Your number of guesses was: | ||
<span class="guess-container" id="win-or-lose-guess-container">0</span> | ||
</h2> | ||
</section> | ||
<h2 id ="winOrLoseTimer"></h2> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a great addition to show the user how many guesses they ended up making once the game has finished, great job! As a way of evolving the code next time you could try and add these parts through JS as well? But the Win or lose page looks amazing! Seeing the image of the guess there is also a great addition! |
||
</div> | ||
</section> | ||
<script src="script.js"></script> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love that you have added a timer and number of guesses! It made me really feel the pressure 😅 As a way of making things more "complex" next time you could try and add these part through Javascript? Just if you want to try and evolve the app 🥰