From 9a5db7d63a8c6dd93896f7e6d9d0903b765a579b Mon Sep 17 00:00:00 2001
From: Mohit Joping
Date: Mon, 21 Oct 2024 21:55:39 +0530
Subject: [PATCH] Fix: made some changes acc. to coderabitai
---
index.html | 11 ++
src/app/(auth)/layout.tsx | 5 +-
src/app/books/page.tsx | 12 +-
src/app/devtools/page.tsx | 13 +-
src/app/dsas/page.tsx | 14 +--
src/app/environement/page.tsx | 9 ++
src/app/layout.tsx | 3 +-
src/app/lessons/page.tsx | 18 +--
src/app/page.tsx | 17 +--
src/components/Footer.tsx | 198 +++++++++++-------------------
src/components/Header.tsx | 2 +-
src/components/SubstackCustom.tsx | 14 ++-
src/components/ui/socialLink.tsx | 23 ++++
src/components/ui/spinner.tsx | 9 ++
14 files changed, 174 insertions(+), 174 deletions(-)
create mode 100644 index.html
create mode 100644 src/app/environement/page.tsx
create mode 100644 src/components/ui/socialLink.tsx
create mode 100644 src/components/ui/spinner.tsx
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..a49580e
--- /dev/null
+++ b/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ Document
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/(auth)/layout.tsx b/src/app/(auth)/layout.tsx
index cb51e4d..8937a4c 100644
--- a/src/app/(auth)/layout.tsx
+++ b/src/app/(auth)/layout.tsx
@@ -1,3 +1,4 @@
+import Header from "@/components/Header";
import React from "react";
export default function Authlayout({
@@ -6,11 +7,11 @@ export default function Authlayout({
children: React.ReactNode;
}) {
return (
- >
);
}
diff --git a/src/app/books/page.tsx b/src/app/books/page.tsx
index 1f0a14e..f488399 100644
--- a/src/app/books/page.tsx
+++ b/src/app/books/page.tsx
@@ -4,6 +4,7 @@ import React, { useState } from "react";
import { ArrowRight, Search } from "lucide-react";
import { books } from "@/data/books";
import Card from "@/components/Card";
+import Header from "@/components/Header";
export default function Books() {
const [searchTerm, setSearchTerm] = useState("");
@@ -21,9 +22,10 @@ export default function Books() {
};
return (
+ <>
-
+
BOOKS TO LEARN RUST
@@ -34,12 +36,10 @@ export default function Books() {
placeholder="Search books..."
value={searchTerm}
onChange={handleSearch}
- className="w-full p-3 pl-10 rounded-full border border-foreground/20 bg-transparent dark:bg-gray-800 text-foreground/80 focus:outline-none focus:ring-2 focus:ring-primary/80"
- />
+ className="w-full p-3 pl-10 rounded-full border border-foreground/20 bg-transparent dark:bg-gray-800 text-foreground/80 focus:outline-none focus:ring-2 focus:ring-primary/80" />
+ size={20} />
@@ -55,6 +55,6 @@ export default function Books() {
)}
-
+ >
);
}
diff --git a/src/app/devtools/page.tsx b/src/app/devtools/page.tsx
index f300f17..c9dc2b7 100644
--- a/src/app/devtools/page.tsx
+++ b/src/app/devtools/page.tsx
@@ -4,6 +4,7 @@ import React, { useState } from "react";
import { Search } from "lucide-react";
import { tools } from "@/data/tools";
import Card from "@/components/Card";
+import Header from "@/components/Header";
export default function DevTools() {
const [searchTerm, setSearchTerm] = useState("");
@@ -21,9 +22,9 @@ export default function DevTools() {
};
return (
-
+ <>
-
+
Rust Developer tool
@@ -34,12 +35,10 @@ export default function DevTools() {
placeholder="Search tools..."
value={searchTerm}
onChange={handleSearch}
- className="w-full p-3 pl-10 rounded-full border border-gray-300 dark:border-gray-700 bg-transparent dark:bg-gray-800 text-foreground placeholder:text-muted-foreground/80 focus:outline-none focus:ring-2 focus:ring-red-500"
- />
+ className="w-full p-3 pl-10 rounded-full border border-gray-300 dark:border-gray-700 bg-transparent dark:bg-gray-800 text-foreground placeholder:text-muted-foreground/80 focus:outline-none focus:ring-2 focus:ring-red-500" />
+ size={20} />
@@ -55,6 +54,6 @@ export default function DevTools() {
)}
-
+ >
);
}
diff --git a/src/app/dsas/page.tsx b/src/app/dsas/page.tsx
index bc63ef3..add775c 100644
--- a/src/app/dsas/page.tsx
+++ b/src/app/dsas/page.tsx
@@ -7,6 +7,7 @@ import { FaCopy } from "react-icons/fa";
import { IoCloseSharp } from "react-icons/io5";
import SyntaxHighlighter from "react-syntax-highlighter";
import { nightOwl } from "react-syntax-highlighter/dist/esm/styles/hljs";
+import Header from "@/components/Header";
const DSAPage: React.FC = () => {
const [searchTerm, setSearchTerm] = useState("");
@@ -46,9 +47,10 @@ const DSAPage: React.FC = () => {
};
return (
-
+
+ <>
-
+
Data sturctures in RUST
@@ -59,12 +61,10 @@ const DSAPage: React.FC = () => {
placeholder="Search data structures..."
value={searchTerm}
onChange={handleSearch}
- className="w-full p-3 pl-14 rounded-full border border-foreground/40 bg-transparent text-foreground/80 focus:outline-none focus:ring-2 focus:ring-red-500 placeholder:text-muted-foreground/80"
- />
+ className="w-full p-3 pl-14 rounded-full border border-foreground/40 bg-transparent text-foreground/80 focus:outline-none focus:ring-2 focus:ring-red-500 placeholder:text-muted-foreground/80" />
+ size={20} />
@@ -139,7 +139,7 @@ const DSAPage: React.FC = () => {
)}
-
+ >
);
};
diff --git a/src/app/environement/page.tsx b/src/app/environement/page.tsx
new file mode 100644
index 0000000..725551e
--- /dev/null
+++ b/src/app/environement/page.tsx
@@ -0,0 +1,9 @@
+import React from 'react'
+
+type Props = {}
+
+export default function lesson({}: Props) {
+ return (
+ lesson
+ )
+}
\ No newline at end of file
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 11fcddd..69d9ccf 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -100,8 +100,7 @@ export default function RootLayout({
enableSystem
disableTransitionOnChange
>
-
-
+
{children}
diff --git a/src/app/lessons/page.tsx b/src/app/lessons/page.tsx
index d8eefef..2b04ee1 100644
--- a/src/app/lessons/page.tsx
+++ b/src/app/lessons/page.tsx
@@ -4,6 +4,7 @@ import React, { useState } from "react";
import Link from "next/link";
import { ArrowRight, Search } from "lucide-react";
import { lessons } from "@/data/lessons";
+import Header from "@/components/Header";
export default function Lessons() {
const [searchTerm, setSearchTerm] = useState("");
@@ -19,13 +20,14 @@ export default function Lessons() {
};
return (
+ <>
-
- RUST LESSONS
-
- Everything you need to learn about Rust
+
+ RUST LESSONS
+
+ Everything you need to learn about Rust
@@ -35,12 +37,10 @@ export default function Lessons() {
placeholder="Search lessons..."
value={searchTerm}
onChange={handleSearch}
- className="w-full p-3 pl-14 rounded-full border border-muted-foreground/80 bg-transparent text-accent-foreground/80 focus:outline-none focus:ring-2 focus:ring-primary/95 placeholder:text-muted-foreground/80"
- />
+ className="w-full p-3 pl-14 rounded-full border-[0.5px] border-muted-foreground/70 bg-transparent text-accent-foreground/80 focus:outline-none focus:ring-2 focus:ring-primary/95 placeholder:text-muted-foreground/80" />
+ size={20} />
@@ -83,6 +83,6 @@ export default function Lessons() {
)}
-
+ >
);
}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 20370f8..8ad0aed 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -7,21 +7,22 @@ import ProjectsSection from "../components/ProjectsSection";
import SubstackCustom from "../components/SubstackCustom";
import DSAToolSection from "@/components/DSASection";
import LessonSection from "@/components/LessonSection";
+import Header from "@/components/Header";
export default function Home() {
return (
+ <>
-
+
-
+
+ className="mx-auto mt-5" />
-
- An Open source project with everything
you need to
+
+ An Open source project with everything
you need to
learn about Rust
-
+
@@ -66,6 +67,6 @@ export default function Home() {
-
+ >
);
}
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index c51a802..109a544 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -1,154 +1,100 @@
-"use client";
-import React, { useState } from "react";
-import Link from "next/link";
+import React from "react";
import { FaYoutube, FaDiscord, FaInstagram, FaLinkedin } from "react-icons/fa";
import { FaXTwitter, FaThreads } from "react-icons/fa6";
-import { Heart } from "lucide-react";
+import { Heart, Gift } from "lucide-react";
import Image from "next/image";
-import { Button } from "./ui/button";
import SubstackCustom from "./SubstackCustom";
+import SocialLink from "@/components/ui/socialLink";
const Footer: React.FC = () => {
-
return (
-