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

Change Project Landing Page #1067

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ad3dea1
chores: created new-landing-page
Mozibix Aug 22, 2023
d1692e5
chores: updated nav_hero section
Mozibix Aug 22, 2023
295cc91
chores: updated homepage js file
Mozibix Aug 22, 2023
7e2b1a7
style: updated color styles
Mozibix Aug 22, 2023
3794af6
style: updated variables
Mozibix Aug 22, 2023
45ede8b
style: updated gen-styles
Mozibix Aug 22, 2023
e2f4742
chores: updated navbar_section
Mozibix Aug 25, 2023
26fa3f4
style: updated color variables
Mozibix Aug 25, 2023
a914b08
styles: updated general styles
Mozibix Aug 25, 2023
5a34dd9
styles: updated general styles
Mozibix Aug 25, 2023
2b7214e
chores: updated hero_section
Mozibix Aug 25, 2023
9f2bcdc
style: updated color variables
Mozibix Aug 25, 2023
b3917ad
style: updated variables
Mozibix Aug 25, 2023
efe0b59
style: updated hero_Section styles
Mozibix Aug 25, 2023
abd5319
style: updated variables
Mozibix Aug 25, 2023
ab5b524
style: updated hero_Section styles
Mozibix Aug 25, 2023
f2f343c
chores: updated card-section
Mozibix Aug 25, 2023
0fb6151
chores: updated card_projects section and comment out console.log fun…
Mozibix Aug 25, 2023
5fb416d
style: updated color variables
Mozibix Aug 25, 2023
c91f5be
style: updated variables
Mozibix Aug 25, 2023
da3c4c4
style: updated card_Section styles
Mozibix Aug 25, 2023
5fa1e85
chores: updated footer_section
Mozibix Aug 26, 2023
07fb4ae
style: updated variables
Mozibix Aug 26, 2023
3829bf9
style: updated fotter_section styles
Mozibix Aug 26, 2023
651a5e2
fix/bug: cards/projects section inner
Mozibix Aug 26, 2023
d8746f4
chores: updated footer_section and preloader_section
Mozibix Aug 26, 2023
d48332e
chores: updated preloader function
Mozibix Aug 26, 2023
fcc723c
style: updated variables
Mozibix Aug 26, 2023
856f1a8
style: updated fotter_section styles
Mozibix Aug 26, 2023
04ef65c
chores: updated preloader function
Mozibix Aug 26, 2023
04a49d7
style: updated variables
Mozibix Aug 26, 2023
47b15de
chores: updated footer_section
Mozibix Aug 26, 2023
372aa98
chores: updated backtotop functions
Mozibix Aug 26, 2023
69a0553
style: updated variables
Mozibix Aug 26, 2023
168e969
style: updated backtotop section
Mozibix Aug 26, 2023
9db4300
chores: updated nav_links
Mozibix Aug 26, 2023
ae3ceda
chores: updated nav functionalities
Mozibix Aug 26, 2023
324d4cc
style: updated variables
Mozibix Aug 26, 2023
ac9160b
style: updated nav_section
Mozibix Aug 26, 2023
9dc6fb3
chores: updated head script links
Mozibix Aug 26, 2023
ae96475
chores: updated preloader functionalities
Mozibix Aug 26, 2023
3118575
styles: updated preloader_variables
Mozibix Aug 26, 2023
03e16b5
chores: finishing touches
Mozibix Aug 27, 2023
92eaf0b
chores: finishing touches
Mozibix Aug 27, 2023
c236c1e
styles: finishing touches
Mozibix Aug 27, 2023
5f566cc
styles: finishing touches
Mozibix Aug 27, 2023
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
528 changes: 291 additions & 237 deletions index.html

Large diffs are not rendered by default.

