Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
HUSAM-07 committed Aug 27, 2024
1 parent 986908d commit acbfc26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
4 changes: 3 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ export default function Home() {
const [activeTab, setActiveTab] = useState("home");

const webPages = [
{ name: "Uni-Notes", url: "https://uninotes.com" },
{ name: "Uni-Notes", url: "https://uni-notes.netlify.app/" },
{ name: "ERP", url: "https://erp.bits-pilani.ac.in" },
{ name: "Google DSC Resources", url: "https://gdscbpdc.github.io/"},
{ name: "ACM Resources", url: "https://openlib-cs.acmbpdc.org/"}
// Add other web pages as needed
];

Expand Down
40 changes: 11 additions & 29 deletions src/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,26 @@ import DotPattern from "@/components/magicui/dot-pattern"; // Adjust the import

interface HomePageProps {
onEnter: () => void;
navigation: React.ReactNode;
}

const HomePage: React.FC<HomePageProps> = ({ onEnter }) => {
function HomePage({ onEnter, navigation }: HomePageProps) {
return (
<div className="relative min-h-screen bg-white overflow-hidden">
{/* Dot pattern background */}
<div className="relative min-h-screen">
<div className="absolute inset-0 z-0">
<DotPattern />
</div>

{/* Main Content */}
<div className="relative z-10">
{/* Header */}
<header className="flex justify-between items-center p-4 bg-white bg-opacity-80">
<h1 className="text-2xl font-bold">UniDash</h1>
<nav>
<ul className="flex space-x-4 items-center">
<li><Link href="/about" className="text-gray-600 hover:text-black">About Us</Link></li>
<li><Link href="/attendance-tracker" className="text-gray-600 hover:text-black">Attendance Tracker</Link></li>
</ul>
</nav>
</header>

<main className="flex flex-col items-center justify-center h-[calc(100vh-80px)]">
<div className="text-center mb-8 bg-white bg-opacity-80 p-8 rounded-lg">
<h2 className="text-5xl font-bold mb-4">All University Resources in a Single Place</h2>
<p className="text-xl text-gray-600 mb-8">
Quickly access course materials, campus services, and academic tools.
Stay organized and save time with UniDash.
</p>
<Button size="lg" className="bg-black text-white hover:bg-gray-800" onClick={onEnter}>
Go to UniDash
</Button>
</div>
</main>
<div className="relative z-10 p-6">
<div className="mb-6">
{navigation}
</div>
<h1 className="text-4xl font-bold mb-4">Welcome to the University Dashboard</h1>
<p className="mb-4">This is your central hub for all university-related information and tools.</p>
<Button onClick={onEnter}>Enter Dashboard</Button>
</div>
</div>
);
};
}

export default HomePage;

0 comments on commit acbfc26

Please sign in to comment.