Tailwind+DaisyUI驱动的HTML+CSS多主题卡片模板

发表时间: 2022-07-02 15:14

HelloWebUI 分享多主题、多语言、响应式web网页模板

移动端语言切换展示

IPad/PC 多主题展示

源码

<!DOCTYPE html>  <html>    <head>      <meta charset="UTF-8" />      <meta name="viewport" content="width=device-width, initial-scale=1.0" />      <link        href="https://cdn.jsdelivr.net/npm/daisyui@2.17.0/dist/full.css"        rel="stylesheet"        type="text/css"      />      <script src="https://cdn.tailwindcss.com"></script>    </head>    <body>      <!-- 更多响应式多主题模板: https://wcao.cc -->      <!-- 切换主题: <body data-theme='dark'> -->      <!-- 可用主题列表: https://daisyui.com/docs/themes/ -->      <div class="w-full max-w-sm px-4 py-3 mx-auto bg-base-100 rounded-md shadow-md"><div class="flex items-center justify-between"><span class="text-sm font-light text-base-content">Fish</span><span class="px-3 py-1 text-xs btn btn-primary btn-sm uppercase rounded-full">Metal</span></div><div><h1 class="mt-2 text-lg font-semibold text-base-content">Handcrafted Fresh Mouse</h1><p class="mt-2 text-sm text-base-content text-opacity-80">Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support</p></div><div><div class="flex items-center mt-2 text-base-content text-opacity-70"><span>after:</span><a class="btn btn-link">lazily</a><span>kitsch</span><a class="btn btn-link">yippee</a></div><div class="flex items-center justify-center mt-4"><a class="mr-2 btn btn-link"><svg class="w-5 h-5 fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496,109.5a201.8,201.8,0,0,1-56.55,15.3,97.51,97.51,0,0,0,43.33-53.6,197.74,197.74,0,0,1-62.56,23.5A99.14,99.14,0,0,0,348.31,64c-54.42,0-98.46,43.4-98.46,96.9a93.21,93.21,0,0,0,2.54,22.1,280.7,280.7,0,0,1-203-101.3A95.69,95.69,0,0,0,36,130.4C36,164,53.53,193.7,80,211.1A97.5,97.5,0,0,1,35.22,199v1.2c0,47,34,86.1,79,95a100.76,100.76,0,0,1-25.94,3.4,94.38,94.38,0,0,1-18.51-1.8c12.51,38.5,48.92,66.5,92.05,67.3A199.59,199.59,0,0,1,39.5,405.6,203,203,0,0,1,16,404.2,278.68,278.68,0,0,0,166.74,448c181.36,0,280.44-147.7,280.44-275.8,0-4.2-.11-8.4-.31-12.5A198.48,198.48,0,0,0,496,109.5Z"></path></svg></a><a class="mr-2 btn btn-link"><svg class="w-5 h-5 fill-current" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.8283 12L16.2426 13.4142L19.071 10.5858C20.6331 9.02365 20.6331 6.49099 19.071 4.9289C17.5089 3.3668 14.9762 3.3668 13.4141 4.9289L10.5857 7.75732L11.9999 9.17154L14.8283 6.34311C15.6094 5.56206 16.8757 5.56206 17.6568 6.34311C18.4378 7.12416 18.4378 8.39049 17.6568 9.17154L14.8283 12Z"></path><path d="M12 14.8285L13.4142 16.2427L10.5858 19.0711C9.02365 20.6332 6.49099 20.6332 4.9289 19.0711C3.3668 17.509 3.3668 14.9764 4.9289 13.4143L7.75732 10.5858L9.17154 12L6.34311 14.8285C5.56206 15.6095 5.56206 16.8758 6.34311 17.6569C7.12416 18.4379 8.39049 18.4379 9.17154 17.6569L12 14.8285Z"></path><path d="M14.8284 10.5857C15.2189 10.1952 15.2189 9.56199 14.8284 9.17147C14.4379 8.78094 13.8047 8.78094 13.4142 9.17147L9.17154 13.4141C8.78101 13.8046 8.78101 14.4378 9.17154 14.8283C9.56206 15.2188 10.1952 15.2188 10.5857 14.8283L14.8284 10.5857Z"></path></svg></a></div></div></div>    </body>  </html>  

往期推荐

  • 「Card」商品基本信息展示
  • 「Card」个人基本信息展示