Skip to content

Commit

Permalink
Homepage 90% done, surprisingly productive hour
Browse files Browse the repository at this point in the history
  • Loading branch information
rbndelrio committed Mar 9, 2015
1 parent c96940c commit 06963e9
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 22 deletions.
16 changes: 10 additions & 6 deletions brewery.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#F15A2A">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Brewery | Florida Beer Co.</title>
<link rel="apple-touch-icon" href="img/touch-icon.png">
Expand All @@ -13,7 +14,7 @@
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/fl-beer-soc.css">
<link href='http://fonts.googleapis.com/css?family=Patua+One|Roboto:500,400italic,700,400|Roboto+Condensed:700,400' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Patua+One|Roboto:500,700,400|Roboto+Condensed:700,400' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="min/modernizr.js" type="text/javascript"></script>
<script src="min/js.js"></script>
Expand All @@ -26,7 +27,10 @@
<a href="index.html" class="logotype navlink">Florida Beer Co.</a>
</li>
<li class="pull-left">
<a href="#" class="menu navlink"><span class="menutext">Menu</span><i class="fa fa-chevron-down darrow"></i></a>
<a href="#" class="menu navlink">
<span class="menutext">Menu</span>
<i class="fa fa-chevron-down darrow"></i>
</a>
<div class="fs-menu">
<ul class="links">
<li><a href="#">Beer</a></li>
Expand All @@ -37,10 +41,10 @@
<li><a href="#">Contact</a></li>
</ul>
<ul class="social">
<li><a href="#" class="icon"><i class="icon-facebook"></i></a></li>
<li><a href="#" class="icon"><i class="icon-twitter"></i></a></li>
<li><a href="#" class="icon"><i class="icon-untapped"></i></a></li>
<li><a href="#" class="icon"><i class="icon-instagram"></i></a></li>
<li><a href="#" alt="Facebook" class="icon"><i class="icon-facebook"></i></a></li>
<li><a href="#" alt="Twitter" class="icon"><i class="icon-twitter"></i></a></li>
<li><a href="#" alt="Untapped" class="icon"><i class="icon-untapped"></i></a></li>
<li><a href="#" alt="Instagram" class="icon"><i class="icon-instagram"></i></a></li>
</ul>
</div>
</li>
Expand Down
Binary file modified img/beer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 53 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,46 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#F15A2A">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Florida Beer Co.</title>
<link rel="apple-touch-icon" href="img/touch-icon.png">
<link rel="icon" sizes="192x192" href="img/touch-icon.png">
<link rel="shortcut icon" href="img/fav.ico">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Patua+One|Roboto:500,400italic,700,400|Roboto+Condensed:700,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/fl-beer-soc.css">
<link href='http://fonts.googleapis.com/css?family=Patua+One|Roboto:500,700,400|Roboto+Condensed:700,400' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="min/modernizr.js" type="text/javascript"></script>
<script src="min/js.js"></script>
</head>
<body class="brewery">
<header>
<body class="beer">
<header class="collapsed">
<nav>
<ul>
<li class="pull-right">
<a href="index.html" class="logotype navlink current">Florida Beer Co.</a>
</li>
<li class="pull-left">
<a href="#" class="menu navlink"><span class="menutext">Menu</span><span class="darrow">&#x2304;</span></a>
<a href="#" class="menu navlink">
<span class="menutext">Menu</span>
<i class="fa fa-chevron-down darrow"></i>
</a>
<div class="fs-menu">
<ul class="links">
<li><a href="#">Beer</a></li>
<li><a href="#" class="current">Beer</a></li>
<li><a href="brewery.html">Brewery</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Store</a></li>
<li><a href="#">Contact</a></li>
</ul>
<ul class="social">
<li><a href="#" class="icon"><span>Facebook</span></a></li>
<li><a href="#" class="icon"><span>Twitter</span></a></li>
<li><a href="#" class="icon"><span>Some other shit</span></a></li>
<li><a href="#" class="icon"><span>Instagram</span></a></li>
<li><a href="#" alt="Facebook" class="icon"><i class="icon-facebook"></i></a></li>
<li><a href="#" alt="Twitter" class="icon"><i class="icon-twitter"></i></a></li>
<li><a href="#" alt="Untapped" class="icon"><i class="icon-untapped"></i></a></li>
<li><a href="#" alt="Instagram" class="icon"><i class="icon-instagram"></i></a></li>
</ul>
</div>
</li>
Expand All @@ -48,7 +53,45 @@
</nav>
</header>
<div class="bodywrap">

