The Logo Quiz is for people who would like to test their knowledge of logos, with questions ranging from the popular food chains to soccer teams and tech companies. The questions are picked up randomly by the system and 4 options are given to choose from, eliminating the frustration of any spelling mistake due to manual input or the itch of knowing the logo but not being able to come up with the brand it’s associated with.
The website is targeted towards any group of individuals interested in logos.
-
- The gradient background is based on three basic colors, LemonChiffon, PaleGreen and LightSkyBlue.
- The h1, h2 and h3 elements use LightPink color whereas the body fonts are HunterGreen.
-
- The Josefin Sans font is the main font used throughout the whole website with Sans Serif as the fallback font in case for any reason the font isn't being imported into the site correctly. The website header uses Indie Flower font with Cursive as backup.
- The Indie Flower font gives the heading a very playful and fun appearance.
- The body font of Josefin Sans is easy to read and is easy on the eyes, while providing a nice gaming experience.
-
- Displayed at the top of the webpage. Fonts and colours used for this are both playful and attractive to give off an ambience of fun and excitement.
- The colour sits perfectly against the body's gradient background and clearly mentions the game the user can engage with.
-
- The Game-Area section displays the logos of the various brands and options the user can select from. This area displays the game score too.
- When the page loads or the game resets, the user can only see the default image with score card at the bottom of the section.
- Once the user has chosen their desired game mode, the game area displays randomly selected brand's logo and 4 options associated with it.
- The user can select any one of the 4 options and click on the submit button.
- Once submitted, a message is displayed letting the user know whether their answer was correct or not. The Score is added accordingly.
- Once the game is over, another message displays telling the user that the game is over, showing the final score.
- The user can then reset the game manually and replay their desired game mode.
-
- The Game Mode card clearly shows the available game modes which a user can select and play.
- There are 3 modes, as mentioned in the card, Short, Medium and Long.
- The mode determines the number of questions that will be presented to the user and is mentioned in this section.
-
- The Game Mode selection buttons are available just below the Game Mode instruction card.
- The user can conveniently select any game mode they want to play according to their liking.
- If the user wants to reset the game at any time, they can easily do so by clicking on the Reset button and they can play again by choosing a game mode.
- Would like to add function to check that a question is not being repeated during one cycle of the chosen game mode. Would need a bit more time to work on this as it would be little more complicated.
- Google Fonts:
- Google fonts were used to import the 'Josefin Sans' and 'Indie Flower' fonts into the style.css file which is used on the website.
- ColorSpace:
- The body gradient and the font colors were picked from ColorSpace website, which also provided all the colors used in the gradient.
- Git
- Git was used for version control by utilizing the Gitpod terminal to commit to Git and Push to GitHub.
- GitHub:
- GitHub is used to store the project's code after being pushed from Git.
- Balsamiq:
- Balsamiq was used to create the wireframes during the design process.
The website has been tested on different devices and screen sizes, eg. a 21.5inch monitor, 15inch laptop screen, iPad, iPhone and Android devices. The website runs smoothly and generates appropriate results without any issues. The hover effect on the buttons works perfectly on the computer, the messages are displayed properly and the scores are added as intended. The images of the brand logos display nicely on all devices without any issue.
The W3C Markup Validator and W3C CSS Validator Services were used to validate every page of the project to ensure there were no syntax errors in the project.
The website was also tested through Lighthouse on Chrome for its Accessibility Score.
There were some issues with the diplay of the images at first, which got sorted by working on the image sizes. Also, there was an issue with the display of the result at the end, which was solved by using the setTimeout() method in the JavaScript.
The project was deployed to GitHub Pages using the following steps...
- Log in to GitHub and locate the GitHub Repository
- At the top of the Repository (not the top of the page), locate the "Settings" Button on the menu.
- On the Settings page, locate the "Pages" link on the left side, under the "Code and Automation" category.
- Under "Source", click the dropdown called "None" and select "Master Branch" or "Main".
- The page will automatically refresh.
- The new published website's address link will be displayed at the top of the "GitHub Pages" section.
-
- All the images used on the website are free-to-use provided by Unsplash and 1000Logos.
- The default image used on the website is hosted by Marcel Strauß on Unsplash
- The gradient was selected from ColorSpace website.
The solution for setting a time delay before next question is displayed was used from an article by James Hibbard published on SitePoint
- My mentor for continuous help and valuable feedback.
- Tutor support at Code Institute for their support.