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

FINAL #1

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f67681c
+ folder
SkyNhiNguyen Mar 29, 2016
44252a6
version1
SkyNhiNguyen Mar 29, 2016
38f9e16
+MAIN NAV
SkyNhiNguyen Mar 31, 2016
207c001
+search bar
SkyNhiNguyen Mar 31, 2016
1a71c0c
+ section01 A
SkyNhiNguyen Apr 1, 2016
32c937b
+fonts
SkyNhiNguyen Apr 5, 2016
d753fe8
+section01
SkyNhiNguyen Apr 5, 2016
9b4594a
+font awesome +js
SkyNhiNguyen Apr 6, 2016
74b7569
Try sticky nav-Fail
SkyNhiNguyen Apr 6, 2016
265c2e3
+Media queries
SkyNhiNguyen Apr 7, 2016
76a3910
+media queries for Main
SkyNhiNguyen Apr 7, 2016
9dde6b0
+animated nag icon
SkyNhiNguyen Apr 8, 2016
6ac438f
+Home's
SkyNhiNguyen Apr 8, 2016
a8387f7
+img
SkyNhiNguyen Apr 12, 2016
c2d40df
+responsive slide show&nav
SkyNhiNguyen Apr 12, 2016
6a65eb5
+footer
SkyNhiNguyen Apr 12, 2016
65b3720
+footer
SkyNhiNguyen Apr 13, 2016
a767b84
+base html:about
SkyNhiNguyen Apr 13, 2016
0b84a74
>>about
SkyNhiNguyen Apr 13, 2016
940d446
#About page
SkyNhiNguyen Apr 14, 2016
e76be4a
#gallery
SkyNhiNguyen Apr 15, 2016
ed41435
#news
SkyNhiNguyen Apr 15, 2016
e7c0887
#news
SkyNhiNguyen Apr 15, 2016
74d226f
+animated nav +menu
SkyNhiNguyen Apr 19, 2016
f48ee8a
fix slide res
SkyNhiNguyen Apr 22, 2016
e18bfbf
+liquids
SkyNhiNguyen Apr 22, 2016
f9a85f6
#fix nav responsive
SkyNhiNguyen Apr 26, 2016
a888753
fix font url
Apr 28, 2016
6dfd384
#final check
SkyNhiNguyen Apr 29, 2016
8e485ce
nav home page
SkyNhiNguyen May 3, 2016
e4b5305
fix menu
SkyNhiNguyen May 3, 2016
83082f6
adjust column
SkyNhiNguyen May 3, 2016
1bfd771
add just
SkyNhiNguyen May 16, 2016
4ec320b
menu
SkyNhiNguyen May 16, 2016
a0d4a69
#1
SkyNhiNguyen May 16, 2016
d3379ed
#menu
SkyNhiNguyen May 16, 2016
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
Binary file added assets/NhiNguyen_Plant_final.psd
Binary file not shown.
2,086 changes: 2,086 additions & 0 deletions css/font-awesome.css

Large diffs are not rendered by default.

1,373 changes: 1,373 additions & 0 deletions css/style.css

Large diffs are not rendered by default.

Binary file added fonts/ITCAvantGardeStd-Bk/ITCAvantGardeStd-Bk.eot
Binary file not shown.
Binary file added fonts/ITCAvantGardeStd-Bk/ITCAvantGardeStd-Bk.otf
Binary file not shown.
1,357 changes: 1,357 additions & 0 deletions fonts/ITCAvantGardeStd-Bk/ITCAvantGardeStd-Bk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/ITCAvantGardeStd-Bk/ITCAvantGardeStd-Bk.ttf
Binary file not shown.
Binary file not shown.
760 changes: 760 additions & 0 deletions fonts/ITCAvantGardeStd-Bk/preview.html

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions fonts/ITCAvantGardeStd-Bk/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,292 changes: 1,292 additions & 0 deletions fonts/ITCAvantGardeStd-BkCnObl/ITCAvantGardeStd-BkCnObl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
782 changes: 782 additions & 0 deletions fonts/ITCAvantGardeStd-BkCnObl/preview.html

Large diffs are not rendered by default.

333 changes: 333 additions & 0 deletions fonts/ITCAvantGardeStd-BkCnObl/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,363 changes: 1,363 additions & 0 deletions fonts/ITCAvantGardeStd-BkObl/ITCAvantGardeStd-BkObl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
796 changes: 796 additions & 0 deletions fonts/ITCAvantGardeStd-BkObl/preview.html

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions fonts/ITCAvantGardeStd-BkObl/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,386 changes: 1,386 additions & 0 deletions fonts/ITCAvantGardeStd-Bold/ITCAvantGardeStd-Bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
738 changes: 738 additions & 0 deletions fonts/ITCAvantGardeStd-Bold/preview.html

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions fonts/ITCAvantGardeStd-Bold/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,246 changes: 1,246 additions & 0 deletions fonts/ITCAvantGardeStd-BoldCn/ITCAvantGardeStd-BoldCn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
708 changes: 708 additions & 0 deletions fonts/ITCAvantGardeStd-BoldCn/preview.html

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions fonts/ITCAvantGardeStd-BoldCn/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,417 changes: 1,417 additions & 0 deletions fonts/ITCAvantGardeStd-Demi/ITCAvantGardeStd-Demi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
756 changes: 756 additions & 0 deletions fonts/ITCAvantGardeStd-Demi/preview.html

