Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<div id="main">
	<header id="header">
		<figure >
			<img id="header-img" src="https://www.booknownow.com.ng/wp-content/uploads/2017/12/LOGO.png" alt="BookNowNow logo">
			
		</figure>
		<nav id="nav-bar">
			<div class="menu"><a href="#intro" class="nav-link">Home</a></div>
			<div class="menu"><a href="#about" class="nav-link">About</a></div>
			<div class="menu"><a href="#prduct-main" class="nav-link">Product</a></div>
		</nav>
		
	</header>
	<div id="intro">
		<div id="booknownow">
			<h1>BookNowNow</h1>
			<h3>Book Our Accommodation in secure environment</h3>
		</div>
		
		<video id="video" width="400px" height="400px" controls >
			<source src="https://r4---sn-5hne6n7z.googlevideo.com/videoplayback?expire=1599769551&ei=bzdaX766DMLKkgboqa2oAQ&ip=205.185.223.165&id=o-AMGIWFo-lY0Bml-vPlvrWkAlSVY2mY0mBYllvi2BDRn2&itag=22&source=youtube&requiressl=yes&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=366.062&lmt=1582077364280244&fvip=4&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhALYYeKudvqOKd4fv83DDlCnkVy4Skzn2Z2mWV05U2fE3AiA6KiPeDaXRpSnB_v96eN4zpSMKeywsxD5lhgHAgTx7iQ%3D%3D&contentlength=11422189&video_id=22bM6LVp96k&title=HTML+and+CSS+Tutorial+Num+1&rm=sn-nx5sk7z&req_id=755e036146dda3ee&ipbypass=yes&cm2rm=sn-huoob-avnl7e,sn-avns7z&redirect_counter=3&cms_redirect=yes&mh=vy&mip=197.210.64.185&mm=34&mn=sn-5hne6n7z&ms=ltu&mt=1599747885&mv=m&mvi=4&pl=24&lsparams=ipbypass,mh,mip,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRQIhAK5Z0-aJbW9hjlpITGvLpClqoVCOsxtOTaJiVOv_H4pRAiALgaHALdoR1dbVxvema2L6Ze2oMOv1vu3V0ovNb20H5g%3D%3D" type="video/mp4" />
			

		</video>
	
		
		
	
	</div>
	<div id="form-div" >
		<p>Enter you email to subscribe to our weekly Newsletters</p>
		<form id="form" action="https://www.freecodecamp.com/email-submit">
			<div><label for="email">Email</label><input type="email" id="email" placeholder="enter a valid email address" name="email"></div>
			<div><input type="submit" id="submit" value="subscribe"></div>
		
		</form>
	
	</div>
	<div id="prduct-main">
	<h2>Our Subscriptions</h2>
		<p class="pmain">select your plan</p>
	<div id="product-container">
		
		<div class="products">
			<h3>Beginner <p>&#8358;2000/month</p></h3>
			<ul>
				<li>Free Support</li>
				<li>No premium tools</li>
				<li>No Express Book</li>
			</ul>
			
			<button class="button-plans">Select</button>
			
		</div>
		<div class="products">
			<h3>Premium<p><s>&#8358;3500     </s>&#8358;3000/month</p></h3>
			<ul>
				<li>Free Support</li>
				<li>Premium tools</li>
				<li>No Express Book</li>
			</ul>
			
			<button class="button-plans">Select</button>
			
		</div>
		<div class="products">
			<h3>Express <p><s>&#8358;9500     </s>&#8358;8000/month</p></h3>
			<ul>
				<li>Free Support</li>
				<li>No premium tools</li>
				<li>Express Book</li>
			</ul>
			
			<button class="button-plans">Select</button>
			
		</div>
			
		</div>
		</div>
		<div id="about">
			<h2>About</h2>
			<p>BookNowNow is a subsidiary of M2jTopTech Group (MG) a vast and fast growing company with many subsidiaries ranging from the world of technology to farming. Visit M2jTopTech Group for more details.
BookNowNow was primarily designed to aid students book off-campus accommodation with ease and without being in the school. The site is designed to provide all the information of the houses like the price, location, closeness to the nearest campus, the environment in general and other vital information require before one rent a building.
Aside this primary objective, the site has transformed to rendering the following services:-
 Online payment to ease stress of the bank.
 Selling of both old and new Items. Read how to sell on BNN.
 Cleaning of the booked room a day before arrival to the school (optional).
 Buying of items like furniture, decors, or anything you want to buy in to the room to make you feel at home immediately you arrive.(optional)
 Tour round the school (optional).
