Skip to content

Instantly share code, notes, and snippets.

@redragon1
Last active November 6, 2018 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redragon1/2526b8e8f4825e3dbfc52df005fd998e to your computer and use it in GitHub Desktop.
Save redragon1/2526b8e8f4825e3dbfc52df005fd998e to your computer and use it in GitHub Desktop.
FCC: Product Landing Page Complete
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<header id="header">
<img id="header-img" alt="Xpress Electronics Logo" src="http://xpresscomputers.net/wp-content/uploads/2018/07/Logo-PNG-512.png">
<nav id="nav-bar">
</div>
<ul class="nav">
<li class="nav-item">
<home id="Home">Home</home>
<a class="nav-link" href="#Home">Home</a>
</li>
<li class="nav-item">
<contact id="Contact-Us">Contact Us</contact>
<a class="nav-link" href="#Contact-Us">Contact Us</a>
</li>
<li class="nav-item">
<about id="About-Us">About Us</about>
<a class="nav-link" href="#About-Us">About Us</a>
</ul>
</li>
<h2>Watch a quick video on how to install malwarebytes</h2>
<iframe id="video" class="video" src="https://www.youtube.com/watch?v=vQQbHGYewWU"></iframe>
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input name="email" id="email" type="email" placeholder="enter your email address">
<input id="submit" type="submit" value="Submit"></input>
// !! IMPORTANT README:
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.
/***********
INSTRUCTIONS:
- Select the project you would
like to complete from the dropdown
menu.
- Click the "RUN TESTS" button to
run the tests against the blank
pen.
- Click the "TESTS" button to see
the individual test cases.
(should all be failing at first)
- Start coding! As you fulfill each
test case, you will see them go
from red to green.
- As you start to build out your
project, when tests are failing,
you should get helpful errors
along the way!
************/
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!
// Once you have read the above messages, you can delete all comments.
img{
width: 150px;
}
nav {
display: block;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
#header {
position: fixed;
top: 0;
}
.top-nav {
width:100%;
overflow: hidden;
/* position: fixed; */
top: 0;
}
@media only screen and (max-width: 600px) {
body {
background-color: white;
}
.flex-container {
display: flex;
flex-direction: row;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.2/css/bootstrap.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment