Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/api/src/middleware/procedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const isAdmin = protectedProcedure.use(async ({ ctx, next }) => {
let admin = ctx.cache.get<typeof admins.$inferSelect>(cacheKey);

if (!admin) {
admin = await ctx.db!.query.admins.findFirst({
admin = await ctx.db!.query.admins.findFirst({ // try catch for ctx.db
where: and(
eq(admins.userId, ctx.userId!),
eq(admins.isActive, true)
Expand Down
2 changes: 2 additions & 0 deletions packages/api/src/routers/hello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export const helloRouter = createTRPCRouter({
sayHelloAuth,
greet,
});


2 changes: 1 addition & 1 deletion sites/mainweb/.cache/tsbuildinfo.json

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions sites/mainweb/app/(portal)/submit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@ function SubmitPortalContent() {

export default function SubmitPortalPage() {
return (
<Suspense fallback={<LoadingScreen message="Initializing Workspace..." />}>
<SubmitPortalContent />
</Suspense>
<>
<Suspense fallback={<LoadingScreen message="Initializing Workspace..." />}>
<SubmitPortalContent />
</Suspense>
</>
);
}
46 changes: 46 additions & 0 deletions sites/mainweb/app/team/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,52 @@ const Team = () => {
</p>
</div>

{/* IDEaS Lab Banner */}
<div className="max-w-7xl mx-auto px-6 lg:px-12 mb-12">
<a
href="https://ideas.gatech.edu"
target="_blank"
rel="noopener noreferrer"
id="ideas-card"
className="group relative flex flex-col sm:flex-row items-center gap-6 w-full rounded-2xl border border-white/10 bg-[#0a0a0a] p-8 overflow-hidden transition-all duration-500 hover:border-[#B3A369]/40 hover:shadow-[0_0_40px_rgba(179,163,105,0.12)] no-underline"
>
{/* Background glow */}
<div className="absolute inset-0 bg-gradient-to-br from-[#003057]/20 via-transparent to-[#B3A369]/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none" />
{/* GT Navy + Gold corner accent */}
<div className="absolute top-0 right-0 w-32 h-32 bg-gradient-to-bl from-[#B3A369]/10 to-transparent rounded-bl-full pointer-events-none" />

{/* Icon */}
<div className="relative flex-shrink-0 w-20 h-20 rounded-xl border border-[#B3A369]/30 bg-[#050505] flex items-center justify-center shadow-2xl">
<svg viewBox="0 0 48 48" fill="none" className="w-10 h-10" aria-hidden="true">
<path d="M24 4L6 14v12c0 9.94 7.74 19.24 18 21.6C34.26 45.24 42 35.94 42 26V14L24 4z" fill="#003057" stroke="#B3A369" strokeWidth="2" />
<text x="24" y="30" textAnchor="middle" fontSize="13" fontWeight="bold" fill="#B3A369" fontFamily="monospace">IDEaS</text>
</svg>
</div>

{/* Text */}
<div className="flex flex-col gap-2 flex-1 text-center sm:text-left">
<div className="inline-flex items-center justify-center sm:justify-start gap-2">
<span className="px-3 py-1 rounded-full bg-[#B3A369]/10 border border-[#B3A369]/25 text-[#B3A369] text-[10px] font-mono uppercase tracking-[0.2em]">
Supervising Lab
</span>
</div>
<h2 className="text-white text-xl font-bold tracking-tight">
Institute for Data Engineering and Science
</h2>
<p className="text-sm text-gray-400 leading-relaxed max-w-2xl">
IDEaS is the Georgia Tech research institute that oversees and supports DS@GT. It connects government, industry, and academia to advance foundational data science research, and provides the resources and faculty expertise that power our club&rsquo;s mission.
</p>
</div>

{/* Arrow */}
<div className="flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-300 translate-x-2 group-hover:translate-x-0">
<svg viewBox="0 0 24 24" fill="none" stroke="#B3A369" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="w-5 h-5">
<path d="M5 12h14M13 6l6 6-6 6" />
</svg>
</div>
</a>
</div>

{/* Team Grid Section */}
<Section id="teams" className="px-6 lg:px-12">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto">
Expand Down
4 changes: 3 additions & 1 deletion sites/mainweb/components/Background/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import React from "react";

interface BackgroundProps extends React.HTMLAttributes<HTMLDivElement> {}
interface BackgroundProps {
[key: string]: any;
}

export default function Background(props: BackgroundProps) {
return (
Expand Down
4 changes: 1 addition & 3 deletions sites/mainweb/components/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { ReactNode } from "react";

interface CardProps {
children: ReactNode;
children: any;
className?: string;
}

Expand Down
5 changes: 3 additions & 2 deletions sites/mainweb/components/Section/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ReactNode, HTMLAttributes } from "react";

interface SectionProps extends HTMLAttributes<HTMLDivElement> {
children: ReactNode;
interface SectionProps {
children: any;
makefull?: boolean;
[key: string]: any;
}

export default function Section({ children, makefull = false, ...rest }: SectionProps) {
Expand Down
5 changes: 3 additions & 2 deletions sites/mainweb/components/SmallHero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ReactNode, HTMLAttributes } from "react";

interface SmallHeroProps extends HTMLAttributes<HTMLDivElement> {
interface SmallHeroProps {
title: string;
desc?: string;
description?: string;
children?: ReactNode;
children?: any;
[key: string]: any;
}

export default function SmallHero({
Expand Down
5 changes: 3 additions & 2 deletions sites/mainweb/components/TeamCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import { ReactNode, HTMLAttributes } from "react";
import Image, { StaticImageData } from "next/image";

interface TeamCardProps extends HTMLAttributes<HTMLDivElement> {
interface TeamCardProps {
img: string | StaticImageData;
name: string;
title: string;
zoom?: boolean;
children?: ReactNode;
children?: any;
[key: string]: any;
}

export default function TeamCard({
Expand Down
7 changes: 4 additions & 3 deletions sites/mainweb/components/Text/Major/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ReactNode, HTMLAttributes, JSX } from "react";

interface MajorProps extends HTMLAttributes<HTMLElement> {
interface MajorProps {
type?: "primary" | "secondary" | "a" | "b";
as?: keyof JSX.IntrinsicElements;
as?: any;
compact?: boolean;
children: ReactNode;
children: any;
[key: string]: any;
}

export default function Major({
Expand Down
5 changes: 3 additions & 2 deletions sites/mainweb/components/Text/Mini/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ReactNode, HTMLAttributes } from "react";

interface MiniProps extends HTMLAttributes<HTMLParagraphElement> {
children: ReactNode;
interface MiniProps {
children: any;
[key: string]: any;
}

export default function Mini({ children, className, ...props }: MiniProps) {
Expand Down
5 changes: 3 additions & 2 deletions sites/mainweb/components/Text/Minor/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ReactNode, HTMLAttributes } from "react";

interface MinorProps extends HTMLAttributes<HTMLHeadingElement> {
interface MinorProps {
type?: "primary" | "secondary";
children: ReactNode;
children: any;
[key: string]: any;
}

export default function Minor({ type = "primary", children, className, ...props }: MinorProps) {
Expand Down
2 changes: 1 addition & 1 deletion sites/mainweb/components/portal/LoadingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface LoadingScreenProps {
message?: string;
}

export function LoadingScreen({ message = 'Loading...' }: LoadingScreenProps): React.ReactElement {
export function LoadingScreen({ message = 'Loading...' }: LoadingScreenProps) {
return (
<div className="min-h-screen bg-[#050505] flex flex-col items-center justify-center relative overflow-hidden">
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-32 h-32 bg-cyan-500/10 rounded-full blur-[40px] pointer-events-none" />
Expand Down
2 changes: 1 addition & 1 deletion sites/mainweb/lib/trpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import { createTRPCReact } from "@trpc/react-query";
import type { AppRouter } from "@query/api";

export const trpc = createTRPCReact<AppRouter>();
export const trpc = createTRPCReact<AppRouter>();
Loading