loop / src / components / PhoneFrame.jsx
46 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
const PhoneFrame = ({ children, className = '' }) => (
  <div className={`phone-frame ${className}`}>
    {/* Dynamic Island */}
    <div className="absolute top-[10px] left-1/2 -translate-x-1/2 z-10 w-[90px] h-[26px] bg-black rounded-full" />
    {/* Screen content */}
    <div className="absolute inset-[2px] rounded-[38px] overflow-hidden bg-black">
      {children}
    </div>
  </div>
);

export default PhoneFrame;

static mirror of HEAD · about · clone: git clone https://git.makefuture.ro/loop.git