jeawin-astro 3.0.6 → 3.0.9

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.6",
3
+ "version": "3.0.9",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -48,7 +48,7 @@ const final_content = truncate(content, {
48
48
  always_show_img ? (
49
49
  <Fragment>
50
50
  <div class="flex justify-center">
51
- {img ? <JeawinImage img_html={img_html} /> : <DefaultImage />}
51
+ {img ? <JeawinImage img_html={img_html} add_classes="border border-gray-200" /> : <DefaultImage />}
52
52
  </div>
53
53
  </Fragment>
54
54
  ) : (
@@ -56,7 +56,7 @@ const final_content = truncate(content, {
56
56
  always_show_img ? (
57
57
  <Fragment>
58
58
  {img ? (
59
- <JeawinImage img_html={img_html} add_classes="card-img" />
59
+ <JeawinImage img_html={img_html} add_classes="card-img border border-gray-200" />
60
60
  ) : (
61
61
  <DefaultImage class="card-img" />
62
62
  )}
@@ -66,7 +66,7 @@ const final_content = truncate(content, {
66
66
  {img ? (
67
67
  <Fragment>
68
68
  {!is_default_image(img) ? (
69
- <JeawinImage img_html={img_html} add_classes="card-img" />
69
+ <JeawinImage img_html={img_html} add_classes="card-img border-gray-200" />
70
70
  ) : null}
71
71
  </Fragment>
72
72
  ) : null}
@@ -40,7 +40,7 @@ const final_content = truncate(content, {
40
40
  class="flex flex-col md:flex-row gap-5 border-b border-solid border-[#eee] mb-5 pb-5 p-2 md:py-8 md:px-4 bg-white rounded-lg shadow-lg transition-transform duration-300 hover:-translate-y-[5px]"
41
41
  >
42
42
  <div class="md:w-1/5">
43
- {img ? <RenderImage img_html={img_html} /> : <DefaultImage />}
43
+ {img ? <RenderImage img_html={img_html} add_classes="border border-gray-200" /> : <DefaultImage />}
44
44
  </div>
45
45
  <div class="md:w-4/5">
46
46
  {
@@ -48,7 +48,7 @@ const final_content = truncate(content, {
48
48
  <div class="mb-3 text-sm text-[#6c757d]">{category_name}</div>
49
49
  ) : null
50
50
  }
51
- <TitleTag class="text-2xl mb-3 font-bold">
51
+ <TitleTag class="text-2xl mb-3">
52
52
  <a href={render_url(node_url, base)} title={title}>{title}</a>
53
53
  </TitleTag>
54
54
  <div class="mb-3 text-sm text-[#666] leading-relaxed">
@@ -47,7 +47,7 @@ const ProductCountLang = render_value(all_langs, "product");
47
47
  <div>
48
48
  <JeawinImage
49
49
  img_html={category.category_picurl_html}
50
- add_classes="mx-auto size-full"
50
+ add_classes="mx-auto size-full border border-gray-200"
51
51
  />
52
52
  </div>
53
53
  ) : null}
@@ -48,7 +48,7 @@ if (render_value(node, "content")) {
48
48
  ) : (
49
49
  <a href={render_url(node.node_url, base)} title={node.node_title}>
50
50
  {node.node_picurl ? (
51
- <RenderImage img_html={node.node_picurl_html} />
51
+ <RenderImage img_html={node.node_picurl_html} add_classes="border border-gray-200" />
52
52
  ) : (
53
53
  <DefaultImage />
54
54
  )}
@@ -58,7 +58,7 @@ if (render_value(node, "content")) {
58
58
  ) : (
59
59
  <a href={render_url(node.node_url, base)} title={node.node_title}>
60
60
  {node.node_picurl ? (
61
- <RenderImage img_html={node.node_picurl_html} />
61
+ <RenderImage img_html={node.node_picurl_html} add_classes="border border-gray-200" />
62
62
  ) : (
63
63
  <DefaultImage />
64
64
  )}
@@ -67,7 +67,7 @@ if (render_value(node, "content")) {
67
67
  }
68
68
  </div>
69
69
  <div class="mt-7">
70
- <TitleTag class="text-center font-bold">
70
+ <TitleTag class="text-center">
71
71
  <a href={render_url(node.node_url, base)} title={node.node_title}
72
72
  >{node.node_title}</a
73
73
  >
@@ -35,11 +35,11 @@ const TitleTag = title_tag || "div";
35
35
  title={title}
36
36
  class="flex items-center justify-center mb-3 h-full"
37
37
  >
38
- {img ? <RenderImage img_html={img_html} /> : <DefaultImage />}
38
+ {img ? <RenderImage img_html={img_html} add_classes="border border-gray-200" /> : <DefaultImage />}
39
39
  </a>
40
40
 
41
41
  <div class="text-[var(--themeColor)] mb-2">{category_name}</div>
42
- <TitleTag class="font-bold mb-3">
42
+ <TitleTag class="mb-3">
43
43
  <a href={render_url(node_url, base)} title={title}>{title}</a>
44
44
  </TitleTag>
45
45
  <div class="flex items-center gap-3 text-[#6c757d] fill-[#6c757d] text-sm">
@@ -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,
@@ -37,14 +38,14 @@ const RequestBtnText = render_value(all_langs, "request a quote");
37
38
  <a
38
39
  href={render_url(node_url, base)}
39
40
  title={title}
40
- class="flex items-center justify-center mb-3 h-full"
41
+ class="flex items-center justify-center h-full"
41
42
  >
42
- {img ? <RenderImage img_html={img_html} /> : <DefaultImage />}
43
+ {img ? <RenderImage img_html={img_html} add_classes="border border-gray-200" /> : <DefaultImage />}
43
44
  </a>
44
45
 
45
46
  <div class="p-3">
46
47
  <TitleTag
47
- class="my-2 text-[#222] line-clamp-1 font-bold hover:text-[#e53e3e] hover:underline"
48
+ class="my-2 text-[#222] hover:text-[#e53e3e] hover:underline"
48
49
  >
49
50
  <a href={render_url(node_url, base)} title={title} class="block text-center"
50
51
  >{title}</a
@@ -54,10 +55,9 @@ const RequestBtnText = render_value(all_langs, "request a quote");
54
55
  <div
55
56
  class="h-6 text-center -translate-y-full group-hover:translate-y-0 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
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"
@@ -81,7 +81,7 @@ switch (node_item_component) {
81
81
  {
82
82
  category.category_picurl_html ? (
83
83
  <div class:list={["md:w-1/4", {'md:order-2':idx % 2 === 1}]}>
84
- <JeawinImage img_html={category.category_picurl_html} add_classes="size-full" />
84
+ <JeawinImage img_html={category.category_picurl_html} add_classes="size-full border border-gray-200" />
85
85
  </div>
86
86
  ) : null
87
87
  }