W02 Assignment: Picture Album
Overview
This assignment applies the concepts presented in the learning activities to a picture album page that is responsive in small and larger views. This page will utilize a 'hamburger' menu and respond to user requests.
Associated Course Learning Outcomes
Develop responsive web pages that follow best practices and use valid HTML and CSS.
Demonstrate proficiency with JavaScript language syntax.
Use JavaScript to respond to
events and dynamically modify HTML.
Task
Design, develop, test, and then deploy a temple album page using your own selections of temple pictures.


Demonstration of Responsive Behavior

Instructions
File and Folder Setup
- In VS Code, open the wdd131 local repository folder.
- Create a new file named "temples.html".
- Add two CSS files named "temples.css" and "temples-large.css" to the "styles" directory.
- Add a JavaScript file named "temples.js" to the "scripts" directory.
HTML
- In the temples.html document, include the standard HTML document and
<head>
elements.Refer to the development standards if you need a review.
- Add links to the CSS files in the proper order to support mobile first dev.
- Add a deferred
<script>
reference to the JavaScript file. - In the
<body>
, create a basic layout using a header, a main, and a footer as main line elements. - The
<header>
element contains:- text that says "Temple Album"
- a
<nav>
menu with the following text links:- Home
- Old
- New
- Large
- Small
- The
<main>
element contains the following:- an
<h1>
heading element - at least (9)
<figure>
elements with temple images and captions. Use the built-in figure captions elements and name the templeIt is OK to have a single placeholder temple image at this point in the course.
- an
- The
<footer>
contains the same dynamic and static information found on your home page from last week.Screenshot Example of Common Footer
CSS
Use the external temples.css and temples-large.css files to layout and style the page as shown is the example screenshots. Your design must support a responsive view in mobile and larger views.
The temples.css file is used for the mobile view and the temples-large.css
file is used for the larger view.
Most of your CSS should be located in the temples.css file
in
mobile first design.
- Use your own color schema.
Please note: You are responsible to practice good design principles of alignment, color contrast, proximity, repetition, and consistent white space.
- Use your own typography choice by using the Google Fonts API service to select one or two fonts to use on the page.
Video Demonstration: ▶️ Using Google Fonts – [ 1:56 minutes ]
- Use CSS Flex on the navigation nav.
Video Demonstration: ▶️ CSS Flex Navigation Menu – [ 7:58 minutes ]
CodePen ☼ Navigation Menu using CSS Flex - The navigation must employ a hover affect. See the CodePen
above for an example.
Check Your Understanding
Consider using thehover
pseudo-class to change the design for the menu item that has the focus.nav a:hover { ... }
- The main element has a limited width and is centered on the screen
horizontally.
Check Your Understanding
Consider using themax-width
property to limit the width andmargin
property to center the main element on the screen./* This is only an example to consider */ main { max-width: 800px; margin: 0 auto; }
- Layout the main column
figure
elements using CSS Grid. In the mobile view, there should only be one (1) column.The application of CSS Grid to support a responsive view is up to you.
Some of the options could be:- use
grid-template-column
specificfr
changes in the media query - use
grid-template-column
property with arepeat
function andauto-fit
andminmax
function.CodePen ☼ Grid Column Layouts and Image Effects
Look at the CSS for the .container class.
- use
JavaScript
To improve organization and maintainability, it is required to place all JavaScript code in external files.
- Support the
footer
copyright year and date last modified output through a valid JavaScript reference. You already have one or could use the temples.js file. - Apply a responsive hamburger effect to your existing navigation menu using JavaScript.
- The hamburger button should only show in the mobile view.
- Clicking the hamburger button toggles the navigation menu items from viewable to not viewable.
- Use a symbol, such as an 'X' to close the hamburger menu.
Testing
- Continuously check your work by rendering the page locally using Live/Five Server in VS Code.
-
- Use DevTools CSS Overview to check your color contrast.
- Generate the DevTools Lighthouse report and run diagnostics for
Accessibility, Best Practices, and SEO in both the
mobile and desktop views.
It is best to test your page in a Private or Incognito browser window.
- Hard reload the page using Empty Cache and Hard Reload in DevTools with the
Network tab open to view the total transferred bytes at the bottom of the tab. Check that the
page is 500 kB or less.
- Make sure that all images are optimized.
- Do not use third party libraries that bloat your page's size with unused features and code.
Audit and Submission
- Commit your local repository and push or upload your work to your GitHub Pages enabled
wdd131
repository on GitHub. - Use this ☑️ audit tool to check basic HTML and CSS standards and requirements.
- Share your work by posting your URL in the course's Microsoft Teams weekly forum and comment on your peers' work by providing constructive feedback.
- Return to Canvas and submit the correct GitHub Pages enabled URL.
https://your-github-username.github.io/wdd131/temples.html