Skip to content

Commit f2641d0

Browse files
authored
Merge pull request #58 from DataScience-GT/refactor/routes
Refactor/routes
2 parents cf6202f + c307b9c commit f2641d0

File tree

19 files changed

+1460
-162
lines changed

19 files changed

+1460
-162
lines changed

packages/ui/.cache/tsbuildinfo.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/ui/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
22
"name": "@query/ui",
33
"version": "0.0.0",
4+
"type": "module",
45
"sideEffects": [
56
"**/*.css"
67
],
78
"files": [
89
"dist"
910
],
11+
"main": "./dist/index.js",
12+
"types": "./dist/index.d.ts",
1013
"exports": {
14+
".": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.js",
17+
"default": "./dist/index.js"
18+
},
1119
"./styles": "./src/styles.css",
1220
"./styles.css": "./src/styles.css",
1321
"./*": "./dist/*.js"
@@ -40,4 +48,4 @@
4048
"minimatch": "^10.1.1",
4149
"react-dom": "^18.3.1 || ^19.0.0"
4250
}
43-
}
51+
}

packages/ui/src/glass.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React from "react";
2+
3+
interface GlassProps extends React.HTMLAttributes<HTMLDivElement> {
4+
children: React.ReactNode;
5+
className?: string;
6+
intensity?: "low" | "medium" | "high";
7+
}
8+
9+
export function Glass({
10+
children,
11+
className = "",
12+
intensity = "medium",
13+
...props
14+
}: GlassProps) {
15+
const intensityStyles = {
16+
low: "bg-black/40 backdrop-blur-md border-white/5",
17+
medium: "bg-black/60 backdrop-blur-lg border-white/10",
18+
high: "bg-black/80 backdrop-blur-xl border-white/20",
19+
};
20+
21+
return (
22+
<div
23+
className={`relative rounded-xl border shadow-xl overflow-hidden ${intensityStyles[intensity]} ${className}`}
24+
{...props}
25+
>
26+
{/* Glossy reflection effect */}
27+
<div className="pointer-events-none absolute -inset-px opacity-0 transition duration-300 group-hover:opacity-100"
28+
style={{
29+
background: `radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255,255,255,0.06), transparent 40%)`
30+
}}
31+
/>
32+
{/* Top highlight for glass edge */}
33+
<div className="absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-white/10 to-transparent" />
34+
35+
{children}
36+
</div>
37+
);
38+
}

packages/ui/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from "./glass.js";
2+
// Add other exports if needed, e.g.
3+
// export * from "./card";
4+
// export * from "./gradient";

packages/ui/tsconfig.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
{
22
"extends": "@query/tsconfig/internal-package.json",
33
"compilerOptions": {
4-
"lib": ["ES2022", "dom", "dom.iterable"],
5-
"jsx": "preserve",
6-
"rootDir": ".",
7-
"types": ["react"],
8-
"skipLibCheck": true
4+
"lib": [
5+
"ES2022",
6+
"dom",
7+
"dom.iterable"
8+
],
9+
"jsx": "react-jsx",
10+
"rootDir": "src",
11+
"types": [
12+
"react"
13+
],
14+
"skipLibCheck": true,
15+
"emitDeclarationOnly": false,
16+
"module": "ESNext",
17+
"outDir": "dist"
918
},
1019
"include": [
11-
"src",
12-
"../../apps/club/src/app/_components/landing/impact-assets/animata"
20+
"src"
1321
],
14-
"exclude": ["node_modules"]
22+
"exclude": [
23+
"node_modules"
24+
]
1525
}

0 commit comments

Comments
 (0)