CodeYourFuture / CodeYourFuture/Module-Data-Groups

Build a slideshow app

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
🏝️ Priority Stretch 🐂 Size Medium 📅 Sprint 3 Module-Data-Groups Optional Submit:PR
Dominant language
JavaScript
Stars
1
Forks
326
Avg merge
3h 25m
Merged PRs (30d)
2

Description

### Link to the coursework

https://github.com/CodeYourFuture/Module-Data-Groups/tree/main/Sprint-3/slideshow

### Learning Objectives

- [ ] Develop a web app according to a specification
- [ ] Combine concepts covered in previous exercises

### Why are we doing this?

These challenges are designed to develop your problem-solving skills.

In this exercise you will build an app which shows one image at a time from a collection. It must meet the criteria below:

#### Acceptance criteria

- [ ] Given a web page with a carousel of images
When the page loads
Then the first image in the carousel should be displayed

- [ ] Given forward and back buttons
When the forward button is clicked
Then the next image in the carousel should be displayed
And
When the back button is clicked
Then the previous image in the carousel should be displayed

- [ ] Given at least 4 images in the carousel
When the user reaches the end of the carousel in either direction
Then the carousel should loop back to the first/last image

#### Advanced stretch functionality

- [ ] Given auto-forward and auto-back buttons
When the auto-forward button is clicked
Then the images should automatically advance every 5 seconds

- [ ] When the auto-back button is clicked
Then the images should automatically go back every 5 seconds

- [ ] Given the carousel is auto-advancing (in either direction)
When the stop button is clicked
Then the auto-advance/go back should stop

- [ ] Given the carousel is auto-advancing (in either direction)
When the forward button is clicked
Then the auto-advance should stop
And the next image should show
(next = stop + forward)

- [ ] Given the carousel is auto-advancing (in either direction)
When the back button is clicked
Then the auto-advance should stop
And the previous image should show
(back = stop + back)

### Maximum time in hours

4

### How to get help

General advice on asking for help can be found on the [curriculum pages](https://curriculum.codeyourfuture.io/guides/getting-help/asking-questions/).
You can always share your blockers in your class channel and get help from your colleagues.

### How to submit

1. Fork the coursework repo to your Github account.
2. Make a branch for this project.
3. Make regular small commits in this branch with clear messages.
4. When you are ready, open a PR to the CYF repo, following the instructions in the PR template.

There are several projects in this repo. [Make a new branch](https://simpledev.io/lesson/create-branch-gh-desktop-1) based on `main` for each project.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.