Build a slideshow app

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

先从 issue 中链接的 Sprint-3/slideshow 课程作业开始,并在创建 app 入口点之前阅读其规范。构建图像轮播,以满足首张图像、导航、循环以及至少四张图像的要求;将定时控件视为扩展功能。在浏览器中手动验证每项验收标准。

由索引模型根据 Issue 内容生成。

描述

🏝️ Priority Stretch 🐂 Size Medium 📅 Sprint 3 Module-Data-Groups Optional Submit:PR
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.
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 based on main for each project.

主要语言
JavaScript
星标
1
派生
327
平均合并
3 天 7 小时
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeYourFuture/Module-Data-Groups 的其他 Issue

查看 CodeYourFuture/Module-Data-Groups 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。