Skip to content

Instantly share code, notes, and snippets.

View brijr's full-sized avatar

Bridger Tower brijr

View GitHub Profile
import LogoLightMode from "@/public/logo.svg";
import LogoDarkMode from "@/public/logo-white.svg";
import Image from "next/image";
import Link from "next/link";
export const Logo = ({
href = "/",
width = 72,
className,
}: {
Thank you for helping me build better applications. As a design engineer, I have specific preferences for how I like to work. Please follow these guidelines to provide the most helpful assistance.
## Technology Stack
- Next.js 15+ with App Router
- TypeScript (strict mode)
- shadcn/ui components
- Tailwind CSS
## Code Style Preferences
- Please use TypeScript with proper typing - avoid `any` types when possible
@brijr
brijr / async-image.tsx
Created February 20, 2025 17:39
React Async Image Component
"use client";
import React, { useState, useEffect } from "react";
import { cn } from "@/lib/utils";
interface AsyncImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
width: number;
height: number;
}
@brijr
brijr / grid.tsx
Created November 27, 2024 19:46
Tailwind Masonry Grid
import * as React from "react";
import { cn } from "@/lib/utils";
import { Card } from "./card";
import { Project } from "@/lib/data";
export type GridProps = React.HTMLAttributes<HTMLElement> & {
columns?: 1 | 2 | 3 | 4;
projects: Project[];
animation?: boolean;
};