diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx
index 24c788c..6021b7e 100644
--- a/src/components/ui/accordion.tsx
+++ b/src/components/ui/accordion.tsx
@@ -14,7 +14,7 @@ const AccordionItem = React.forwardRef<
>(({ className, ...props }, ref) => (
))
diff --git a/src/components/ui/faq.tsx b/src/components/ui/faq.tsx
index 6f65830..f4b6b9b 100644
--- a/src/components/ui/faq.tsx
+++ b/src/components/ui/faq.tsx
@@ -12,34 +12,33 @@ export default function FAQ() {
- Is it accessible?
+ What is 'GuruNimbus'?
- Yes. It adheres to the WAI-ARIA design pattern.
+ GuruNimbus" is a web app that uses Next.js, OpenAI, and Pinecone to deliver personalized professor and mentor insights. It goes beyond conventional rating systems by leveraging AI to offer detailed evaluations, helping students make informed decisions about their courses and instructors.
- Is it accessible?
+ Can I submit my own review on "GuruNimbus"?
- Yes. It adheres to the WAI-ARIA design pattern.
+ GuruNimbus" does not accept user-submitted reviews. Instead, the platform uses RAG to provide feedback based on a curated list of reviews already in our pincone database.
- Is it accessible?
+ How do you ensure the authenticity of reviews?
- Yes. It adheres to the WAI-ARIA design pattern.
+ We use a combination of automated and manual moderation processes to review and verify submissions. This helps ensure that the feedback we publish is authentic and valuable.
- Is it styled?
+ How can I contact if I have an issue?
- Yes. It comes with default styles that matches the other
- components' aesthetic.
+ If you have any issues or questions, please use the "Contact Us" section on the site. Fill out the contact form, and our support team will get back to you as soon as possible.
- Is it animated?
+ How can I contribute to GuruNimbus?
- Yes. It's animated by default, but you can disable it if you prefer.
+ Well, thanks for taking time to contribute to "GuruNimbus", You can check our GitHub repository to read the guidlines to contribute.
diff --git a/src/components/ui/floating-navbar.tsx b/src/components/ui/floating-navbar.tsx
index dcd246a..1fa94ff 100644
--- a/src/components/ui/floating-navbar.tsx
+++ b/src/components/ui/floating-navbar.tsx
@@ -62,7 +62,7 @@ export const FloatingNav = ({
duration: 0.2,
}}
className={cn(
- "flex justify-center max-w-fit fixed top-10 inset-x-0 mx-auto bg-transparent z-[5000] pr-2 px-2 py-2 space-x-96",
+ "flex justify-center max-w-[75vw] fixed top-10 inset-x-0 mx-auto bg-transparent z-[5000] pr-2 py-2 space-x-36",
className
)}
>
diff --git a/src/components/ui/navbar-menu.tsx b/src/components/ui/navbar-menu.tsx
deleted file mode 100644
index 997e2c4..0000000
--- a/src/components/ui/navbar-menu.tsx
+++ /dev/null
@@ -1,121 +0,0 @@
-"use client";
-import React from "react";
-import { motion } from "framer-motion";
-import Link from "next/link";
-import Image from "next/image";
-
-const transition = {
- type: "spring",
- mass: 0.5,
- damping: 11.5,
- stiffness: 100,
- restDelta: 0.001,
- restSpeed: 0.001,
-};
-
-export const MenuItem = ({
- setActive,
- active,
- item,
- children,
-}: {
- setActive: (item: string) => void;
- active: string | null;
- item: string;
- children?: React.ReactNode;
-}) => {
- return (
-
setActive(item)} className="relative ">
-
- {item}
-
- {active !== null && (
-
- {active === item && (
-
-
-
- {children}
-
-
-
- )}
-
- )}
-
- );
-};
-
-export const Menu = ({
- setActive,
- children,
-}: {
- setActive: (item: string | null) => void;
- children: React.ReactNode;
-}) => {
- return (
-
setActive(null)} // resets the state
- className="relative rounded-full border border-transparent dark:bg-black dark:border-white/[0.2] bg-white shadow-input flex justify-center space-x-4 px-8 py-6 "
- >
- {children}
-
- );
-};
-
-export const ProductItem = ({
- title,
- description,
- href,
- src,
-}: {
- title: string;
- description: string;
- href: string;
- src: string;
-}) => {
- return (
-
-
-
-
- {title}
-
-
- {description}
-
-
-
- );
-};
-
-export const HoveredLink = ({ children, ...rest }: any) => {
- return (
-
- {children}
-
- );
-};
diff --git a/src/components/ui/people.tsx b/src/components/ui/people.tsx
index d19e51e..3c44aa2 100644
--- a/src/components/ui/people.tsx
+++ b/src/components/ui/people.tsx
@@ -10,6 +10,14 @@ const people = [
image:
"/img.png",
},
+
+ {
+ id: 2,
+ name: "Suraj Kumar",
+ designation: "DevOps Engineer",
+ image:
+ "/suraj.jpeg",
+ },
{
id: 3,
name: "Kumari Anjali",
@@ -18,13 +26,6 @@ const people = [
"/anjali.jpeg",
},
- {
- id: 2,
- name: "Suraj Kumar",
- designation: "devops Engineer",
- image:
- "/suraj.jpeg",
- },
];
diff --git a/src/middleware.ts b/src/middleware.ts
index 53e87c9..9089782 100644
--- a/src/middleware.ts
+++ b/src/middleware.ts
@@ -1,6 +1,6 @@
import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'
-const isProtectedRoute = createRouteMatcher(['/home(.*)'])
+const isProtectedRoute = createRouteMatcher(['/scrape(.*)','/professor(.*)','/chat(.*)'])
export default clerkMiddleware((auth, req) => {
if (isProtectedRoute(req)) auth().protect()
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 84287e8..96d064f 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,5 +1,8 @@
import type { Config } from "tailwindcss"
-
+const svgToDataUri = require("mini-svg-data-uri");
+const {
+ default: flattenColorPalette,
+} = require("tailwindcss/lib/util/flattenColorPalette");
const config = {
darkMode: ["class"],
content: [
@@ -74,7 +77,29 @@ const config = {
},
},
},
- plugins: [require("tailwindcss-animate")],
+ plugins: [require("tailwindcss-animate"), addVariablesForColors,
+ function ({ matchUtilities, theme }: any) {
+ matchUtilities(
+ {
+ "bg-dot-thick": (value: any) => ({
+ backgroundImage: `url("${svgToDataUri(
+ `
`
+ )}")`,
+ }),
+ },
+ { values: flattenColorPalette(theme("backgroundColor")), type: "color" }
+ );
+ },],
} satisfies Config
+function addVariablesForColors({ addBase, theme }: any) {
+ let allColors = flattenColorPalette(theme("colors"));
+ let newVars = Object.fromEntries(
+ Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
+ );
+
+ addBase({
+ ":root": newVars,
+ });
+}
export default config
\ No newline at end of file