Skip to content

Instantly share code, notes, and snippets.

@levent1ozgur
Created April 15, 2022 20:55
Show Gist options
  • Select an option

  • Save levent1ozgur/110540cc4c02734cec6e75fa3e283b04 to your computer and use it in GitHub Desktop.

Select an option

Save levent1ozgur/110540cc4c02734cec6e75fa3e283b04 to your computer and use it in GitHub Desktop.
fcc landing page
<!DOCTYPEhtml>
<html>
<head>
<title>PizzaBae</title>
</head>
<body>
<header id="header">
<nav id="nav-bar">
<ul>
<li><a class="nav-link" href="#">Home</a></li>
<li><a class="nav-link" href="#">Recipes</a></li>
<li><a class="nav-link" href="#">Contact Us</a></li>
</ul>
</nav>
<img id="header-img" src="https://images.vexels.com/media/users/3/131778/isolated/preview/2f58b79f41ddd2cf40e188c533a7f751-pizza-logo-template-by-vexels.png">
</header>
<div class="flex-container">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/sv3TXMSv6Lw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>"
<form>
<input type="email" name="email" id="email" placeholder="Subscirbe our delicious recipes" required>
<a href=" https://www.freecodecamp.com/email-submit"><input type="submit" id="submit" value="Subscribe"/></a>
</form>
</div>
</body>
</html>
body{
background-image: url('http://pomodoropizza.co.za/wp-content/uploads/pizza-background.jpg');
font-family:Arial, Helvetica, sans-serif;
font-weight:bold;
}
#header-img{
width:10%;
background-color:#c4435f;
border-radius:50%;
float:right;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
background-color: #333;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #c4435f;
}
.flex-container {
display: flex;
height: 800px;
justify-content: center;
align-items: center;
flex-direction: column;
}
#email{
width:14em;
}
#submit:hover{
background-color:#c4435f;
color:white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment