In this assignment, you will be fixing the paths to service files, images, and pages of a Digital Art website. The website showcases modern frontend features, including mobile responsiveness using media queries, a Flexbox layout, mobile navigation, and CSS transparency.
To preview the app, simply click the "Go Live" button found in the VSCODE status bar. This will open your webpage in your browser.
After completing the assignment, feel free to explore the CSS and JS files to get a glimpse of the technologies you will learn in future modules of the Devslopes curriculum.
Make sure to watch the INTRO VIDEO before you start.
!!! NOTE: You will find the "TODO Tree" or the "TODO Highlight" VSCode extension really useful for this assignment, as it will highlight every "TODO" keyword in the commented lines of the files you need to update.
This assignment should prove that a student is able to:
- Use relative paths based on the current file location.
- Half step.
- Full step.
- Use absolute paths based on the project root.
- Link files to your static HTML document.
- CSS files.
- JS files.
- Images.
- Construct paths to navigate through pages of a static website.
- Link external pages to your Website.
- Fork the project to your github account
- Clone the project to your computer
- Open the project in VSCode with
code <cloned_repo_folder_name> - Initialize playwright and install project packages
- Use
npm ito install packages - Use
npm run browser-installto install the browser environment for testing
- Use
- All the tasks of the "Specific requirements" section MUST be solved
- The project's file/folder structure should NOT be edited!
- All the tests MUST pass. Fix the errors in case they don't BEFORE you submit (acceptance criteria)
- Use
npm run testto run all tests in the terminal - Use
npm run test-mainto run index.html file tests - Use
npm run test-modern-designto run modern-design.html file tests - Use
npm run test-natureto run nature.html file tests - Use
npm run test-plantsto run plants.html file tests - Use
npm run test-spaceto run space.html file tests - (Optional) Use
npm run test-uito run all the tests with GUI - (Optional) Use
npm run show-reportto see the latest report in the browser
- Use
- VSCode IDE MUST have 0 code problems listed (spelling problems are fine)
- The code MUST be formatted with Prettier
- Push the changes to the Github repo, when finished.
- Submit a txt file with the Github repo url.
For the index.html file:
- Connect the scripts.js file
- Connect the layout.css file
- Connect the images-list.css file
- Add the image file path for each gallery item's image
- Plants: plant-image.jpg
- Nature: nature-image.jpg
- Modern Design: design-image.jpg
- Space: space-image.jpg
- Add the detail page path for each gallery item's "Details" link:
- Plants: plants.html
- Nature: nature.html
- Modern Design: modern-design.html
- Space: space.html
- Add the detail page path for each top navigation item:
- Plants: plants.html
- Nature: nature.html
- Modern Design: modern-design.html
- Space: space.html
For each page:
- Connect the scripts.js file
- Connect the layout.css file
- Connect the image-detail.css file
- Add the path to the image to let it show up
- Plants: plant-image.jpg
- Nature: nature-image.jpg
- Modern Design: design-image.jpg
- Space: space-image.jpg
- Add the detail page path for each top navigation item:
- Plants: plants.html
- Nature: nature.html
- Modern Design: modern-design.html
- Space: space.html
- Add the path to the index.html file for the "Back to Home Page" link
- Add the absolute unsplash.com path to the collection page for the "More <collection-name> Images" link.
- Add the detail page path for each bottom navigation item:
- Plants: plants.html
- Nature: nature.html
- Modern Design: modern-design.html
- Space: space.html