Files
aurora-admin/site/end-preview/carousel.react.html
T

25 lines
1.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN" data-end="react" data-slug="carousel">
<head>
<meta charset="utf-8">
<title>carousel · React 预渲染</title>
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="../../frameworks/Carousel.css">
<style>
/* 演示页的 body 口径(见 frameworks/*.html 的 <style>):组件 CSS 不写 body 样式,
而 .btn 这类 inline-flex 元素的高度依赖行高与留白,缺了就会塌成 0 高。 */
body { margin: 0; padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body);
font-family: var(--kole-font-family); font-size: 14px; line-height: 22px; }
#kole-end-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html.kole-dark body { background: var(--kole-color-page-bg); color: var(--kole-color-text-body); }
</style>
</head>
<body class="kole-end-preview-body">
<!-- 该端实现(frameworks/Carousel.jsx)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
<div id="kole-end-preview" data-end="react" data-slug="carousel">
<div class="kole-carousel"><div class="kole-carousel-track" style="transform:translateX(-0%)"><div class="kole-carousel-slide"></div></div><button class="kole-carousel-arrow prev">‹</button><button class="kole-carousel-arrow next">›</button><div class="kole-carousel-dots"><span class="kole-carousel-dot is-active"></span></div></div>
</div>
</body>
</html>