Skip to content

Commit

Permalink
Merge pull request #61 from SohamMondal88/SOHAM
Browse files Browse the repository at this point in the history
feat: Fixed File structure and Search Logic Added
  • Loading branch information
shuvadeepmondal authored Mar 9, 2025
2 parents 4797148 + d7dfb74 commit 7587403
Show file tree
Hide file tree
Showing 48 changed files with 2,011 additions and 1,049 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion ad.css → CSS/ad.css
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ html {

.category-header {
position: relative;
background: url('img/android-development-bg.jpg') no-repeat center center/cover;
background: url('../img/android-development-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
2 changes: 1 addition & 1 deletion ai.css → CSS/ai.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ header p {

.category-header {
position: relative;
background: url('img/artificial-intelligence-bg.jpg') no-repeat center center/cover;
background: url('../img/artificial-intelligence-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
2 changes: 1 addition & 1 deletion cc.css → CSS/cc.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ header p {

.category-header {
position: relative;
background: url('img/cloud-computing-bg.jpg') no-repeat center center/cover;
background: url('../img/cloud-computing-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cs.css → CSS/cs.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ header p {

.category-header {
position: relative;
background: url('img/cybersecurity-bg.jpg') no-repeat center center/cover;
background: url('../img/cybersecurity-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion gd.css → CSS/gd.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ header p {

.category-header {
position: relative;
background: url('img/game-development-bg.jpg') no-repeat center center/cover;
background: url('../img/game-development-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion style.css → CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ header p {
justify-content: center;
text-align: center;
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
url("static/images/hacker.gif") center/cover;
url("../static/images/hacker.gif") center/cover;
color: #fff;
height: 100vh;
width: 100%;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wd.css → CSS/wd.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ header p {

.category-header {
position: relative;
background: url('img/web-development-bg.jpg') no-repeat center center/cover;
background: url('../img/web-development-bg.jpg') no-repeat center center/cover;
padding: 80px 20px;
text-align: center;
color: #00ff55;
Expand Down
62 changes: 61 additions & 1 deletion about.js → JS/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,64 @@ document.addEventListener("DOMContentLoaded", () => {
body.classList.remove("no-scroll");
}
});
});
});
document.addEventListener("DOMContentLoaded", function () {
let searchInput = document.querySelector(".search-bar input");
if (searchInput) {
searchInput.addEventListener("keypress", function (event) {
if (event.key === "Enter") {
let searchQuery = searchInput.value.trim().toLowerCase();
let pages = {
"home": "index.html",
"about": "about.html",
"resources": "resources.html",
"faq": "faq.html",
"faqs": "faq.html",
"quiz": "quiz.html",
"contact": "contact.html",
"contribute": "resources.html",
"cybersecurity": "cs.html",
"androiddevelopment": "ad.html",
"gamedevelopment": "gd.html",
"webdevelopment": "wd.html",
"artificialintelligence": "ai.html",
"cloudcomputing": "cc.html",
"cyber": "cs.html",
"androiddeveloper": "ad.html",
"gamedeveloper": "gd.html",
"web developer": "wd.html",
"artificial-intelligence": "ai.html",
"cloud-computing": "cc.html",
"security": "cs.html",
"android development": "ad.html",
"game development": "gd.html",
"web development": "wd.html",
"artificial intelligence": "ai.html",
"cloud computing": "cc.html",
"cloud": "cs.html",
"android": "ad.html",
"game": "gd.html",
"web": "wd.html",
"artificial": "wd.html",
"intelligence": "ai.html",
"computing": "cc.html",
"cs": "cs.html",
"ad": "ad.html",
"gd": "gd.html",
"wd": "wd.html",
"ai": "ai.html",
"cc": "cc.html",
};
if (pages[searchQuery]) {
window.location.href = pages[searchQuery];
} else {
alert("No matching page found! Try searching for Home, About, Resources, FAQs, Quiz, or Contact.");
}
}
});
}
});
function toggleMenu() {
let mobileNav = document.getElementById("mobileNav");
mobileNav.classList.toggle("open");
}
62 changes: 61 additions & 1 deletion ad.js → JS/ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,64 @@ document.addEventListener("DOMContentLoaded", function () {
}
typing();
}
});
});
document.addEventListener("DOMContentLoaded", function () {
let searchInput = document.querySelector(".search-bar input");
if (searchInput) {
searchInput.addEventListener("keypress", function (event) {
if (event.key === "Enter") {
let searchQuery = searchInput.value.trim().toLowerCase();
let pages = {
"home": "index.html",
"about": "about.html",
"resources": "resources.html",
"faq": "faq.html",
"faqs": "faq.html",
"quiz": "quiz.html",
"contact": "contact.html",
"contribute": "resources.html",
"cybersecurity": "cs.html",
"androiddevelopment": "ad.html",
"gamedevelopment": "gd.html",
"webdevelopment": "wd.html",
"artificialintelligence": "ai.html",
"cloudcomputing": "cc.html",
"cyber": "cs.html",
"androiddeveloper": "ad.html",
"gamedeveloper": "gd.html",
"web developer": "wd.html",
"artificial-intelligence": "ai.html",
"cloud-computing": "cc.html",
"security": "cs.html",
"android development": "ad.html",
"game development": "gd.html",
"web development": "wd.html",
"artificial intelligence": "ai.html",
"cloud computing": "cc.html",
"cloud": "cs.html",
"android": "ad.html",
"game": "gd.html",
"web": "wd.html",
"artificial": "wd.html",
"intelligence": "ai.html",
"computing": "cc.html",
"cs": "cs.html",
"ad": "ad.html",
"gd": "gd.html",
"wd": "wd.html",
"ai": "ai.html",
"cc": "cc.html",
};
if (pages[searchQuery]) {
window.location.href = pages[searchQuery];
} else {
alert("No matching page found! Try searching for Home, About, Resources, FAQs, Quiz, or Contact.");
}
}
});
}
});
function toggleMenu() {
let mobileNav = document.getElementById("mobileNav");
mobileNav.classList.toggle("open");
}
62 changes: 61 additions & 1 deletion ai.js → JS/ai.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,64 @@ document.addEventListener("DOMContentLoaded", function () {
}
typing();
}
});
});
document.addEventListener("DOMContentLoaded", function () {
let searchInput = document.querySelector(".search-bar input");
if (searchInput) {
searchInput.addEventListener("keypress", function (event) {
if (event.key === "Enter") {
let searchQuery = searchInput.value.trim().toLowerCase();
let pages = {
"home": "index.html",
"about": "about.html",
"resources": "resources.html",
"faq": "faq.html",
"faqs": "faq.html",
"quiz": "quiz.html",
"contact": "contact.html",
"contribute": "resources.html",
"cybersecurity": "cs.html",
"androiddevelopment": "ad.html",
"gamedevelopment": "gd.html",
"webdevelopment": "wd.html",
"artificialintelligence": "ai.html",
"cloudcomputing": "cc.html",
"cyber": "cs.html",
"androiddeveloper": "ad.html",
"gamedeveloper": "gd.html",
"web developer": "wd.html",
"artificial-intelligence": "ai.html",
"cloud-computing": "cc.html",
"security": "cs.html",
"android development": "ad.html",
"game development": "gd.html",
"web development": "wd.html",
"artificial intelligence": "ai.html",
"cloud computing": "cc.html",
"cloud": "cs.html",
"android": "ad.html",
"game": "gd.html",
"web": "wd.html",
"artificial": "wd.html",
"intelligence": "ai.html",
"computing": "cc.html",
"cs": "cs.html",
"ad": "ad.html",
"gd": "gd.html",
"wd": "wd.html",
"ai": "ai.html",
"cc": "cc.html",
};
if (pages[searchQuery]) {
window.location.href = pages[searchQuery];
} else {
alert("No matching page found! Try searching for Home, About, Resources, FAQs, Quiz, or Contact.");
}
}
});
}
});
function toggleMenu() {
let mobileNav = document.getElementById("mobileNav");
mobileNav.classList.toggle("open");
}
62 changes: 61 additions & 1 deletion cc.js → JS/cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,64 @@ document.addEventListener("DOMContentLoaded", function () {
}
typing();
}
});
});
document.addEventListener("DOMContentLoaded", function () {
let searchInput = document.querySelector(".search-bar input");
if (searchInput) {
searchInput.addEventListener("keypress", function (event) {
if (event.key === "Enter") {
let searchQuery = searchInput.value.trim().toLowerCase();
let pages = {
"home": "index.html",
"about": "about.html",
"resources": "resources.html",
"faq": "faq.html",
"faqs": "faq.html",
"quiz": "quiz.html",
"contact": "contact.html",
"contribute": "resources.html",
"cybersecurity": "cs.html",
"androiddevelopment": "ad.html",
"gamedevelopment": "gd.html",
"webdevelopment": "wd.html",
"artificialintelligence": "ai.html",
"cloudcomputing": "cc.html",
"cyber": "cs.html",
"androiddeveloper": "ad.html",
"gamedeveloper": "gd.html",
"web developer": "wd.html",
"artificial-intelligence": "ai.html",
"cloud-computing": "cc.html",
"security": "cs.html",
"android development": "ad.html",
"game development": "gd.html",
"web development": "wd.html",
"artificial intelligence": "ai.html",
"cloud computing": "cc.html",
"cloud": "cs.html",
"android": "ad.html",
"game": "gd.html",
"web": "wd.html",
"artificial": "wd.html",
"intelligence": "ai.html",
"computing": "cc.html",
"cs": "cs.html",
"ad": "ad.html",
"gd": "gd.html",
"wd": "wd.html",
"ai": "ai.html",
"cc": "cc.html",
};
if (pages[searchQuery]) {
window.location.href = pages[searchQuery];
} else {
alert("No matching page found! Try searching for Home, About, Resources, FAQs, Quiz, or Contact.");
}
}
});
}
});
function toggleMenu() {
let mobileNav = document.getElementById("mobileNav");
mobileNav.classList.toggle("open");
}
Loading

0 comments on commit 7587403

Please sign in to comment.