jeawin-astro 3.0.8 → 3.0.10

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.8",
3
+ "version": "3.0.10",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@ const categories = get_children_categories(
33
33
  const ProductCountLang = render_value(all_langs, "product");
34
34
  ---
35
35
 
36
- <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
36
+ <div class="grid grid-cols-2 xl:grid-cols-6 gap-4">
37
37
  {
38
38
  categories.map((category: any) => (
39
39
  <a
@@ -12,6 +12,7 @@ import { render_url, render_value } from "../scripts/util.js";
12
12
 
13
13
  import DefaultImage from "./default_image.astro";
14
14
  import RenderImage from "./image.astro";
15
+ import Button from "./button.astro";
15
16
 
16
17
  const {
17
18
  img,
@@ -50,17 +51,16 @@ const RequestBtnText = render_value(all_langs, "request a quote");
50
51
  >{title}</a
51
52
  >
52
53
  </TitleTag>
53
- <div class="hidden md:block h-6 overflow-hidden">
54
+ <div class="hidden md:block h-9 overflow-hidden">
54
55
  <div
55
- class="h-6 text-center -translate-y-full group-hover:translate-y-0 transition-transform duration-300"
56
+ class="h-9 text-center -translate-y-full group-hover:translate-y-1 transition-transform duration-300"
56
57
  >
57
- <a
58
+ <Button tag_name="a"
58
59
  href={`${render_url(`request-a-quote`, base)}?product=${title}`}
59
- title={RequestBtnText} rel="nofollow">{RequestBtnText}</a
60
- >
60
+ title={RequestBtnText} rel="nofollow">{RequestBtnText}</Button>
61
61
  </div>
62
62
  <div
63
- class="h-6 flex items-center justify-center gap-5 text-center -translate-y-full group-hover:translate-y-0 transition-transform duration-300"
63
+ class="h-6 flex items-center justify-center gap-5 text-center -translate-y-full group-hover:translate-y-1 transition-transform duration-300"
64
64
  >
65
65
  {
66
66
  original_price ? (
@@ -43,7 +43,7 @@ const {
43
43
  show_children_categories = true,
44
44
  show_category_nodes = false,
45
45
  has_sider = false,
46
- layout = "grid gap-4 grid-cols-2 md:grid-cols-4",
46
+ layout = "grid gap-4 grid-cols-2 xl:grid-cols-4",
47
47
  node_item_component,
48
48
  } = Astro.props;
49
49