Skip to content

Commit

Permalink
chore: get images back, and fix few stuff until next term
Browse files Browse the repository at this point in the history
  • Loading branch information
anishshobithps committed Sep 15, 2024
1 parent b0118d3 commit db557c5
Show file tree
Hide file tree
Showing 7 changed files with 1,435 additions and 1,464 deletions.
7 changes: 6 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ const nextConfig = {
destination: "/coordinators/verify/:id",
permanent: true,
},
{
source: "/register",
destination: "/",
permanent: true,
}
];
},
images: {
formats: ["image/avif", "image/webp"],
remotePatterns: [
{
protocol: "https",
hostname: "assets.tiarasjec.in",
hostname: "raw.githubusercontent.com",
port: "",
pathname: "/**",
},
Expand Down
3 changes: 0 additions & 3 deletions src/app/(content)/events/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Image from "next/image";
import { CardBody, CardContainer, CardItem } from "@/components/ui/3d-card";
import { tiaraFont } from "@/lib/fonts";
import { cn } from "@/lib/utils";
import Link from "next/link";

function toTitleCase(str: string) {
return str.replace(/\w\S*/g, function (txt) {
Expand Down Expand Up @@ -51,7 +50,6 @@ export default function EventsPage() {


(card.id !== "15" && card.id !== "14") ? (
<Link href={`/events/${pathname.split("/")[2]}/${card.id}`} key={index}>
<CardContainer
key={index}
containerClassName="relative flex items-center justify-center transition-all duration-200 ease-linear"
Expand All @@ -70,7 +68,6 @@ export default function EventsPage() {
</CardItem>
</CardBody>
</CardContainer>
</Link>
) : (
<CardContainer
key={index}
Expand Down
3 changes: 1 addition & 2 deletions src/app/(content)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Lenis from "@/components/shared/lenis";
import { LabIntro } from "@/components/story/intro";
import { HeroParallax } from "@/components/widgets/Hero";
import { tiaraAssetsPrefix } from "@/lib/utils";
import RegisterNow from "../../components/ui/registernow";
import EventsPage from "./events/page";
import {Sponsers} from "@components/widgets/GoldSponser"

Expand Down Expand Up @@ -34,7 +33,7 @@ export default function Home() {
<Sponsers/>
<LabIntro />
<EventsPage />
<RegisterNow />
{/* <RegisterNow /> */}
</Lenis>
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Footer = () => {
<p className="text-sm text-white sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4 ">
© 2024 Developed by
<a
href="https://gdscsjec.in/"
href="https://github.com/gdscsjec"
className="text-white font-bold ml-1 hover:text-tiara_red transition-all"
rel="noopener noreferrer"
target="_blank"
Expand Down
34 changes: 2 additions & 32 deletions src/components/widgets/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from "next/link";
import { signIn, useSession } from "next-auth/react";
import { HamburgerMenuIcon, Cross1Icon } from "@radix-ui/react-icons";
import { tiaraFont } from "@/lib/fonts";
import { cn } from "@/lib/utils";
import { cn, tiaraAssetsPrefix } from "@/lib/utils";

interface NavItem {
label: string;
Expand All @@ -30,10 +30,6 @@ const navItems: NavItem[] = [
label: "about",
href: "/about",
},
{
label: "schedule",
href: "https://assets.tiarasjec.in/schedule.pdf",
}
];

export function Header() {
Expand Down Expand Up @@ -86,36 +82,10 @@ export function Header() {
tiaraFont.className
)}
>
<Link href="https://assets.tiarasjec.in/rulebook.pdf">
<Link href={`${tiaraAssetsPrefix}/rulebook.pdf`}>
rulebook
</Link>
</Button>
{session && session.user ? (
<Button
asChild
className={cn(
"tracking-widest flex items-center font-medium md:my-6",
tiaraFont.className
)}
>
<Link href={"/register"}>register</Link>
</Button>
) : (
<Button
className={cn(
"tracking-widest flex items-center font-medium md:my-6",
tiaraFont.className
)}
onClick={async () =>
await signIn("google", {
callbackUrl: "/register",
redirect: true,
})
}
>
register now!
</Button>
)}
</div>
</div>
</nav>
Expand Down
Loading

0 comments on commit db557c5

Please sign in to comment.