71 changes: 35 additions & 36 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,53 @@
jQuery(document).ready(function() {
jQuery('.toggle').click(function() {
jQuery('body').toggleClass("day");
jQuery('body').toggleClass("night");
});
jQuery(document).ready(function () {
jQuery(".toggle").click(function () {
jQuery("body").toggleClass("day");
jQuery("body").toggleClass("night");
});

});

const nav = document.querySelector(".nav");

let projects = [];
const experi = document.getElementById('cardd');
const experi = document.getElementById("cardd");
const searchBar = document.getElementById("searchbar");

searchBar.addEventListener('keyup', (e) => {
searchBar.addEventListener("keyup", (e) => {
const searchString = e.target.value;
const filteredProjects = projects.filter( projects => {

return projects.name.toLowerCase().includes(searchString.toLowerCase());
const filteredProjects = projects.filter((projects) => {
return projects.name.toLowerCase().includes(searchString.toLowerCase());
});

console.log(filteredProjects)
// console.log(filteredProjects);
displayProjects(filteredProjects);
});

const getProject = fetch('cards.json')
.then(response => response.json())
.then(data => {
projects = data;
displayProjects(projects)
console.log(projects)

});
const getProject = fetch("./cards.json")
.then((response) => response.json())
.then((data) => {
projects = data;
displayProjects(projects);
// REMOVING CONSOLE.LOG DECLARATIONS
// console.log(projects);
});

const displayProjects = (projects) => {
const htmlString = projects
.map((project) => {
return`<div class="stylebox">
<p class="card-heading">${project.name}</p>
<div class="image" >
<img src="${project.image}" alt="">
</div>
<div class="card-data">
<a href=${project.link} target="_blank"><button class="btnn">View</button></a>
const htmlString = projects.map((project, key) => {
return `
<div key="${key}" class="project_box">
<div class="project_box_image">
<img src="${project.image}" alt="js-project" />
</div>
<p class="project_box_name">${project.name}</p>
<a href="${project.link}" target="_blank">
<div class="project_box_link">
<i class="fa-solid fa-up-right-from-square"></i> <p>Live</p>
</div>
</a>
</div>

</div>`;

})

experi.innerHTML = htmlString;
`;
});

}
experi.innerHTML = htmlString;
};

getProject();
113 changes: 113 additions & 0 deletions script2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/* PRELOADER FUNCTION */
document.addEventListener("DOMContentLoaded", () => {
const preloader = document.querySelector("#preLoading");
preloader.classList.remove("hidden");
preloader.classList.add("preloader");

setTimeout(() => {
preloader.classList.add("hidden");
}, 2000);
});

const preLoadingHide = () => {
p.style.display = "none";
};

/* BACT TO TOP */
const btnScrollToTop = document.querySelector("#back-to-top");
btnScrollToTop.addEventListener("click", () => {
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
});

const toogleBtn = document.querySelector(".toogle_btn");
const toogleBtnIcon = document.querySelector(".toogle_btn i");
const menu = document.querySelector(".dropdown_menu");
const menuLists = document.querySelectorAll(".menu_lists li");

/* NAV-FUNCTIONS */

/* ACTIVE LINKS */
const removeActive = () => {
menuLists.forEach((link) => {
link.classList.remove("active");
});
};

menuLists.forEach((link) => {
link.addEventListener("click", () => {
removeActive();
link.classList.add("active");
});
});

toogleBtn.onclick = () => {
console.log("click", "click");
menu.classList.toggle("open");

const isOpen = menu.classList.contains("open");

toogleBtnIcon.classList = isOpen ? "fa fa-times" : "fa fa-bars";
};

const isClose = () => {
const isClose = menu.classList.remove("open");

toogleBtnIcon.classList = isClose ? "fa fa-times" : "fa fa-bars";
};

document.onclick = (e) => {
if (!toogleBtn.contains(e.target) && !menu.contains(e.target)) {
isClose();
}
};
document.onscroll = (e) => {
if (!toogleBtn.contains(e.target) && !menu.contains(e.target)) {
isClose();
}
};

const animationUp = document.querySelectorAll(".animations_up");
const animationDown = document.querySelectorAll(".animations_down");
const animationLeft = document.querySelectorAll(".animations_left");
const animationRight = document.querySelectorAll(".animations_right");

const scrollObserver = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("scroll-animation");
} else {
entry.target.classList.remove("scroll-animation");
}
});
},
{ threshold: 0.1 }
);

for (let i = 0; i < animationUp.length; i++) {
const elements = animationUp[i];

scrollObserver.observe(elements);
}
/* */
for (let i = 0; i < animationDown.length; i++) {
const elements = animationDown[i];

scrollObserver.observe(elements);
}
/* */
for (let i = 0; i < animationLeft.length; i++) {
const elements = animationLeft[i];

scrollObserver.observe(elements);
}
/* */
for (let i = 0; i < animationRight.length; i++) {
const elements = animationRight[i];

scrollObserver.observe(elements);
}
32 changes: 32 additions & 0 deletions styles/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$white: #fff;
$black: #000;
$main_bg: #f3f5f8;
$dark_text: #131313;
$nav_link_hover: #ff914d;
$light_text: #757575;
$light_border: #e5e9ef;
$shadow_box: 0px 0px 30px 0px rgba(14, 41, 50, 0.08);
$shadow_hover: rgba(0, 0, 0, 0.09) 0px 3px 12px;

/* MEDIA SCREENS
@media screen and (min-width: 1500px) {

}
@media screen and (min-width: 1200px) {

}
@media screen and (min-width: 992px) {

}

@media screen and (min-width: 768px) {

}
@media screen and (min-width: 576px) {

}

@media screen and (min-width: 400px) {

}
*/
Loading