39 lines
4.2 KiB
Markdown
39 lines
4.2 KiB
Markdown
|
---
|
|||
|
id: 587d78af367417b2b2512b04
|
|||
|
title: Build a Product Landing Page
|
|||
|
isRequired: true
|
|||
|
challengeType: 3
|
|||
|
videoUrl: ''
|
|||
|
localeTitle: 建立产品登陆页面
|
|||
|
---
|
|||
|
|
|||
|
## Description
|
|||
|
<section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">CodePen.io</a>应用程序: <a href="https://codepen.io/freeCodeCamp/full/RKRbwL" target="_blank">https</a> <strong>:</strong> <a href="https://codepen.io" target="_blank">//codepen.io/freeCodeCamp/full/RKRbwL</a> 。完成以下<a href="https://en.wikipedia.org/wiki/User_story" target="_blank">用户故事</a>并通过所有测试。给它你自己的个人风格。您可以使用HTML,JavaScript和CSS来完成此项目。建议使用纯CSS,因为这是迄今为止所涵盖的课程,您应该使用纯CSS进行一些练习。如果您愿意,可以使用Bootstrap或SASS。此项目不建议使用其他技术(例如jQuery,React,Angular或Vue),使用它们需要您自担风险。其他项目将使您有机会使用不同的技术堆栈,如React。我们将接受并尝试修复所有使用建议的技术堆栈的问题报告。快乐的编码! <strong>用户故事#1:</strong>我的产品登录页面应该有一个带有相应<code>id="header"</code>的<code>header</code>元素。 <strong>用户故事#2:</strong>我可以在<code>header</code>元素中看到一个带有相应<code>id="header-img"</code> 。公司徽标会在这里形成良好的形象。 <strong>用户故事#3:</strong>在<code>#header</code>元素中,我可以看到一个带有相应<code>id="nav-bar"</code>的<code>nav</code>元素。 <strong>用户故事#4:</strong>我可以在<code>nav</code>元素中看到至少三个可点击的元素,每个元素都有一个<code>nav-link</code>类。 <strong>用户故事#5:</strong>当我点击<code>nav</code>元素中的<code>.nav-link</code>按钮时,我将被带到目标网页的相应部分。 <strong>用户故事#6:</strong>我可以观看<code>id="video"</code>的嵌入式产品视频。 <strong>用户故事#7:</strong>我的目标网页有一个<code>form</code>元素,其对应的<code>id="form"</code> 。 <strong>用户故事#8:</strong>在表单中,有一个<code>id="email"</code>的<code>input</code>字段,我可以在其中输入电子邮件地址。 <strong>用户故事#9:</strong> <code>#email</code>输入字段应该有占位符文本,让用户知道该字段的用途。 <strong>用户故事#10:</strong> <code>#email</code>输入字段使用HTML5验证来确认输入的文本是电子邮件地址。 <strong>用户故事#11:</strong>在表单中,有一个提交<code>input</code> ,其对应的<code>id="submit"</code> 。 <strong>用户故事#12:</strong>当我单击<code>#submit</code>元素时,电子邮件将被提交到静态页面(使用此模拟URL: <a href="https://www.freecodecamp.com/email-submit" target="_blank">https</a> : <code>#submit</code> ),确认已输入电子邮件地址,并且它发布成功。 <strong>用户故事#13:</strong>导航栏应始终位于视口的顶部。 <strong>用户故事#14:</strong>我的产品登录页面应至少有一个媒体查询。 <strong>用户故事#15:</strong>我的产品登陆页面应至少使用一次CSS flexbox。您可以通过分叉<a href="http://codepen.io/freeCodeCamp/full/MJjpwO" target="_blank">此CodePen笔</a>来构建项目。或者您可以使用此CDN链接在您喜欢的任何环境中运行测试: <code>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</code> : <code>https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js</code>完成后,将URL提交给您的工作通过所有测试的项目。如果卡住,请记住使用<a href="https://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck/19514" target="_blank">Read-Search-Ask</a>方法。 </section>
|
|||
|
|
|||
|
## Instructions
|
|||
|
<section id="instructions">
|
|||
|
</section>
|
|||
|
|
|||
|
## Tests
|
|||
|
<section id='tests'>
|
|||
|
|
|||
|
```yml
|
|||
|
tests: []
|
|||
|
|
|||
|
```
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Challenge Seed
|
|||
|
<section id='challengeSeed'>
|
|||
|
|
|||
|
</section>
|
|||
|
|
|||
|
## Solution
|
|||
|
<section id='solution'>
|
|||
|
|
|||
|
```js
|
|||
|
// solution required
|
|||
|
```
|
|||
|
</section>
|