Skip to content

Instantly share code, notes, and snippets.

View Xeven777's full-sized avatar
🏠
Working from home

Anish Biswas Xeven777

🏠
Working from home
View GitHub Profile
@Xeven777
Xeven777 / clarity.tsx
Created January 21, 2026 09:04
Clarity
"use client";
import Script from "next/script";
const Clarity = () => {
return (
<>
<Script strategy="lazyOnload" id="clarity-script">
{`
(function(c,l,a,r,i,t,y){
@Xeven777
Xeven777 / skeumorphicgradient.css
Last active January 18, 2026 17:09
skeumorphic gradients
/* Sky gradient with border glow effect - reusable for buttons, tabs, cards */
.sky-gradient-glow {
position: relative;
background: linear-gradient(to bottom, rgb(125, 211, 252), rgb(14, 165, 233));
transition: all 0.3s ease;
box-shadow: 0 10px 25px rgba(0, 188, 255, 0.3);
}
.sky-gradient-glow::before {
content: "";
@Xeven777
Xeven777 / shimmertext.css
Last active January 13, 2026 20:01
shimmer text animation
@keyframes bg-pan {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.animate-bg-pan {
@Xeven777
Xeven777 / ToasterWithTheme.tsx
Created March 12, 2025 16:37
Toaster With Theme support
'use client';
import { useTheme } from 'next-themes';
import { Toaster } from '@/components/ui/sonner';
const ToasterwithTheme = () => {
const { theme } = useTheme();
return (
<Toaster
richColors
closeButton
@Xeven777
Xeven777 / prismadb.ts
Created January 30, 2025 05:54
Safe way to initialise Prisma Client
import { PrismaClient } from "@prisma/client";
const prismaClientSingleton = () => {
return new PrismaClient();
};
type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>;
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClientSingleton | undefined;
};
/* Headings */
.markdown-body h1 {
font-size: 2.5rem; /* 40px */
}
.markdown-body h2 {
font-size: 2rem; /* 32px */
}
html {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: inherit;
margin: 0;
padding: 0;
}