mutual-banner

PreviousNext

A banner component with optional code display for UI blocks.

Docs
tailwind-admincomponent

Preview

Loading preview…
app/components/ui-blocks/banners/code/MutualFriendBannerCode.tsx
import React from "react";
import { Card } from '@/components/ui/card'
import Image from "next/image";
import { Button } from "@/components/ui/button";
const MutualBannerCode = () => {
  return (
    <>
      <Card className="mt-[30px] text-center">
        <h5 className="text-lg mb-4">Mutual Friend Revealed</h5>
        <div className="relative w-fit mx-auto">
          <Image
            src="/images/profile/user-3.jpg"
            alt="banner"
            className="mx-auto w-[140px] rounded-full"
            width={140}
            height={140}
          />
          <span className="rounded-full absolute end-3 top-[5px] bg-error text-[10px] h-5 w-5 flex justify-center items-center text-white">
            1
          </span>
        </div>

        <div className="mx-auto mt-4">
          <h5 className="text-lg">Tommoie Henderson</h5>
          <p className="text-darklink mt-2 md:px-12">
            Accept the request and type a message
          </p>
          <div className="flex justify-center gap-3 mt-4">
            <Button>Accept</Button>
            <Button variant={"lighterror"}>Remove</Button>
          </div>
        </div>
      </Card>
    </>
  );
};

export default MutualBannerCode;

Installation

npx shadcn@latest add @tailwind-admin/mutual-banner

Usage

import { MutualBanner } from "@/components/mutual-banner"
<MutualBanner />