jeawin-astro 3.0.39 → 3.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.39",
3
+ "version": "3.0.40",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -0,0 +1,18 @@
1
+ ---
2
+ const {wrapper_class, inner_class} = Astro.props
3
+ ---
4
+ <!-- 图片翻转卡片 -->
5
+ <div class:list={["w-full h-full perspective-midrange", wrapper_class]} data-aos="flip-left">
6
+ <div class:list={["relative !w-full !h-full text-center transition-transform transform-3d duration-700 hover:rotate-y-180", inner_class]}>
7
+ <div class="absolute w-full h-full backface-hidden flex items-center justify-center">
8
+ <slot name="flip-card-front-html">
9
+ <p>正面内容</p>
10
+ </slot>
11
+ </div>
12
+ <div class="absolute w-full h-full backface-hidden flex items-center justify-center rotate-y-180">
13
+ <slot name="flip-card-back-html">
14
+ <p>背面内容</p>
15
+ </slot>
16
+ </div>
17
+ </div>
18
+ </div>
@@ -59,6 +59,7 @@ export {default as Vimeo} from "./vimeo.astro";
59
59
  export {default as Youtube} from "./youtube.astro";
60
60
  export {default as IframeVideo} from "./iframe_video.astro";
61
61
  export {default as Chatbot} from "./chatbot.astro";
62
+ export {default as FlipCard} from "./flip_card.astro";
62
63
 
63
64
  export * from "./bgs/index.ts";
64
65
  export * from "./blocks/index.ts";