freeCodeCamp/curriculum/challenges/chinese/01-responsive-web-design/responsive-web-design-projects/build-a-product-landing-pag...

39 lines
4.2 KiB
Markdown
Raw Normal View History

---
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>并通过所有测试。给它你自己的个人风格。您可以使用HTMLJavaScript和CSS来完成此项目。建议使用纯CSS因为这是迄今为止所涵盖的课程您应该使用纯CSS进行一些练习。如果您愿意可以使用Bootstrap或SASS。此项目不建议使用其他技术例如jQueryReactAngular或Vue使用它们需要您自担风险。其他项目将使您有机会使用不同的技术堆栈如React。我们将接受并尝试修复所有使用建议的技术堆栈的问题报告。快乐的编码 <strong>用户故事1</strong>我的产品登录页面应该有一个带有相应<code>id=&quot;header&quot;</code><code>header</code>元素。 <strong>用户故事2</strong>我可以在<code>header</code>元素中看到一个带有相应<code>id=&quot;header-img&quot;</code> 。公司徽标会在这里形成良好的形象。 <strong>用户故事3</strong><code>#header</code>元素中,我可以看到一个带有相应<code>id=&quot;nav-bar&quot;</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=&quot;video&quot;</code>的嵌入式产品视频。 <strong>用户故事7</strong>我的目标网页有一个<code>form</code>元素,其对应的<code>id=&quot;form&quot;</code><strong>用户故事8</strong>在表单中,有一个<code>id=&quot;email&quot;</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=&quot;submit&quot;</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>