vijayksingh

Glass Face

Cards

About

A dark glass bezel-and-screen frame (with a glare, shaded rim and inner shadow) used to display a link preview, code block, or image behind glass.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Face to your project and fits it to your theme.

Code

How Glass Face is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import GlassFace from "@/components/ui/glass-face";

export default function GlassFaceDemo() {
  return (
    <div className="w-full h-screen flex items-center justify-center bg-[#0E0E0F]">
      <GlassFace.Root className="w-72">
        <GlassFace.Screen className="aspect-[16/10] flex flex-col justify-between p-4">
          <span className="text-[11px] font-mono tracking-wide text-white/40">
            lanterns.photo
          </span>
          <div>
            <p className="text-sm font-medium text-white/90">night-market</p>
            <p className="text-[11px] text-white/40">Open ↗</p>
          </div>
        </GlassFace.Screen>
      </GlassFace.Root>
    </div>
  );
}

More by vijayksingh

View all
  • Weather Widget

    Weather Widget

    133
  • Meter

    Meter

    14
  • Skeleton Loader

    Skeleton Loader

    12
  • Textarea

    Textarea

    5
  • Soft Hardware Spinner

    Soft Hardware Spinner

    3
  • Well

    Well

    1
  • Settings List

    Settings List

  • Perfect Preview

    Perfect Preview

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198