Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkashi authored Mar 9, 2024
1 parent c475b15 commit 7790ac7
Show file tree
Hide file tree
Showing 53 changed files with 5,041 additions and 0 deletions.
2,143 changes: 2,143 additions & 0 deletions assets/css/style.css

Large diffs are not rendered by default.

Binary file added assets/images/Thumbs.db
Binary file not shown.
Binary file added assets/images/about-banner.jpg
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 assets/images/alex-haney-CAhjZmVk5H4-unsplash.jpg
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 assets/images/badge-1.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 assets/images/badge-2-bg.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 assets/images/badge-2.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 assets/images/breakfast.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 assets/images/event-1.jpg
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 assets/images/event-2.jpg
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 assets/images/event-3.jpg
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 assets/images/features-icon-1.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 assets/images/features-icon-2.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 assets/images/features-icon-3.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 assets/images/features-icon-4.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 assets/images/footer-bg.jpg
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 assets/images/footer-form-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
321 changes: 321 additions & 0 deletions assets/images/footer-form-pattern.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 assets/images/form-pattern.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 assets/images/hero-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,169 changes: 1,169 additions & 0 deletions assets/images/img-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 assets/images/man chef.jpg
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 assets/images/menu-1.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 assets/images/menu-2.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 assets/images/menu-3.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 assets/images/menu-4.png
Binary file added assets/images/menu-5.png
Binary file added assets/images/menu-6.png
Binary file added assets/images/new_logo-removebg-preview.png
Binary file added assets/images/pak_logo-removebg-preview.png
Binary file added assets/images/pakistani meat.jpg
Binary file added assets/images/pakistani-food-biryani.jpg.webp
Binary file not shown.
Binary file added assets/images/pakistani-food-biryani1.jpg
14 changes: 14 additions & 0 deletions assets/images/separator.svg
Binary file added assets/images/service-1.jpg
Binary file added assets/images/service-2.jpg
Binary file added assets/images/service-3.jpg
Binary file added assets/images/shape-1.png
Binary file added assets/images/shape-2.png
Binary file added assets/images/shape-3.png
Binary file added assets/images/shape-4.png
Binary file added assets/images/shape-5.png
Binary file added assets/images/shape-6.png
Binary file added assets/images/shape-7.png
Binary file added assets/images/shape-8.png
Binary file added assets/images/shape-9.png
Binary file added assets/images/special-dish-banner.jpg
Binary file added assets/images/testi-avatar.jpg
170 changes: 170 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
'use strict';



/**
* PRELOAD
*
* loading will be end after document is loaded
*/

const preloader = document.querySelector("[data-preaload]");

window.addEventListener("load", function () {
preloader.classList.add("loaded");
document.body.classList.add("loaded");
});



/**
* add event listener on multiple elements
*/

const addEventOnElements = function (elements, eventType, callback) {
for (let i = 0, len = elements.length; i < len; i++) {
elements[i].addEventListener(eventType, callback);
}
}



/**
* NAVBAR
*/

const navbar = document.querySelector("[data-navbar]");
const navTogglers = document.querySelectorAll("[data-nav-toggler]");
const overlay = document.querySelector("[data-overlay]");

const toggleNavbar = function () {
navbar.classList.toggle("active");
overlay.classList.toggle("active");
document.body.classList.toggle("nav-active");
}

addEventOnElements(navTogglers, "click", toggleNavbar);



/**
* HEADER & BACK TOP BTN
*/

const header = document.querySelector("[data-header]");
const backTopBtn = document.querySelector("[data-back-top-btn]");

let lastScrollPos = 0;

const hideHeader = function () {
const isScrollBottom = lastScrollPos < window.scrollY;
if (isScrollBottom) {
header.classList.add("hide");
} else {
header.classList.remove("hide");
}

lastScrollPos = window.scrollY;
}

window.addEventListener("scroll", function () {
if (window.scrollY >= 50) {
header.classList.add("active");
backTopBtn.classList.add("active");
hideHeader();
} else {
header.classList.remove("active");
backTopBtn.classList.remove("active");
}
});



/**
* HERO SLIDER
*/

const heroSlider = document.querySelector("[data-hero-slider]");
const heroSliderItems = document.querySelectorAll("[data-hero-slider-item]");
const heroSliderPrevBtn = document.querySelector("[data-prev-btn]");
const heroSliderNextBtn = document.querySelector("[data-next-btn]");

let currentSlidePos = 0;
let lastActiveSliderItem = heroSliderItems[0];

const updateSliderPos = function () {
lastActiveSliderItem.classList.remove("active");
heroSliderItems[currentSlidePos].classList.add("active");
lastActiveSliderItem = heroSliderItems[currentSlidePos];
}

const slideNext = function () {
if (currentSlidePos >= heroSliderItems.length - 1) {
currentSlidePos = 0;
} else {
currentSlidePos++;
}

updateSliderPos();
}

heroSliderNextBtn.addEventListener("click", slideNext);

const slidePrev = function () {
if (currentSlidePos <= 0) {
currentSlidePos = heroSliderItems.length - 1;
} else {
currentSlidePos--;
}

updateSliderPos();
}

heroSliderPrevBtn.addEventListener("click", slidePrev);

/**
* auto slide
*/

let autoSlideInterval;

const autoSlide = function () {
autoSlideInterval = setInterval(function () {
slideNext();
}, 7000);
}

addEventOnElements([heroSliderNextBtn, heroSliderPrevBtn], "mouseover", function () {
clearInterval(autoSlideInterval);
});

addEventOnElements([heroSliderNextBtn, heroSliderPrevBtn], "mouseout", autoSlide);

window.addEventListener("load", autoSlide);



/**
* PARALLAX EFFECT
*/

const parallaxItems = document.querySelectorAll("[data-parallax-item]");

let x, y;

window.addEventListener("mousemove", function (event) {

x = (event.clientX / window.innerWidth * 10) - 5;
y = (event.clientY / window.innerHeight * 10) - 5;

// reverse the number eg. 20 -> -20, -5 -> 5
x = x - (x * 2);
y = y - (y * 2);

for (let i = 0, len = parallaxItems.length; i < len; i++) {
x = x * Number(parallaxItems[i].dataset.parallaxSpeed);
y = y * Number(parallaxItems[i].dataset.parallaxSpeed);
parallaxItems[i].style.transform = `translate3d(${x}px, ${y}px, 0px)`;
}

});
4 changes: 4 additions & 0 deletions favicon.svg
Loading

0 comments on commit 7790ac7

Please sign in to comment.