<section class="subpage">
<article class="fs-img bgcoverize">
<div class="imgwrap">
<img src="img/beer.jpg" alt="Beer!">
</div>
<div class="overlay"></div>
<div class="content box">
<h1>Beer Menu</h1>
<hr>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have</p>
<a href="#" alt="Beer Menu">
<div class="bttn go">
<i class="fa fa-chevron-right darrow"></i>
</div>
</a>
</div>
<div class="nextpage">
<i class="fa fa-chevron-down darrow"></i>
</div>
</article>
</section>
<section class="subpage">
<article class="fs-img bgcoverize">
<div class="imgwrap">
<img src="img/lotsabeer.jpg" alt="Our Brewery">
</div>
<div class="overlay"></div>
<div class="content box">
<h1>Brewery</h1>
<hr>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have</p>
<a href="#" alt="Brewery">
<div class="bttn go">
<i class="fa fa-chevron-right darrow"></i>
</div>
</a>
</div>
</article>
</section>
</div>
<footer></footer>
</body>
Expand Down
17 changes: 16 additions & 1 deletion js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $(document).ready(function () {
aspectRatio;



function resizeBg() {
$bg.each(function () {
yolo = $(this);
Expand All @@ -25,14 +26,28 @@ $(document).ready(function () {
}



resizeBg();
$(window).resize(function () {resizeBg();});
$('.beer .subpage').height($(window).height());



$(window).resize(function () {
resizeBg();
$('.beer .subpage').height($(window).height());
});

$('.menu').click(function (event) {
event.preventDefault();
$('header').toggleClass('open collapsed');
});

$(".current").click(function (event) {
event.preventDefault();
$('header').toggleClass('open collapsed');
});

$('.nextpage').click(function () {
$("html, body").animate({ scrollTop: $(document).height() }, "slow");
});
});
81 changes: 76 additions & 5 deletions sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ header
transition: .4s opacity, .4s visibility
transition-delay: 0
position: fixed
// top: 25%
left: 0
opacity: 0
font-family: $brand
Expand Down Expand Up @@ -233,7 +232,9 @@ header
.current
color: $brand-3

//--- Menu Responsive Layout ---//

//--- Menu Responsive Layout ---//
@media (max-width: 600px), (max-height: 700px)
.fs-menu
.links
Expand Down Expand Up @@ -261,7 +262,10 @@ header
font-size: 2em
position: absolute
top: 0
//--- Formatting ---//



//--- FORMATTING ---//
.bodywrap
width: 100%
Expand Down Expand Up @@ -318,7 +322,7 @@ header



//--- Brewery ---//
//--- BREWERY PAGE ---//
.heroimg
img
Expand Down Expand Up @@ -368,6 +372,73 @@ header



//--- HOMEPAGE/BEER ---//
section.subpage
height: 720px
width: 100%
overflow: hidden
background: $dimorange
position: relative
.fs-img
width: 100%
height: 100%
.imgwrap
z-index: 10
// display: none
.content.box
position: absolute
z-index: $nav - 25
width: 455px
height: 455px
padding: 30px
top: 50%
left: 50%
transform: translate(-50%, -50%)
background: rgba($brand-primary, .95)
text-align: center
h1
padding: 25px
p
padding: 20px
br
display: block
width: 100%
border-bottom: 10px solid white
a
text-align: center
margin: 0 auto
.bttn.go
display: inline-block
width: 60px
height: 60px
border: 5px solid $brand-secondary
transition: .2s border-color
&:hover
border-color: $brand-3
.fa
font-size: 30px
line-height: 60px
position: relative
left: 3px
@media #{$sdesk-max}
width: 400px
height: 400px
h1
font-size: 3em
.nextpage
position: absolute
bottom: 5%
left: 50%
width: 30px
height: 30px
margin-left: -15px
border-radius: 100%
z-index: $nav - 30
cursor: pointer
text-align: center
font-size: 30px

//--- Responsive Time! ---//
//Small Desktops
Expand All @@ -387,7 +458,7 @@ header
padding: 50px 0
.bodywrap .fold .heroimg
height: 480px


//Phablets-n-tablets
Expand Down

0 comments on commit 06963e9

Please sign in to comment.