<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
<script>
$(function() {
$("a[href*=#]:not([href=#])").click(function() {
if (
location.pathname.replace(/^\//, "") ==
this.pathname.replace(/^\//, "") &&
location.hostname == this.hostname
) {
var target = $(this.hash);
target = target.length ? target : $("[name=" + this.hash.slice(1) + "]");
if (target.length) {
$("html,body").animate({
scrollTop: target.offset().top
},
1000
);
return false;
}
}
});
});
</script>
/*Default Fixed Top Navbar Code*/
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 80%;
margin: auto;
height: auto;
background: #257ca1;
border-radius-left: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
padding: 25px;
margin-bottom: 50px;
display: flex;
flex-wrap: wrap;
max-width: 1200px;
justify-content: center;
justify-content: space-between;
}
/*Default Tablet Fixed Top Navbar Code*/
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 80%;
background: #257ca1;
max-width: 750px;
height: auto;
margin-left: 10%;
margin-right: 50%;
padding: 50px;
display: flex;
flex-wrap: wrap;
align-content: space-between;
justify-content: center;
display: block;
}
/*Default Phone Fixed Top Navbar Code*/
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #257ca1;
width: 400px;
height: auto;
overflow: auto;
margin: auto;
/* margin-left: 10%;
margin-right: 50%;*/
padding: 50px;
display: flex;
flex-wrap: wrap;
align-content: space-between;
justify-content: center;
display: block;
}
If you wish to include a Background Video to your project, insert the following code below the stylesheet link in your pages header tags.
<video src="video/australia_opera.mp4" loop muted autoplay poster="#" type="video/mp4"></video>
video {
object-fit: cover;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
}
Having trouble removing flex commands in @media? Use the folling command and start from scratch!
.column {
all: initial;
}
Your website should consist of six pages. The topic of the site is your choice (with my approval.)
The following are the requirements for your project.
Optional:
Do not feel constrained. You can do amazing things with this project!
Perhaps use gradients somewhere? Maybe a background? Anything that will complement the design of your site.
Video background. If you decide to do this, be subtle and use a simple video that doesn’t detract from your
NOTE: You will have time to work on this site. Do not rush. (It should be completed in class ) – mostly. I will need to approve your site before you upload it.