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.
If you are not using VSCode you can install and run the "live-server" npm package following the list of commands:
- Use
npm i live-server
to install the live-server package - Use
npm run live-server
ornpx live-server --port=5551
to run the live-server. The port number should be 5551 strictly.
The live-server installation video: Video
The live-server NPM package page: Link
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 i
to install packages - Use
npm run browser-install
to install the browser environment for testing (~131mb will be downloaded) - (Windows users only) Use
npm run deps-install
to install playwright additional dependencies (~160mb will be downloaded)
- 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 test
to run all tests in the terminal - Use
npm run test-main
to run index.html file tests - Use
npm run test-modern-design
to run modern-design.html file tests - Use
npm run test-nature
to run nature.html file tests - Use
npm run test-plants
to run plants.html file tests - Use
npm run test-space
to run space.html file tests - (Optional) Use
npm run test-ui
to run all the tests with GUI - (Optional) Use
npm run show-report
to 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