Skip to content

Commit b694865

Browse files
authored
Merge pull request #1350 from CodeHarborHub/dev-3
new code added
2 parents fd3fa43 + a943825 commit b694865

File tree

42 files changed

+82
-602
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+82
-602
lines changed

docusaurus.config.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ const config = {
187187
type: "dropdown",
188188
html: '<span class="nav-emoji">🔗</span> More',
189189
position: "left",
190-
items: [
190+
items: [
191+
{
192+
html: '<span class="nav-emoji">🌍</span> Web Dev',
193+
to: "/web-dev/",
194+
},
191195
{
192196
html: '<span class="nav-emoji"> 📊</span> Quiz',
193197
to: "https://quiz-app-ajay-dhangar.vercel.app/",
@@ -502,6 +506,22 @@ const config = {
502506
showLastUpdateTime: true,
503507
},
504508
],
509+
510+
[
511+
"@docusaurus/plugin-content-docs",
512+
/** @type {import('@docusaurus/plugin-content-docs').Options} */
513+
{
514+
id: "web-dev",
515+
path: "web-dev",
516+
routeBasePath: "web-dev",
517+
// editUrl: "#",
518+
sidebarPath: require.resolve("./sidebarsWebDev.js"),
519+
remarkPlugins: [[npm2yarn, { sync: true }], remarkMath, rehypeKatex],
520+
showLastUpdateAuthor: true,
521+
showLastUpdateTime: true,
522+
},
523+
],
524+
505525
[
506526
"@docusaurus/plugin-content-docs",
507527
/** @type {import('@docusaurus/plugin-content-docs').Options} */

sidebarsWebDev.js

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,8 @@
11
module.exports = {
2-
sidebarsWebDev: [
2+
codeharborhub: [
33
{
4-
type: "category",
5-
label: "Web Dev",
6-
link: {
7-
type: "doc",
8-
id: "all-web-dev",
9-
},
10-
collapsible: true,
11-
collapsed: false,
12-
items: [
13-
{
14-
type: "category",
15-
label: "HTML",
16-
link: {
17-
type: "doc",
18-
id: "html/welcome-html",
19-
},
20-
collapsible: true,
21-
collapsed: true,
22-
items: [
23-
{
24-
type: "autogenerated",
25-
dirName: "html",
26-
},
27-
],
28-
},
29-
{
30-
type: "category",
31-
label: "JavaScript",
32-
link: {
33-
type: "doc",
34-
id: "javascript/welcome-js",
35-
},
36-
collapsible: true,
37-
collapsed: true,
38-
items: [
39-
{
40-
type: "autogenerated",
41-
dirName: "javascript",
42-
},
43-
],
44-
},
45-
],
4+
type: "autogenerated",
5+
dirName: ".",
466
},
477
],
48-
};
8+
};

src/database/sponsors/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ const sponsors: Sponsor[] = [
1818
// twitter: "https://x.com/CodesWithAjay",
1919
// instagram: "https://www.instagram.com/_ajay.dhangar",
2020
// },
21+
22+
{
23+
name: "Narendra Dhangar",
24+
image: "/sponsors/narendra-dhangar.jpg",
25+
description: "B.Tech (CSE) Student",
26+
github: "https://github.com/narendra-dhangar",
27+
linkedin: "https://www.linkedin.com/in/narendra-dhangar-7a32aa283/",
28+
instagram: "https://www.instagram.com/narendra_dh._05/",
29+
},
2130
{
2231
name: "MOHD ARIF",
2332
image: "https://github.com/mrmohdarif.png",

src/pages/our-sponsors/Sponsors.css

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
.sponsor-page .sponsors-list {
2222
display: grid;
23-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
23+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
2424
gap: 1rem;
2525
margin-top: 2rem;
2626
}
@@ -30,7 +30,7 @@
3030
border-radius: 8px;
3131
padding: 16px;
3232
text-align: center;
33-
width: 200px;
33+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
3434
}
3535

3636
.sponsor-page .sponsor-card img {
@@ -85,8 +85,43 @@
8585
align-items: center;
8686
justify-content: center;
8787
cursor: pointer;
88-
border: 1px dashed #ddd;
88+
background-color: #f0f0f0;
89+
border: 2px dashed #007bff;
90+
color: #007bff;
91+
position: relative;
92+
overflow: hidden;
93+
}
94+
95+
.sponsor-page .sponsor-card.empty-card::before {
96+
content: '';
97+
position: absolute;
98+
top: 0;
99+
left: -100%;
100+
width: 100%;
101+
height: 100%;
102+
background: rgba(255, 255, 255, 0.178);
103+
transition: left 0.3s ease-in-out;
104+
}
105+
106+
.sponsor-page .sponsor-card.empty-card:hover::before {
107+
left: 100%;
108+
}
109+
110+
.sponsor-page .sponsor-card.empty-card:hover {
111+
transform: translateY(-5px);
112+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
113+
}
114+
115+
.sponsor-page .sponsor-card.empty-card h3 {
116+
margin: 0;
117+
font-size: 1.2em;
118+
display: flex;
119+
align-items: center;
120+
gap: 8px;
121+
}
89122

123+
.sponsor-page .sponsor-card.empty-card .join-icon {
124+
font-size: 1.5em;
90125
}
91126

92127
.sponsor-page .scanner-popup {

src/pages/our-sponsors/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import SponsorCard from "./SponsorCard";
33
import "./Sponsors.css";
44
import Layout from "@theme/Layout";
55
import sponsors from "../../database/sponsors";
6+
import { FaPlusCircle } from 'react-icons/fa';
67

78
const OurSponsors: React.FC = () => {
89
const [showScanner, setShowScanner] = useState(false);
@@ -25,10 +26,8 @@ const OurSponsors: React.FC = () => {
2526
<p>
2627
Help CodeHarborHub grow and support open-source projects by donating
2728
today. Your contribution enables us to share valuable resources and
28-
knowledge on our website.
29-
29+
knowledge on our website.
3030
<br />
31-
3231
Thank you for your support!
3332
</p>
3433
</div>
@@ -37,7 +36,10 @@ const OurSponsors: React.FC = () => {
3736
<SponsorCard key={sponsor.name} {...sponsor} />
3837
))}
3938
<div className="sponsor-card empty-card" onClick={handleJoinSponsor}>
40-
<h3>Join as a Sponsor</h3>
39+
<h3>
40+
<FaPlusCircle className="join-icon" />
41+
Join as a Sponsor
42+
</h3>
4143
</div>
4244
</div>
4345
{showScanner && (

static/sponsors/narendra-dhangar.jpg

27.5 KB
Loading

web-dev/html/Flex-Box/Flex-Box Properties

Lines changed: 0 additions & 93 deletions
This file was deleted.

web-dev/html/Images/1 Inserting-Images.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)