Skip to content

Commit

Permalink
Feat: Optimization and Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DWE-CLOUD committed Sep 23, 2024
1 parent 6e7415f commit 3af6bfb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
Binary file modified client/src/app/favicon.ico
Binary file not shown.
23 changes: 14 additions & 9 deletions client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
Expand All @@ -14,23 +15,27 @@ const geistMono = localFont({
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Data Science Community Recruitments",
description: "Data Science Community",
};

export default function RootLayout({
children,
}: Readonly<{
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="en">
<head>
<link rel="icon" href="/logo.png" type="image/png" sizes="any" />
<title>Data Science Community Recruitments</title>
</head>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<Toaster />
{children}
<Toaster />
{children}
</body>
</html>
</html>
);
}
16 changes: 1 addition & 15 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import Introduction from "@/components/home/introduction";
import History from "@/components/home/history";
import Hero from "@/components/home/hero";
import Domain from "@/components/home/domain-cards";
import { motion } from "framer-motion";

const Home: React.FC = () => {
useEffect(() => {
const link = document.querySelector("link[rel*='icon']") as HTMLLinkElement || document.createElement('link');
link.rel = 'icon';
link.href = '/logo.png';
link.href = '/logo.png';
document.head.appendChild(link);
}, []);

Expand All @@ -21,19 +20,6 @@ const Home: React.FC = () => {
<title>Data Science Community Recruitments</title>
<Header />
<main className="container mx-auto px-4 py-8 flex flex-col">
<motion.h1
initial={{ x: -100, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
transition={{
duration: 1,
delay: 0.5,
type: "spring",
stiffness: 100,
}}
className="text-3xl sm:text-5xl lg:text-6xl font-bold mb-8 text-center"
>
Data Science Community Recruitments
</motion.h1>
<section id="home" className="flex-grow">
<Introduction />
</section>
Expand Down

0 comments on commit 3af6bfb

Please sign in to comment.