Skip to content

new code added #1350

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

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 21 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ const config = {
type: "dropdown",
html: '<span class="nav-emoji">🔗</span> More',
position: "left",
items: [
items: [
{
html: '<span class="nav-emoji">🌍</span> Web Dev',
to: "/web-dev/",
},
{
html: '<span class="nav-emoji"> 📊</span> Quiz',
to: "https://quiz-app-ajay-dhangar.vercel.app/",
Expand Down Expand Up @@ -502,6 +506,22 @@ const config = {
showLastUpdateTime: true,
},
],

[
"@docusaurus/plugin-content-docs",
/** @type {import('@docusaurus/plugin-content-docs').Options} */
{
id: "web-dev",
path: "web-dev",
routeBasePath: "web-dev",
// editUrl: "#",
sidebarPath: require.resolve("./sidebarsWebDev.js"),
remarkPlugins: [[npm2yarn, { sync: true }], remarkMath, rehypeKatex],
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],

[
"@docusaurus/plugin-content-docs",
/** @type {import('@docusaurus/plugin-content-docs').Options} */
Expand Down
48 changes: 4 additions & 44 deletions sidebarsWebDev.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
module.exports = {
sidebarsWebDev: [
codeharborhub: [
{
type: "category",
label: "Web Dev",
link: {
type: "doc",
id: "all-web-dev",
},
collapsible: true,
collapsed: false,
items: [
{
type: "category",
label: "HTML",
link: {
type: "doc",
id: "html/welcome-html",
},
collapsible: true,
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "html",
},
],
},
{
type: "category",
label: "JavaScript",
link: {
type: "doc",
id: "javascript/welcome-js",
},
collapsible: true,
collapsed: true,
items: [
{
type: "autogenerated",
dirName: "javascript",
},
],
},
],
type: "autogenerated",
dirName: ".",
},
],
};
};
9 changes: 9 additions & 0 deletions src/database/sponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ const sponsors: Sponsor[] = [
// twitter: "https://x.com/CodesWithAjay",
// instagram: "https://www.instagram.com/_ajay.dhangar",
// },

{
name: "Narendra Dhangar",
image: "/sponsors/narendra-dhangar.jpg",
description: "B.Tech (CSE) Student",
github: "https://github.com/narendra-dhangar",
linkedin: "https://www.linkedin.com/in/narendra-dhangar-7a32aa283/",
instagram: "https://www.instagram.com/narendra_dh._05/",
},
{
name: "MOHD ARIF",
image: "https://github.com/mrmohdarif.png",
Expand Down
41 changes: 38 additions & 3 deletions src/pages/our-sponsors/Sponsors.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

.sponsor-page .sponsors-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
Expand All @@ -30,7 +30,7 @@
border-radius: 8px;
padding: 16px;
text-align: center;
width: 200px;
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.sponsor-page .sponsor-card img {
Expand Down Expand Up @@ -85,8 +85,43 @@
align-items: center;
justify-content: center;
cursor: pointer;
border: 1px dashed #ddd;
background-color: #f0f0f0;
border: 2px dashed #007bff;
color: #007bff;
position: relative;
overflow: hidden;
}

.sponsor-page .sponsor-card.empty-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.178);
transition: left 0.3s ease-in-out;
}

.sponsor-page .sponsor-card.empty-card:hover::before {
left: 100%;
}

.sponsor-page .sponsor-card.empty-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-page .sponsor-card.empty-card h3 {
margin: 0;
font-size: 1.2em;
display: flex;
align-items: center;
gap: 8px;
}

.sponsor-page .sponsor-card.empty-card .join-icon {
font-size: 1.5em;
}

.sponsor-page .scanner-popup {
Expand Down
10 changes: 6 additions & 4 deletions src/pages/our-sponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SponsorCard from "./SponsorCard";
import "./Sponsors.css";
import Layout from "@theme/Layout";
import sponsors from "../../database/sponsors";
import { FaPlusCircle } from 'react-icons/fa';

const OurSponsors: React.FC = () => {
const [showScanner, setShowScanner] = useState(false);
Expand All @@ -25,10 +26,8 @@ const OurSponsors: React.FC = () => {
<p>
Help CodeHarborHub grow and support open-source projects by donating
today. Your contribution enables us to share valuable resources and
knowledge on our website.

knowledge on our website.
<br />

Thank you for your support!
</p>
</div>
Expand All @@ -37,7 +36,10 @@ const OurSponsors: React.FC = () => {
<SponsorCard key={sponsor.name} {...sponsor} />
))}
<div className="sponsor-card empty-card" onClick={handleJoinSponsor}>
<h3>Join as a Sponsor</h3>
<h3>
<FaPlusCircle className="join-icon" />
Join as a Sponsor
</h3>
</div>
</div>
{showScanner && (
Expand Down
Binary file added static/sponsors/narendra-dhangar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 0 additions & 93 deletions web-dev/html/Flex-Box/Flex-Box Properties

This file was deleted.

41 changes: 0 additions & 41 deletions web-dev/html/Images/1 Inserting-Images.md

This file was deleted.

Loading
Loading