Skip to content

Commit 895654d

Browse files
committed
fix(ui): correct particle angles and tailwind typo
Fix particle angle distribution Correct malformed Tailwind width class Use Ref type instead of React.RefObject in Footer
1 parent 0e2c3c4 commit 895654d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

frontend/components/home/CodeCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export function CodeCard({ fileName, snippet, className }: CodeCardProps) {
2121
<div className="bg-card/90 relative max-w-[200px] min-w-[180px] overflow-hidden rounded-2xl border border-[var(--accent-primary)]/20 px-3.5 py-3 shadow-2xl backdrop-blur-xl lg:max-w-[220px] lg:min-w-[200px] lg:px-4 lg:py-3.5 xl:max-w-[240px] xl:min-w-[220px] xl:px-4 xl:py-3.5 dark:shadow-[var(--accent-primary)]/10">
2222
<div className="text-muted-foreground/80 mb-2 flex items-center justify-between text-[9px] lg:text-[10px] xl:text-xs">
2323
<div className="flex items-center gap-1">
24-
<span className="h-1.5 w-1.5 rounded-full bg-red-400/80 shadow-sm lg:h-2 lg:w-2 xl:h-2.5 xl:w-2.5" />
25-
<span className="h-1.5 w-1.5 rounded-full bg-yellow-400/80 shadow-sm lg:h-2 lg:w-2 xl:h-2.5 xl:w-2.5" />
26-
<span className="xl:w-2. h-1.5 w-1.5 rounded-full bg-green-400/80 shadow-sm lg:h-2 lg:w-2 xl:h-2.5" />
24+
<span className="h-1.5 w-1.5 rounded-full bg-red-400/80 shadow-sm lg:h-2 lg:w-2" />
25+
<span className="h-1.5 w-1.5 rounded-full bg-yellow-400/80 shadow-sm lg:h-2 lg:w-2" />
26+
<span className="h-1.5 w-1.5 rounded-full bg-green-400/80 shadow-sm lg:h-2 lg:w-2" />
2727
</div>
2828
<span className="text-[8.5px] font-medium lg:text-[9.5px] xl:text-[10.5px]">
2929
{fileName}

frontend/components/home/InteractiveCTAButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const InteractiveCTAButton = React.forwardRef<HTMLAnchorElement>(
4545

4646
const particles = Array.from({ length: 12 }, (_, i) => ({
4747
id: i,
48-
angle: (i * 360) / 8,
48+
angle: (i * 360) / 12,
4949
}));
5050

5151
return (

frontend/components/shared/Footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Github, Linkedin, Send } from 'lucide-react';
44
import { useSelectedLayoutSegments } from 'next/navigation';
55
import { useTranslations } from 'next-intl';
6+
import type { Ref } from 'react';
67

78
import { ThemeToggle } from '@/components/theme/ThemeToggle';
89
import { Link } from '@/i18n/routing';
@@ -21,7 +22,7 @@ const SOCIAL = [
2122
export default function Footer({
2223
footerRef,
2324
}: {
24-
footerRef?: React.RefObject<HTMLElement>;
25+
footerRef?: Ref<HTMLElement>;
2526
}) {
2627
const t = useTranslations('footer');
2728
const segments = useSelectedLayoutSegments();

0 commit comments

Comments
 (0)