NASA Responsive Mockup

Size
6,068 Kb
Views
20,240

How do I make an nasa responsive mockup?

What is a nasa responsive mockup? How do you make a nasa responsive mockup? This script and codes were developed by Chris Wachtman on 17 October 2022, Monday.

NASA Responsive Mockup Previews

NASA Responsive Mockup - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>NASA Responsive Mockup</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='container'> <div class='header'> <img class='logo' src='http://www.nasa.gov/sites/all/themes/custom/NASAOmegaHTML5/images/nasa-logo.png'> <div class='chunk group'> <h1>National Aironautics and Space Administration</h1> <input class='search'> </div> <ul class='menu group dropdown'> <li> <a href='#'>News</a> <ul class='sub_menu'> <li>News1</li> <li></li> <li></li> <li></li> <li></li> </ul> </li> <li>Missions</li> <li>Multimedia</li> <li>Social Media</li> <li>About NASA</li> <li>NASA for...</li> </ul> <div class='filter group'> <h3>Featured:</h3> <ul class='group'> <li> <a href='#'>Curiosity</a> </li> <li> <a href='#'>James Webb Telescope</a> </li> <li> <a href='#'>International Space Station</a> </li> <li> <a href='#'>Huble Photos</a> </li> <li> <a href='#'>Sage III</a> </li> <li> <a href='#'>Moon</a> </li> <li> <a href='#'>Sun</a> </li> <li> <a href='#'>Human Spaceflight</a> </li> </ul> <div class='more'>More Topics</div> </div> </div> <div class='feed'> <div class='sort'> <a class='active' href='#'>Popular</a> <span>/</span> <a href='#'>Latest</a> </div> <div class='item featured'> <div class='img'> <img src='https://24.media.tumblr.com/e0528f84276e8d4ff5a48050dc5cd254/tumblr_mq4ycgJDNP1qfoasdo1_1280.jpg'> </div> <h2>Title 1</h2> <p>Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper</p> </div> <div class='item'> <div class='img'> <img src='https://31.media.tumblr.com/aa2b6218cb7e0df31fe8b6804ca7b914/tumblr_mpk29vyHoa1qfoasdo1_1280.jpg'> </div> <h2>Title 2</h2> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.</p> </div> <div class='item'> <div class='img'> <img src='https://25.media.tumblr.com/3e75f54056700697c6cb4d237e727242/tumblr_mq79k1gZIW1rn4obco1_500.gif'> </div> <h2>Title 3</h2> <p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend %leo.</p> </div> <div class='item'> <div class='img'> <img src='https://31.media.tumblr.com/aa2b6218cb7e0df31fe8b6804ca7b914/tumblr_mpk29vyHoa1qfoasdo1_1280.jpg'> </div> <h2>Title 2</h2> <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.</p> </div> <div class='item'> <div class='img'> <img src='https://25.media.tumblr.com/3e75f54056700697c6cb4d237e727242/tumblr_mq79k1gZIW1rn4obco1_500.gif'> </div> <h2>Title 3</h2> <p>Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend %leo.</p> </div> </div> <div class='side'> <p>SIDE CONTENT</p> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

NASA Responsive Mockup - Script Codes CSS Codes