We are just here for you, so enjoy all our services but note terms and condition might apply and you will be told upon request for the service
BookNowNow was founded by Sule Muhammed Abba, a formal student of Federal University of Technology Minna during his under graduate program inn 2016. It is company dedicated to finding good, secure, comfortable and seecured accommodations for students of FUTMx. BookNowNow since that 2016 has gone along way to reucing drastically the accommodation problems faced by students especially freshers. BookNowNow as a company is not only concerned with the accommodation of the students but also their performance. That is why we have several tools to the aid the students in their school acivities. some of this tools includes;
Online E-Exam practice center.
student’s article rewriter
grammer checker
room mates match 
sales of student’s properties etc
OUR VISION
To provide a world class technology aimed at reducing the stress of the students drastically in </p>
		
		</div>
		<div id="copyright">&copy BookNowNow 2020</p>
		<a href="#main">To top</a>
		<a href="#prduct-main">plans</a>
		</div>
	
	</div>
	
	
	
</div>
              
            
!

CSS

              
                	body{
			position:absolute;
			left:0;
			right:0;
			top:0;
			bottom:0;
			margin:auto;
			background-image:url("https://images.unsplash.com/photo-1489843704329-b420d20a0b43?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=1000&q=80");
	}
	#main{
			position:absolute;
			left:0;
			right:0;
			top:0;
			bottom:0;
			margin:auto;
			width:90%;
			
			
			box-shadow:10 10 10 10 gray;
			z-index:-1;
			
			
			
	}
header{
		display:flex;
		flex-direction:row;
		justify-content:space-between;
	
		background-color:white;
		position:fixed;
		top:0;
		left:0;
		right:0;
		
		width:100%;
		height:10vh;
		z-index:1;
		
}
#nav-bar{
			display:flex;
			flex-direction:row;
			
			flex-basis:40%;
			justify-content:space-between;
			padding-right:20px;
			font-size:20px;
			padding-top:20px;
			z-index:4;
			
	

}
figure{
		
		height:70px;
		text-align:left;
}
img{
		height:100px;
		width:200px;
		margin-top:-30px;
		
		
}
a{
		text-decoration:none;
		
	
		
		text-align:center;
		padding:20px;
		
		
}
a:hover,#submit{
				border-right:solid 2px green;
				border-left:solid 2px green;
				color:green;
}
#intro{
		
		display:flex;
		flex-direction:row;
		justify-content:space-between;
		width:100%;
		height:90vh;
		background-color:white;
		opacity:0.7;
		text-align:center;
	
		
		
	
	
		
}
#form-div{
		position:fixed;
		bottom:0;
		right:0px;
		width:20vw;
		background-color:white;
		z-index:3;
		padding:0px;
		text-align:center;
		border:solid green 2px;
		
		border-radius:10px 0 0 0;
}
#form-div p{
				background-color:green;
				color:white;
				width:100%;
				margin-top:0;
				margin-left:0px;
}
form{
		margin:10px;
}
input{
		margin:10px;
}
button{	
		background:green;
		color:white;
}
#product-container{
					background-color:white;
					padding:30px;
					display:flex;
					flex-direction:row;
					justify-content:space-between;
					
}
#product-container h2,#product-container p{

								color:white;
								
}
#prduct-main{
					background:linear-gradient(90deg, white, green);
					margin-top:-2%;
					
					}
#prduct-main h2, #prduct-main .pmain{
								color:white;
								
}
		
#prduct-main h2, #prduct-main p{
									text-align:center;
									width:100%
									color:white;
}
.products{
			border:solid 2px green;
			box-shadow:5px 5px 5px 5px gray;
			padding:10px 30px;
			padding:0;
			width:30%;
			border-radius:2px 2px 0 0;
}
.products h3, .products h3 p{
				background:green;
				color:white;
				text-align:center;
				width:100%;
				margin-top:0;

			
}
.button-plans{
			margin-left:40%;
			width:100%
			text-align:center;
			height:40px;
			width:80px;
			margin-bottom:30px;
			
}
#copyright{		display:flex;
				flex-direction:row;
				background:black;
				color:white;
				margin-bottom:0;
				margin-top:50px;
				text-decoration:italic;
				
}
#copyright a{
				margin-top:-20px;
				color:white;
}
#booknownow{
			margin:4% 0 0 30px;
			display:block;
			color:green;
}
#booknownow h1{
					font-size:100px;
}
video{
		margin:10% 10% 0 0;
		width:30%
		
}
#about{
		background:white;
		line-height:30px;
		padding:50px;
		text-align:justify;
		margin-bottom:-50px;
	
}



@media only screen and (max-device-width: 480px)

				#intro{
					flex-direction:column;
				}
				#prduct-main{
					flex-direction:column;	
				
				}


}
              
            
!

JS

              
                // !! 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. 

              
            
!
999px

Console