Large diffs are not rendered by default.

320 changes: 320 additions & 0 deletions fonts/ITCAvantGardeStd-Demi/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,257 changes: 1,257 additions & 0 deletions fonts/ITCAvantGardeStd-DemiCn/ITCAvantGardeStd-DemiCn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
734 changes: 734 additions & 0 deletions fonts/ITCAvantGardeStd-DemiCn/preview.html

Large diffs are not rendered by default.

309 changes: 309 additions & 0 deletions fonts/ITCAvantGardeStd-DemiCn/styles.css

Large diffs are not rendered by default.

Binary file added fonts/ITCAvantGardeStd-Md/ITCAvantGardeStd-Md.eot
Binary file not shown.
Binary file added fonts/ITCAvantGardeStd-Md/ITCAvantGardeStd-Md.otf
Binary file not shown.
1,421 changes: 1,421 additions & 0 deletions fonts/ITCAvantGardeStd-Md/ITCAvantGardeStd-Md.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/ITCAvantGardeStd-Md/ITCAvantGardeStd-Md.ttf
Binary file not shown.
Binary file not shown.
762 changes: 762 additions & 0 deletions fonts/ITCAvantGardeStd-Md/preview.html

Large diffs are not rendered by default.

323 changes: 323 additions & 0 deletions fonts/ITCAvantGardeStd-Md/styles.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,270 changes: 1,270 additions & 0 deletions fonts/ITCAvantGardeStd-MdCn/ITCAvantGardeStd-MdCn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
742 changes: 742 additions & 0 deletions fonts/ITCAvantGardeStd-MdCn/preview.html

Large diffs are not rendered by default.

313 changes: 313 additions & 0 deletions fonts/ITCAvantGardeStd-MdCn/styles.css

Large diffs are not rendered by default.

Binary file added fonts/fontsawesome-webfont/FontAwesome.otf
Binary file not shown.
Binary file not shown.
655 changes: 655 additions & 0 deletions fonts/fontsawesome-webfont/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added images/Pomegranite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/about-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/chips.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gallery-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gallery1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gallery2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gallery3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gluten-free.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/green.png
Binary file added images/logo.png
Binary file added images/menu-title.png
Binary file added images/news-1.png
Binary file added images/news-2.png
Binary file added images/news-title.png
Binary file added images/search-white.png
801 changes: 801 additions & 0 deletions index.html

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@

// ANIMATED NAV///////////////////////////////
$(function() {
var $navToggle = $('.nav-toggle');
var $mainNavUl = $('.mainnav ul');
var $window = $(window);
var mobileBreakpoint = 768;

$navToggle.on('click', function() {
$mainNavUl.slideToggle();
$navToggle.toggleClass('active');
});

$window.on('resize', function() {
if ($window.width() > mobileBreakpoint && $mainNavUl.is(':hidden')) {
$mainNavUl.removeAttr('style');
$navToggle.removeClass('active');
}
});





// ACTIVE STATE//////////////////////////////////////////////////
var $sections = $('.section01,.section02,.section03,.section04,.section05');
var $mainNav = $(".mainnav");
var navOffset = 50;
$(window).scroll(function() {
var currentPosition = $(this).scrollTop();

$sections.each(function() {
var top = $(this).offset().top -navOffset;
var bottom = top + $(this).height();

if (currentPosition >= top && currentPosition <= bottom) {
$mainNav.find('a').removeClass('active');
$sections.removeClass('active');

$(this).addClass('active');
$mainNav.find('a[href="#'+$(this).attr('id')+'"]').addClass('active');
}
});

});

// SMOOTH SCROLL
$(".mainnav a").click(function(e) {
e.preventDefault();

var $this = $(this);
var sectionId = $this.attr('href');

$('html, body').animate({
scrollTop: $(sectionId).offset().top
}, 750);
});





// sub nav//////////////////////////////////////////////////
$('.tabgroup > div').hide();
$('.tabgroup > div:first-of-type').show();
$('.tabs a').click(function(e){
e.preventDefault();
var $this = $(this),
tabgroup = '#'+$this.parents('.tabs').data('tabgroup'),
others = $this.closest('li').siblings().children('a'),
target = $this.attr('href');
others.removeClass('active');
$this.addClass('active');
$(tabgroup).children('div').hide();
$(target).show();

})

});






/////////////////////SLIDESHOW/////////////////////////

var slideIndex = 1;
showSlides(slideIndex);

function plusSlides(n) {
showSlides(slideIndex += n);
}

function currentSlide(n) {
showSlides(slideIndex = n);
}

function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length} ;
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].classList.remove("active");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].classList.add("active");
}







var slideIndex = 1;
showDivs1(slideIndex);

function plusDivs1(n) {
showDivs1(slideIndex += n);
}

function showDivs1(n) {
var i;
var x = document.getElementsByClassName("g-slide1");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}


var slideIndex = 1;
showDivs2(slideIndex);

function plusDivs2(n) {
showDivs2(slideIndex += n);
}

function showDivs2(n) {
var i;
var x = document.getElementsByClassName("g-slide2");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}




var slideIndex = 1;
showDivs3(slideIndex);

function plusDivs3(n) {
showDivs3(slideIndex += n);
}

function showDivs3(n) {
var i;
var x = document.getElementsByClassName("g-slide3");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length} ;
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}