@charset "UTF-8";
.container { max-width: 1200px; margin: auto;
}
.header { width: 100%; background-position: bottom; background-color: black; color: white; box-shadow: 0 -2px 5px #333;
}
.header img.logo { position: absolute;
}
.header h1 { display: block; float: left; font-size: 120%; width: 380px; margin: 0; padding-left: 110px; padding-top: 9px; color: #ddd; box-sizing: border-box;
}
.header .search { float: right; width: 230px; height: 28px; margin: 0; margin-top: 20px; margin-right: 25px; font-size: 120%; box-shadow: inset 3px 2px 5px #888; border-radius: 2px; border: none;
}
.header .menu { margin: 9px 0 8px 109px; padding: 0; border-top: 1px solid grey; position: relative;
}
.header .menu li { display: block; float: left; padding: 8px 8px 0 8px; border-left: 1px solid grey; box-sizing: border-box;
}
.header .menu li:after { content: "▾"; font-size: 130%; line-height: 100%; padding: 5px;
}
.header .menu li:first-child { padding-left: 0; margin-left: 0; border-left: none;
}
.header .menu li ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; height: auto; z-index: 100; background: black;
}
.header .menu li.hover ul { display: block;
}
.header .filter { position: relative; display: block; height: 30px; white-space: no-wrap;
}
.header .filter h3 { float: left; margin: 0; padding: 5px 5px 5px 31px; font-size: 90%; line-height: 20px; color: black; background: rgba(224, 246, 255, 0.73);
}
.header .filter ul { margin: 0; padding: 0; margin-right: 200px; height: 30px; overflow: hidden; background: rgba(224, 246, 255, 0.73);
}
.header .filter li { float: left; display: block; padding: 7px; font-size: 80%;
}
.header .filter li a { color: black; text-decoration: none;
}
.header .filter .more { position: absolute; top: 0; right: 0; width: 200px; height: 30px; line-height: 160%; text-align: center; background: rgba(100, 100, 255, 0.5);
}
.header .filter .more:after { content: "▾"; font-size: 130%; padding: 5px;
}
.feed { width: 60%; float: left;
}
.feed .sort { color: #09e; font-size: 115%; line-height: 30px;
}
.feed .sort a { color: #09e; text-decoration: none;
}
.feed .sort a.active { color: grey;
}
.feed .item { width: 98%; margin: 5px 2% 5px 0%; background: white; border: 1px solid lightgrey; box-shadow: 1px 2px 2px #bbb; float: left; overflow: hidden;
}
.feed .item .img { width: 26%; float: left; margin: 10px 2%;
}
.feed .item:nth-child(2n) .img { float: right;
}
.feed .item:nth-child(2n) h2 { margin: 10px 0 10px 2%;
}
.feed .item:nth-child(2n) p { margin: 0px 0 5px 2%;
}
.feed .item img { width: 100%;
}
.feed .item h2 { width: 65%; margin: 10px 2% 10px 0; height: auto; float: left;
}
.feed .item p { width: 65%; margin: 0px 2% 5px 0; height: auto; float: left;
}
.feed .item.featured img { width: 100%;
}
.feed .item.featured .img { width: 96%; max-height: 400px; overflow: hidden; margin-bottom: 0;
}
.feed .item.featured h2 { width: 95%; margin: 10px 2%;
}
.feed .item.featured p { width: 95%; margin: 0 2% 5px;
}
.side { width: 40%; height: 1000px; background: lightgrey; float: left;
}
.group:after { content: ""; display: table; clear: both;
}
@media (max-width: 1200px) { .container { padding: 0 10px; }
}
@media (max-width: 820px) { .header h1 { width: 100%; } .header .search { width: 100%; max-width: 200px; margin-right: 3%; } .header .menu { width: 100%; margin: 10px 0 0 0; padding: 0; } .header .menu li { width: 33.3333%; padding: 8px 2%; border: 1px solid grey; border-left: none; border-top: none; } .header .menu li:first-child { padding-left: 2%; } .header .menu li:after { display: none; }
}
@media (max-width: 700px) { .feed, .side { width: 100%; } .feed .item { width: 100%; margin-right: 0; }
}
@media (max-width: 420px) { .header .menu li { width: 50%; }
}

NASA Responsive Mockup - Script Codes JS Codes

$(function(){ $("ul.dropdown li").hover(function(){ $(this).addClass("hover"); //$('ul:first',this).css('visibility', 'visible'); }, function(){ $(this).removeClass("hover"); //$('ul:first',this).css('visibility', 'hidden'); }); $("ul.dropdown li ul li:has(ul)").find("a:first").append(" &raquo; ");
});
NASA Responsive Mockup - Script Codes
NASA Responsive Mockup - Script Codes
Home Page Home
Developer Chris Wachtman
Username cwacht
Uploaded October 17, 2022
Rating 3
Size 6,068 Kb
Views 20,240
Do you need developer help for NASA Responsive Mockup?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Chris Wachtman (cwacht) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!