Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fairview-ey colors, fix fonts, add animations, and add a sick parallax. Fix #1, #2, #3 #4

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 33 additions & 10 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,35 @@ html {

body {
margin: 0;
font-family: Arial;
font-family: "Helvetica", helvetica, Arial, sans-serif;
height: 100%;
width: 100%;
font-size: 20px;
}

div#landing {
height: 100%;
width: 100%;
}

div#background-parallax {
background-image: url("bg.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
background-position-x: 50%;
background-position-y: 0;
position: fixed;
z-index: -1;
height: 100%;
width: 100%;
}

div#background-overlay {
height: 100%;
width: 100%;
background-color: rgba(178, 2, 2, 1);
opacity: 0.25;
position: absolute;
z-index: -1;
}

div#landing img {
Expand All @@ -32,7 +48,7 @@ div#maintitle {
top: 50%;
transform: translateY(-50%);
text-align: center;
color: rgb(250, 82, 82);
color: #b20202;
margin: auto;
width: 500px;

Expand All @@ -51,11 +67,18 @@ div#maintitle div.titletext {

div#maintitle a {
text-decoration: none;
color: rgb(256, 256, 256);
background-color: rgb(250, 82, 82);
color: rgb(255, 255, 255);
background-color: #820202;
padding: 5px;
width: 200px;
border-radius: 5px;
transition: all 0.25s;
-webkit-transition: all 0.25s;
}

div#maintitle a:hover {
color: #b20202;
background-color: rgb(255, 255, 255);
}

div#maintitle a:first-of-type {
Expand All @@ -69,7 +92,7 @@ div#maintitle a:nth-of-type(2) {
}

div#secondary {
background-color: rgb(250, 82, 82);
background-color: #b20202;
color: rgb(256, 256, 256);
padding: 30px 50px 30px 50px;
text-align: center;
Expand Down Expand Up @@ -100,13 +123,13 @@ div#schedule div.title {
width: 250px;
font-size: 48px;
background-color: rgb(256, 256, 256);
color: rgb(250, 82, 82);
color: #b20202;
margin-bottom: 50px;
}

div#schedule div.container {
padding: 20px;
color: rgb(250, 82, 82);
color: #b20202;
background-color: rgb(256, 256, 256);
margin: auto;
opacity: 0.8;
Expand Down Expand Up @@ -136,7 +159,7 @@ div.col-md-4 div.question {
}

div#sponsor {
color: rgb(250, 82, 82);
color: #b20202;
background-color: rgb(256, 256, 256);
padding: 30px 50px 30px 50px;
text-align: center;
Expand Down
20 changes: 18 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,36 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="http://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="script.js"></script>

<link rel="stylesheet" href="index.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="landing">
<div id="background-parallax">
</div>
<div id="background-overlay">
</div>
<script>
$(document).ready(function() {
$(window).scroll(function() {
var height = window.innerHeight;
var scroll = $(window).scrollTop();
$("#background-overlay").css("opacity", (3*(scroll/height) + 0.25))
});
});
</script>
<div id="maintitle">
<div class="textarea">
<div class="titletext">HackFairview</div>
<div class="subtext">Fairview High School, Boulder, Colorado</div>
<div class="subtext">April 16 - 17, 2016</div>
</div>
<a href="google.com">Apply</a>
<a href="google.com">Sponsor</a>
<a class="top-button" href="google.com">Apply</a>
<a class="top-button" href="google.com">Sponsor</a>
</div>
<a href="https://mlh.io/seasons/s2016/events?utm_source=s2016&utm_medium=TrustBadge&utm_campaign=s2016" target="_blank"><img src="mlh-banner.png" /></a>
</div>
Expand Down
Empty file added script.js
Empty file.