A Pen by Paloma Cortez on CodePen.
Last active
February 6, 2022 12:03
-
-
Save PalomaCortez/7ce27ff1776f41c76c7ea34dc82dbbc3 to your computer and use it in GitHub Desktop.
FCC landing Page chalenge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<header id="header"> | |
<div id="logo"> | |
<img id="header-img" src="https://image.flaticon.com/icons/png/512/110/110214.png" alt=""> | |
<h1> | |
Alexandria livros | |
</h1> | |
</div> | |
<nav id="nav-bar"> | |
<ul> | |
<a class="nav-link" href="#sobre">Sobre</a> | |
<a class="nav-link" href="#novidades">Novidades</a> | |
<a class="nav-link" href="#video">Video</a> | |
</ul> | |
</nav> | |
</header> | |
<main> | |
<h2 id="sobre">Alfarrabios online</h2> | |
<p>Conhecimento é muito importante e todos deveriam ter acesso seja na grande São Paulo ou em casinha de sapê no campo. Somos uma livraria virtual que busca divulgar a literatura por todo Brasil.</p> | |
<p>Nossos títulos abrangem romances, livros religiosos e de esoterismo, livros técnicos de diversas áreas.</p> | |
<div id="content"> | |
<h2 id="novidades">Assine para saber nossas novidades</h2> | |
<form action="submit_inquiry" id="form"> | |
<label for="email" id="email-label"> Email: </label> | |
<input type="email" id="email" name="email" placeholder="Enter your email" required> | |
<input type="submit" id="submit" value="submit" name="submit" ><action="https://www.freecodecamp.com/email-submit"> | |
</form> | |
</div> | |
<div id="video-div"> | |
<h2 id="video_book">Video</h2> | |
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/6nbrPJu-q6w" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | |
</div> | |
</main> | |
<!-- | |
User Story #13: The navbar should always be at the top of the viewport. | |
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !! 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
margin: 0; | |
paddin: 0; | |
} | |
body { | |
background-color: #FFFFE0; | |
text-align: center; | |
color: #1b1b1b; | |
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; | |
} | |
#header { | |
position: fixed; | |
width: 100%; | |
display: flex; | |
justify-content: space-between; | |
background: #FFF; | |
padding: 8px; | |
} | |
#logo { | |
display: flex; | |
background: #EBD6A7; | |
align-items: center; | |
padding: 8px; | |
border-radius: 4px; | |
} | |
#logo img { | |
height: 40px; | |
} | |
h1{ | |
color: #c4340d; | |
font-size: 20px; | |
} | |
#nav-bar { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-around; | |
text-align: right; | |
} | |
#nav-bar a { | |
color: #D4B584; | |
} | |
main { | |
padding: 16px; | |
} | |
h2{ | |
margin-top: 3em; | |
color: #c4340d; | |
font-size: 40px; | |
} | |
#content { | |
margin-bottom: 16px; | |
} | |
#video-div { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
} | |
#video { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
@media (min-width: 600px){ | |
main { | |
max-width: 590px; | |
margin: 0 auto; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FreeCodingCamp Chalenge - landing page
https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page