Prototype Responsive Homepage

Developer
Size
7,677 Kb
Views
50,600

How do I make an prototype responsive homepage?

Responsive nav, logo, hero, and moar! Prototype of a responsive design. Resize your browser, or check it out on your mobile device, it's all good. . What is a prototype responsive homepage? How do you make a prototype responsive homepage? This script and codes were developed by Olivia Cheng on 22 July 2022, Friday.

Prototype Responsive Homepage Previews

Prototype Responsive Homepage - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Prototype Responsive Homepage</title> <meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
/*VARIABLES*/
/*BODY STYLING*/
body { font-family: 'Open Sans'; font-weight: 300; font-size: 1em; color: #444;
}
a { text-decoration: none; transition: all 0.3s ease-out;
}
a:hover { cursor: pointer;
}
a.more:after { content: '\00A0 \00BB';
}
/*HEADER & NAVIGATION*/
#logo { display: inline-block; position: absolute; width: 15em; height: 4em; margin: .9em 1em; background: url('https://googledrive.com/host/0B7X-QoPb9Q0eeUUybHl0OV81WVU/bumf-logo.png') no-repeat; background-size: 100%; color: transparent;
}
header { background: #333333; font-size: .85em; color: #fff;
}
header a { color: #fff;
}
a.menu-link { float: right; display: block; padding: 1.5em; text-decoration: none; background: #222;
}
nav[role=navigation] { clear: both; transition: all 0.3s ease-out; background: #333333; border-bottom: 4px solid #8dc63f;
}
.js nav[role=navigation] { overflow: hidden; max-height: 0;
}
nav[role=navigation].active { max-height: 25em;
}
nav[role=navigation] ul { margin: 0; padding: 0; border-top: 4px solid #8dc63f;
}
nav[role=navigation] li a { display: block; padding: 1.5em; border-bottom: 1px dotted #666; text-decoration: none; transition: background-color 0.15s ease-in;
}
nav[role=navigation] li a:hover { background: #8dc63f; text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}
/*FOOTER*/
footer { clear: both; background: #333; font-size: .85em; color: #fff;
}
footer p { padding: 2em; margin: 0;
}
/*HERO*/
section.hero { position: relative; background: #999 url('http://farm4.staticflickr.com/3326/4574437148_da3745a14d_b.jpg') center no-repeat; background-size: cover; height: 300px; width: 100%; color: #222;
}
section.hero .welcome { position: absolute; width: 100%; bottom: 0; background: rgba(141, 198, 63, 0.75);
}
section.hero .welcome h1 { font-size: 1em; font-weight: 300; margin: 2em;
}
section.hero .welcome h1 a { color: #fff;
}
section.hero .welcome h1 a:hover { border-bottom: 1px dotted #fff;
}
/*ASIDES*/
aside { width: 100%; border-bottom: 1px solid #eee;
}
aside.events { background: #e5e5e5;
}
aside article { padding: 2em;
}
aside article h2 { font-weight: 400; padding-bottom: 1em; marging-bottom: 1em; border-bottom: 1px dotted #8dc63f;
}
aside article .post { background: ;
}
aside article .post h3 { margin: 0;
}
aside article .post p { margin-top: .25em;
}
aside article a.more { color: #8dc63f; font-weight: 400;
}
aside article a.more:hover { border-bottom: 1px dotted #8dc63f; color: #7aab37;
}
aside a.btn { display: block; width: 15.5em; background: #8dc63f; text-align: center; padding: 1em; color: #fff; font-weight: 400; border-radius: 3px;
}
aside a.btn:hover { background: #7aab37;
}
/*MEDIA QUERIES*/
@media screen and (min-width: 48.25em) { #logo { width: 22em; margin: .4em 1em; } a.menu-link { display: none; } .js nav[role=navigation] { max-height: none; } nav[role=navigation] ul { text-align: center; margin: 0 0 0 -0.25em; border: 0; float: right; } nav[role=navigation] li { display: inline-block; margin: 0 0.25em; } nav[role=navigation] li a { border: 0; } section.hero { height: 400px; } section.hero .welcome { width: 50%; max-width: 40em; bottom: 3em; } section.hero h1 { font-size: 1em; margin: 1.5em; } aside { float: left; width: 32%; border-bottom: 0; } aside.events { background: #e5e5e5; } aside.happening { border-right: 1px solid #eee; } aside article { padding: 2em; } aside article h2 { font-weight: 400; } aside a.btn { width: 85%; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <header> <a class='menu-link' href='#menu'> + </a> <a href='#' id='logo'> BU Microfinance </a> <nav id='menu' role='navigation'> <ul> <li> <a href='#'> About </a> </li> <li> <a href='#'> Posts </a> </li> <li> <a href='#'> Resources </a> </li> <li> <a href='#'> Contact </a> </li> </ul> </nav>
</header>
<section class='hero'> <div class='welcome'> <h1> Binghamton Microfinance Connection is a student group at Binghamton University dedicated to spreading awareness of microfinance as a way to alleviate world poverty. <a class='more' href='#'> Learn More </a> </h1> </div>
</section>
<section> <aside class='events'> <article> <h2> Upcoming Events </h2> <h3> $2 Dollar Challenge </h3> <p> Are you ready for the $2 challenge? It's exactly what you think it is. For two days, you will only be allowed to spend two dollars per day for food. Final rules will be announced later on Friday. </p> <p> We are looking for brave men and women to join us in this unique journey of awareness, activism and empathy for the global poor. </p> <a class='btn' href='#'> Sign Up </a> </article> </aside> <aside class='happening'> <article> <h2> What's Happening </h2> <h3> General Meeting 2/28 </h3> <p> Remember everyone there is a meeting right now in Student Wing 321! </p> <p> Our meeting today is about social business. If you don't get to attend, watch this video demonstrating how businesses can be created to make a social impact, especially when the 'Invisible Hand' doesn't help. <a class='more'>More</a> </p> </article> </aside> <aside> <article> <h2> Articles </h2> <div class='post'> <h3> Summer Semester Abroad </h3> <p> We also make microloans to entrepreneurs in other countries through peer to peer lending sites such as Kiva. <a class='more'>More</a> </p> </div> <div class='post'> <h3> Microloans Title </h3> <p> We also make microloans to entrepreneurs in other countries through peer to peer lending sites such as Kiva. <a class='more'>More</a> </p> </div> </article> </aside>
</section>
<footer> <p> Binghamton Microfinance Connection </p>
</footer> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Prototype Responsive Homepage - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
/*VARIABLES*/
/*BODY STYLING*/
body { font-family: 'Open Sans'; font-weight: 300; font-size: 1em; color: #444;
}
a { text-decoration: none; transition: all 0.3s ease-out;
}
a:hover { cursor: pointer;
}
a.more:after { content: '\00A0 \00BB';
}
/*HEADER & NAVIGATION*/
#logo { display: inline-block; position: absolute; width: 15em; height: 4em; margin: .9em 1em; background: url('https://googledrive.com/host/0B7X-QoPb9Q0eeUUybHl0OV81WVU/bumf-logo.png') no-repeat; background-size: 100%; color: transparent;
}
header { background: #333333; font-size: .85em; color: #fff;
}
header a { color: #fff;
}
a.menu-link { float: right; display: block; padding: 1.5em; text-decoration: none; background: #222;
}
nav[role=navigation] { clear: both; transition: all 0.3s ease-out; background: #333333; border-bottom: 4px solid #8dc63f;
}
.js nav[role=navigation] { overflow: hidden; max-height: 0;
}
nav[role=navigation].active { max-height: 25em;
}
nav[role=navigation] ul { margin: 0; padding: 0; border-top: 4px solid #8dc63f;
}
nav[role=navigation] li a { display: block; padding: 1.5em; border-bottom: 1px dotted #666; text-decoration: none; transition: background-color 0.15s ease-in;
}
nav[role=navigation] li a:hover { background: #8dc63f; text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}
/*FOOTER*/
footer { clear: both; background: #333; font-size: .85em; color: #fff;
}
footer p { padding: 2em; margin: 0;
}
/*HERO*/
section.hero { position: relative; background: #999 url('http://farm4.staticflickr.com/3326/4574437148_da3745a14d_b.jpg') center no-repeat; background-size: cover; height: 300px; width: 100%; color: #222;
}
section.hero .welcome { position: absolute; width: 100%; bottom: 0; background: rgba(141, 198, 63, 0.75);
}
section.hero .welcome h1 { font-size: 1em; font-weight: 300; margin: 2em;
}
section.hero .welcome h1 a { color: #fff;
}
section.hero .welcome h1 a:hover { border-bottom: 1px dotted #fff;
}
/*ASIDES*/
aside { width: 100%; border-bottom: 1px solid #eee;
}
aside.events { background: #e5e5e5;
}
aside article { padding: 2em;
}
aside article h2 { font-weight: 400; padding-bottom: 1em; marging-bottom: 1em; border-bottom: 1px dotted #8dc63f;
}
aside article .post { background: ;
}
aside article .post h3 { margin: 0;
}
aside article .post p { margin-top: .25em;
}
aside article a.more { color: #8dc63f; font-weight: 400;
}
aside article a.more:hover { border-bottom: 1px dotted #8dc63f; color: #7aab37;
}
aside a.btn { display: block; width: 15.5em; background: #8dc63f; text-align: center; padding: 1em; color: #fff; font-weight: 400; border-radius: 3px;
}
aside a.btn:hover { background: #7aab37;
}
/*MEDIA QUERIES*/
@media screen and (min-width: 48.25em) { #logo { width: 22em; margin: .4em 1em; } a.menu-link { display: none; } .js nav[role=navigation] { max-height: none; } nav[role=navigation] ul { text-align: center; margin: 0 0 0 -0.25em; border: 0; float: right; } nav[role=navigation] li { display: inline-block; margin: 0 0.25em; } nav[role=navigation] li a { border: 0; } section.hero { height: 400px; } section.hero .welcome { width: 50%; max-width: 40em; bottom: 3em; } section.hero h1 { font-size: 1em; margin: 1.5em; } aside { float: left; width: 32%; border-bottom: 0; } aside.events { background: #e5e5e5; } aside.happening { border-right: 1px solid #eee; } aside article { padding: 2em; } aside article h2 { font-weight: 400; } aside a.btn { width: 85%; }
}

Prototype Responsive Homepage - Script Codes JS Codes

$(document).ready(function() { $('body').addClass('js'); var $menu = $('#menu'), $menulink = $('.menu-link');
$menulink.click(function() { $menulink.toggleClass('active'); $menu.toggleClass('active'); return false;
});});
Prototype Responsive Homepage - Script Codes
Prototype Responsive Homepage - Script Codes
Home Page Home
Developer Olivia Cheng
Username heyitsolivia
Uploaded July 22, 2022
Rating 4
Size 7,677 Kb
Views 50,600
Do you need developer help for Prototype Responsive Homepage?

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!

Olivia Cheng (heyitsolivia) Script Codes
Create amazing sales emails 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!