tailwind布局文字图表卡片效果代码

代码语言:html

所属分类:布局界面

代码描述:tailwind布局文字图表卡片效果代码

代码标签: tailwind 布局 文字 图表 卡片

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/particles-min.js"></script>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap">
  <style>
    body { font-family: 'Inter', sans-serif; }
    #particles-js {
      position: fixed;
      inset: 0;
      z-index: 0;
      width: 100vw;
      height: 100vh;
    }
    .circle-chart {
      transform: rotate(-90deg);
      transform-origin: center;
    }
    @keyframes progressAnimation {
      0% { stroke-dashoffset: 565.48; }
      100% { stroke-dashoffset: var(--dash-offset); }
    }
    .progress-circle {
      stroke-dasharray: 565.48; /* 2PI×r, where r=90 */
      stroke-dashoffset: var(--dash-offset);
      animation: progressAnimation 1.5s ease-out forwards;
    }
  </style>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.16.js"></script>
</head>
<body class="bg-gray-950 min-h-screen flex items-center justify-center p-4 relative overflow-hidden">
  <!-- Particles.js Background -->
  <div id="particles-js"></div>

  <!-- Hero Card -->
  <div class="relative z-10 max-w-3xl w-full bg-black/40 backdrop-blur-sm rounded-xl overflow-hidden shadow-lg border border-gray-800 flex flex-col md:flex-row">
    <!-- Visualization Column with improved chart -->
    <div class="md:w-1/2 h-72 md:h-auto relative flex items-center justify-center bg-gradient-to-br from-gray-900 to-black">
      <div class="absolute top-4 left-4 z-10">
        <span class="px-2 py-1 bg-gray-800/80 rounded-full text-xs text-gray-400 mb-2 inline-block">HERO</span>
        &.........完整代码请登录后点击上方下载按钮下载查看

网友评论0