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
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down Expand Up @@ -129,8 +131,6 @@
}
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

@keyframes shimmer {
0% {
background-position: -400px 0;
Expand Down
12 changes: 12 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ const moods = [
{ id: 'silly', name: 'Silly', emoji: '🤪', color: '#FFC107', glow: '#FFD54F' }
];

interface Orb {
id: number;
color: string;
width: number;
height: number;
left: number;
top: number;
x: number;
y: number;
duration: number;
}

export default function Home() {
const { startTransition } = usePageTransition();
const [selectedMoods, setSelectedMoods] = useState<string[]>([]);
Expand Down
2 changes: 2 additions & 0 deletions components/OrbVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ interface Particle {
id: number;
angle: number;
distance: number;
duration: number; // Added
}

export function OrbVisualizer({ mood }: OrbVisualizerProps) {
Expand Down Expand Up @@ -82,6 +83,7 @@ export function OrbVisualizer({ mood }: OrbVisualizerProps) {
const [particles, setParticles] = useState<{ id: number; angle: number; distance: number; duration: number }[]>([]);

useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
setParticles(Array.from({ length: 12 }, (_, i) => ({
id: i,
angle: (i * 30) * (Math.PI / 180),
Expand Down
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import next from "eslint-config-next";

const config = [
{
ignores: ["node_modules/", ".next/", "dist/"],
},
...next,
];

export default config;
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading
Loading