Skip to content

Commit 09891d8

Browse files
Basic UI fixes and meta add
1 parent 0cbca56 commit 09891d8

File tree

4 files changed

+91
-28
lines changed

4 files changed

+91
-28
lines changed

src/app/layout.tsx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@ import "@/styles/globals.css";
22
import { Toaster } from "react-hot-toast";
33
import { ThemeProvider } from "@/components/theme-provider";
44
import { GeistSans } from "geist/font/sans";
5+
import { Metadata } from "next";
56

6-
export const metadata = {
7-
title: "Create T3 App",
8-
description: "Generated by create-t3-app",
9-
icons: [{ rel: "icon", url: "/favicon.ico" }],
7+
8+
export const metadata: Metadata = {
9+
metadataBase: new URL("https://papers.codechefvit.com/"),
10+
title: "Papers",
11+
description: "Made with ♡ by CodeChef-VIT",
12+
icons: [{ rel: "icon", url: "/chefshat.svg" }],
13+
openGraph: {
14+
title: "Papers",
15+
images: [{ url: "/cookoff.png" }],
16+
url: "https://papers.codechefvit.com/",
17+
type: "website",
18+
description: "Made with ♡ by CodeChef-VIT",
19+
siteName: "Papers",
20+
},
21+
applicationName: "Papers",
22+
keywords: [
23+
"CodeChef",
24+
"VIT",
25+
"Vellore Institute of Technology",
26+
"CodeChef-VIT",
27+
"Papers"
28+
],
1029
};
1130

31+
1232
export default function RootLayout({
1333
children,
1434
}: {

src/app/upload/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const Page = () => {
8787
}
8888
})(),
8989
{
90-
loading: "Sending zip",
91-
success: "zip successfully sent",
90+
loading: "Sending papers",
91+
success: "Papers successfully sent",
9292
error: (err: ApiError) => err.message,
9393
},
9494
);
@@ -107,7 +107,7 @@ const Page = () => {
107107
<div>
108108
<Navbar />
109109
</div>
110-
<div className="2xl:my-12 flex flex-col items-center">
110+
<div className="2xl:my-15 flex flex-col items-center">
111111
<fieldset className="mb-4 w-[350px] rounded-lg border-2 border-gray-300 p-4 pr-8">
112112
<legend className="text-lg font-bold">Select paper parameters</legend>
113113

src/components/Footer.tsx

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,78 @@ import meta_icon from "../assets/meta_icon.svg";
66
import x_twitter_icon from "../assets/x_twitter_icon.svg";
77
import meta_icon_dark from "../assets/meta_icon_dark.svg";
88
import x_twitter_icon_dark from "../assets/x_twitter_icon_dark.svg";
9+
import Link from "next/link";
910

1011
export default function Footer() {
1112
return (
12-
<div className="flex md:flex-row flex-col gap-y-12 md:w-full md:px-12 mx-auto items-center justify-between pt-12">
13+
<div className="mx-auto flex flex-col items-center justify-between gap-y-12 pt-12 md:w-full md:flex-row md:px-12">
1314
<div className="flex items-center">
14-
<h1 className="jost bg-gradient-to-r from-[#562EE7] to-[#FFC6E8] bg-clip-text text-center text-3xl md:text-5xl font-bold text-transparent">
15+
<h1 className="jost bg-gradient-to-r from-[#562EE7] to-[#FFC6E8] bg-clip-text text-center text-3xl font-bold text-transparent md:text-5xl">
1516
Papers
1617
</h1>
17-
<Separator orientation="vertical" className="min-h-20 h-full mx-3" />
18+
<Separator orientation="vertical" className="mx-3 h-full min-h-20" />
1819
<div className="flex items-center">
1920
<Image
2021
src={ccLogo as HTMLImageElement}
2122
alt="codechef-logo"
2223
height={70}
2324
width={70}
2425
/>
25-
<p className="jost text-2xl md:text-4xl font-bold">CodeChef-VIT</p>
26+
<p className="jost text-2xl font-bold md:text-4xl">CodeChef-VIT</p>
2627
</div>
2728
</div>
2829

29-
<p className="text-xl md:block hidden">Made with Love By Codechef-VIT</p>
30-
<div className="flex gap-x-8 items-center">
31-
<Instagram />
32-
<Linkedin />
33-
<Youtube />
34-
<Image src={meta_icon} alt="meta-icon" height={24} width={24} className="dark:hidden"/>
35-
<Image src={x_twitter_icon} alt="x_twitter_icon" className="dark:hidden" height={24} width={24} />
36-
<Image src={meta_icon_dark} alt="meta-icon" className="hidden dark:block" height={24} width={24} />
37-
<Image src={x_twitter_icon_dark} alt="x_twitter_icon" className="hidden dark:block mb-2" height={24} width={24} />
30+
<p className="hidden text-xl md:block">Made with Love By Codechef-VIT</p>
31+
<div className="flex items-center gap-x-8">
32+
<a href="https://www.instagram.com/codechefvit/">
33+
<Instagram />
34+
</a>
35+
<a href="https://www.linkedin.com/company/codechefvit/">
36+
<Linkedin />
37+
</a>
38+
<a href="https://www.youtube.com/@CodeChefVIT">
39+
<Youtube />
40+
</a>
41+
<a href="https://www.facebook.com/codechefvit/">
42+
<Image
43+
src={meta_icon}
44+
alt="meta-icon"
45+
height={24}
46+
width={24}
47+
className="dark:hidden"
48+
/>
49+
</a>
50+
51+
<a href="https://www.facebook.com/codechefvit/">
52+
<Image
53+
src={meta_icon_dark}
54+
alt="meta-icon"
55+
className="hidden dark:block"
56+
height={24}
57+
width={24}
58+
/>
59+
</a>
60+
<Link href="https://x.com/codechefvit">
61+
<Image
62+
src={x_twitter_icon}
63+
alt="x_twitter_icon"
64+
className="dark:hidden"
65+
height={24}
66+
width={24}
67+
/>
68+
</Link>
69+
70+
<Link href="https://x.com/codechefvit">
71+
<Image
72+
src={x_twitter_icon_dark}
73+
alt="x_twitter_icon"
74+
className="mb-2 hidden dark:block"
75+
height={24}
76+
width={24}
77+
/>
78+
</Link>
3879
</div>
39-
<p className="text-xl block md:hidden">Made with Love By Codechef-VIT</p>
80+
<p className="block text-xl md:hidden">Made with Love By Codechef-VIT</p>
4081
</div>
4182
);
4283
}

src/components/Navbar.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import Link from "next/link";
88
function Navbar() {
99
return (
1010
<div className="flex items-center justify-between px-4 py-6 md:px-12">
11-
<div className="hidden w-[20%] md:block">
12-
<Image
13-
src={ccLogo as HTMLImageElement}
14-
alt="codechef-logo"
15-
height={70}
16-
width={70}
17-
/>
11+
<div className="hiddaen w-[20%] md:block">
12+
<a href="https://www.codechefvit.com/">
13+
<Image
14+
src={ccLogo as HTMLImageElement}
15+
alt="codechef-logo"
16+
height={70}
17+
width={70}
18+
/>
19+
</a>
1820
</div>
1921
<Link href="/" className="jost bg-gradient-to-r from-[#562EE7] to-[#FFC6E8] bg-clip-text text-center text-5xl font-bold text-transparent md:w-[60%] md:text-6xl">
2022
Papers

0 commit comments

Comments
 (0)