jeawin-astro 3.0.27 → 3.0.28
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 +1 -1
- package/src/components/category_list.astro +4 -2
- package/src/components/filter_links.astro +2 -1
- package/src/components/filter_links_html.astro +2 -2
- package/src/components/footer/footer1.astro +2 -2
- package/src/components/footer/footer2.astro +3 -2
- package/src/components/header/header2.astro +2 -2
- package/src/components/header/header3.astro +3 -3
- package/src/components/news_category_list.astro +4 -2
- package/src/components/news_category_list1.astro +4 -2
- package/src/components/news_category_list2.astro +4 -2
- package/src/components/pricings/pricing9.astro +2 -2
- package/src/components/product_category_list.astro +4 -2
- package/src/components/smartmenus/smartmenus1.astro +4 -3
- package/src/components/stats/stat4.astro +1 -1
- package/src/components/tags_category_list.astro +4 -2
- package/src/layouts/Footer.astro +3 -2
- package/src/layouts/Header.astro +3 -3
- package/src/layouts/category.astro +2 -2
- package/src/layouts/channel.astro +2 -2
- package/src/layouts/page.astro +2 -1
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ interface Props {
|
|
|
26
26
|
has_sider?: boolean;
|
|
27
27
|
layout?: any;
|
|
28
28
|
node_item_component?: any;
|
|
29
|
+
max_width_screen?: any;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
const {
|
|
@@ -40,6 +41,7 @@ const {
|
|
|
40
41
|
has_sider = false,
|
|
41
42
|
layout = "grid gap-4 grid-cols-2 md:grid-cols-4",
|
|
42
43
|
node_item_component,
|
|
44
|
+
max_width_screen='max-w-screen-2xl'
|
|
43
45
|
} = Astro.props;
|
|
44
46
|
|
|
45
47
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -70,7 +72,7 @@ switch (node_item_component) {
|
|
|
70
72
|
data-aos="fade-up"
|
|
71
73
|
data-aos-once="false"
|
|
72
74
|
>
|
|
73
|
-
<div class={has_sider ? "w-full" : "
|
|
75
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
74
76
|
<div class="px-4">
|
|
75
77
|
<h2 class="text-2xl mb-7 text-center font-bold text-neutral-800 md:text-4xl md:leading-tight">
|
|
76
78
|
{category.category_name}
|
|
@@ -112,7 +114,7 @@ switch (node_item_component) {
|
|
|
112
114
|
))
|
|
113
115
|
) : (
|
|
114
116
|
<section class="py-12 bg-slate-50" data-aos="fade-up" data-aos-once="false">
|
|
115
|
-
<div class={has_sider ? "w-full" : "
|
|
117
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
116
118
|
<div class="px-4">
|
|
117
119
|
<NodesList
|
|
118
120
|
channel_id={channel_id}
|
|
@@ -19,6 +19,7 @@ const {
|
|
|
19
19
|
page_type,
|
|
20
20
|
url,
|
|
21
21
|
field_array,
|
|
22
|
+
max_width_screen = 'max-w-screen-2xl'
|
|
22
23
|
} = Astro.props;
|
|
23
24
|
const { jeawin_apikey, jeawin_api_domain, jeawin_api_path } = Astro.locals;
|
|
24
25
|
// console.log(field_array);
|
|
@@ -36,7 +37,7 @@ const filter_links = await jeawinapi.get_filter_links({
|
|
|
36
37
|
});
|
|
37
38
|
---
|
|
38
39
|
|
|
39
|
-
<div class="
|
|
40
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
40
41
|
<div class="px-4">
|
|
41
42
|
<div set:html={filter_links} />
|
|
42
43
|
</div>
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @email chaegumi@jeawin.com
|
|
9
9
|
* @filesource
|
|
10
10
|
*/
|
|
11
|
-
const {html} = Astro.props;
|
|
11
|
+
const {html, max_width_screen = 'max-w-screen-2xl'} = Astro.props;
|
|
12
12
|
---
|
|
13
13
|
{html ? (
|
|
14
|
-
<div class="
|
|
14
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
15
15
|
<div class="px-4">
|
|
16
16
|
<Fragment set:html={html} />
|
|
17
17
|
</div>
|
|
@@ -13,14 +13,14 @@ import SiteOptions from "../site_options.astro";
|
|
|
13
13
|
import SocialMedia from "../social_media.astro";
|
|
14
14
|
|
|
15
15
|
import { render_url, render_value } from "../../scripts/util.js";
|
|
16
|
-
|
|
16
|
+
const {max_width_screen = 'max-w-screen-2xl'} = Astro.props;
|
|
17
17
|
const { categoryuriarr, nodeuriarr, menuuriarr, all_langs,base, url_suffix } = Astro.locals;
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
<footer
|
|
21
21
|
class={`relative bg-[#222] text-[#aaa] mt-28 before:absolute before:left-0 before:top-0 before:w-[30%] before:h-[300px] before:bg-[url(/assets/images/footer-1.svg)] before:bg-no-repeat after:absolute after:right-0 after:bottom-0 after:w-[15%] after:h-[300px] after:bg-[url(/assets/images/footer-2.svg)] after:bg-no-repeat`}
|
|
22
22
|
>
|
|
23
|
-
<div class="
|
|
23
|
+
<div class:list={[max_width_screen, "mx-auto px-4"]}>
|
|
24
24
|
<div class="flex flex-wrap py-10">
|
|
25
25
|
<div class="md:w-1/3">
|
|
26
26
|
<Block block_id="736">
|
|
@@ -20,13 +20,14 @@ interface Props {
|
|
|
20
20
|
category_id: any;
|
|
21
21
|
url: any;
|
|
22
22
|
uri: any;
|
|
23
|
+
max_width_screen?: any;
|
|
23
24
|
}
|
|
24
25
|
const { all_langs } = Astro.locals;
|
|
25
|
-
const { canonical, is_home, channel_id, category_id, url, uri } = Astro.props;
|
|
26
|
+
const { canonical, is_home, channel_id, category_id, url, uri, max_width_screen = 'max-w-screen-2xl' } = Astro.props;
|
|
26
27
|
---
|
|
27
28
|
|
|
28
29
|
<footer class="bg-[#2a0c3b] text-white mt-28">
|
|
29
|
-
<div class="
|
|
30
|
+
<div class:list={[max_width_screen, "mx-auto px-4"]}>
|
|
30
31
|
<div class="py-4 text-center">
|
|
31
32
|
<Friendlinks
|
|
32
33
|
canonical={canonical}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import Smartmenus from "../smartmenus.astro";
|
|
12
12
|
|
|
13
|
-
const { seo_title, menu_root_link_id } = Astro.props;
|
|
13
|
+
const { seo_title, menu_root_link_id, max_width_screen = 'max-w-screen-2xl' } = Astro.props;
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
<header>
|
|
17
|
-
<div class="
|
|
17
|
+
<div class:list={[max_width_screen, "mx-auto relative z-[10001]"]}>
|
|
18
18
|
<Smartmenus menu_root_link_id={menu_root_link_id} />
|
|
19
19
|
</div>
|
|
20
20
|
</header>
|
|
@@ -13,7 +13,7 @@ import Smartmenus from "../smartmenus/smartmenus1.astro";
|
|
|
13
13
|
import JeawinApi from "../../scripts/cms.js";
|
|
14
14
|
import { render_url } from "../../scripts/util.js";
|
|
15
15
|
|
|
16
|
-
const { seo_title, menu_root_link_id, menu_position } = Astro.props;
|
|
16
|
+
const { seo_title, menu_root_link_id, menu_position, max_width_screen = 'max-w-screen-2xl' } = Astro.props;
|
|
17
17
|
|
|
18
18
|
const { jeawin_apikey, jeawin_api_domain, jeawin_api_path,base, url_suffix } = Astro.locals;
|
|
19
19
|
const jeawinapi = new JeawinApi({
|
|
@@ -28,7 +28,7 @@ const menus = await jeawinapi.get_menus({
|
|
|
28
28
|
|
|
29
29
|
<header>
|
|
30
30
|
<div class="bg-[#222] text-white">
|
|
31
|
-
<div class="
|
|
31
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
32
32
|
<div
|
|
33
33
|
class="flex flex-col md:flex-row gap-5 items-center justify-between px-4 py-2"
|
|
34
34
|
>
|
|
@@ -59,7 +59,7 @@ const menus = await jeawinapi.get_menus({
|
|
|
59
59
|
<div slot="megamenu">
|
|
60
60
|
{
|
|
61
61
|
(menu: any) => (
|
|
62
|
-
<div class="
|
|
62
|
+
<div class:list={[max_width_screen, "mx-auto grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4"]}>
|
|
63
63
|
{menu.children ? (
|
|
64
64
|
<Fragment>
|
|
65
65
|
{menu.children.map((itm: any) => (
|
|
@@ -34,6 +34,7 @@ interface Props {
|
|
|
34
34
|
has_sider?: boolean;
|
|
35
35
|
layout?: any;
|
|
36
36
|
node_item_component?: any;
|
|
37
|
+
max_width_screen?: any;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
const {
|
|
@@ -48,6 +49,7 @@ const {
|
|
|
48
49
|
has_sider = false,
|
|
49
50
|
layout = "grid gap-4 grid-cols-2 md:grid-cols-4",
|
|
50
51
|
node_item_component,
|
|
52
|
+
max_width_screen='max-w-screen-2xl'
|
|
51
53
|
} = Astro.props;
|
|
52
54
|
|
|
53
55
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -97,7 +99,7 @@ switch (node_item_component) {
|
|
|
97
99
|
{ "bg-[#ffffff]": idx % 2 === 1, "bg-slate-50": idx % 2 === 0 },
|
|
98
100
|
]}
|
|
99
101
|
>
|
|
100
|
-
<div class={has_sider ? "w-full" : "
|
|
102
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
101
103
|
<div class="px-4">
|
|
102
104
|
<h2 class="text-2xl text-center mb-7 font-bold text-neutral-800 flex flex-col gap-5 after:mx-auto after:w-1/12 after:border after:border-[var(--themeColor)] md:text-4xl md:leading-tight">
|
|
103
105
|
{category.category_name}
|
|
@@ -153,7 +155,7 @@ switch (node_item_component) {
|
|
|
153
155
|
))
|
|
154
156
|
) : (
|
|
155
157
|
<section class="py-12 bg-slate-50">
|
|
156
|
-
<div class={has_sider ? "w-full" : "
|
|
158
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
157
159
|
<div class="px-4">
|
|
158
160
|
<NodesList
|
|
159
161
|
channel_id={channel_id}
|
|
@@ -35,6 +35,7 @@ interface Props {
|
|
|
35
35
|
has_sider?: boolean;
|
|
36
36
|
layout?: any;
|
|
37
37
|
node_item_component?: any;
|
|
38
|
+
max_width_screen?: any;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
const {
|
|
@@ -49,6 +50,7 @@ const {
|
|
|
49
50
|
has_sider = false,
|
|
50
51
|
layout = "grid gap-4 grid-cols-2 md:grid-cols-4",
|
|
51
52
|
node_item_component,
|
|
53
|
+
max_width_screen='max-w-screen-2xl'
|
|
52
54
|
} = Astro.props;
|
|
53
55
|
|
|
54
56
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -98,7 +100,7 @@ switch (node_item_component) {
|
|
|
98
100
|
{ "bg-[#ffffff]": idx % 2 === 1, "bg-slate-50": idx % 2 === 0 },
|
|
99
101
|
]}
|
|
100
102
|
>
|
|
101
|
-
<div class={has_sider ? "w-full" : "
|
|
103
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
102
104
|
<div class="px-4">
|
|
103
105
|
<div class="md:flex md:gap-5">
|
|
104
106
|
<div class:list={["md:w-1/3", { "order-2": idx % 2 === 1 }]}>
|
|
@@ -165,7 +167,7 @@ switch (node_item_component) {
|
|
|
165
167
|
))
|
|
166
168
|
) : (
|
|
167
169
|
<section class="py-12 bg-slate-50">
|
|
168
|
-
<div class={has_sider ? "w-full" : "
|
|
170
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
169
171
|
<div class="px-4">
|
|
170
172
|
<NodesList
|
|
171
173
|
channel_id={channel_id}
|
|
@@ -35,6 +35,7 @@ interface Props {
|
|
|
35
35
|
has_sider?: boolean;
|
|
36
36
|
layout?: any;
|
|
37
37
|
node_item_component?: any;
|
|
38
|
+
max_width_screen?: any;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
const {
|
|
@@ -49,6 +50,7 @@ const {
|
|
|
49
50
|
has_sider = false,
|
|
50
51
|
layout = "grid gap-4 grid-cols-2 md:grid-cols-4",
|
|
51
52
|
node_item_component,
|
|
53
|
+
max_width_screen = 'max-w-screen-2xl'
|
|
52
54
|
} = Astro.props;
|
|
53
55
|
|
|
54
56
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -98,7 +100,7 @@ switch (node_item_component) {
|
|
|
98
100
|
{ "bg-[#ffffff]": idx % 2 === 1, "bg-slate-50": idx % 2 === 0 },
|
|
99
101
|
]}
|
|
100
102
|
>
|
|
101
|
-
<div class={has_sider ? "w-full" : "
|
|
103
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen,"mx-auto"]}>
|
|
102
104
|
<div>
|
|
103
105
|
<div>
|
|
104
106
|
{show_category_nodes ? (
|
|
@@ -156,7 +158,7 @@ switch (node_item_component) {
|
|
|
156
158
|
))
|
|
157
159
|
) : (
|
|
158
160
|
<section class="py-12 bg-slate-50">
|
|
159
|
-
<div class={has_sider ? "w-full" : "
|
|
161
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
160
162
|
<div class="px-4">
|
|
161
163
|
<NodesList
|
|
162
164
|
channel_id={channel_id}
|
|
@@ -36,7 +36,7 @@ const {base, url_suffix} = Astro.locals;
|
|
|
36
36
|
</div>
|
|
37
37
|
<div class="mt-16">
|
|
38
38
|
<div class="sticky top-0 py-6 border-b bg-white">
|
|
39
|
-
<div class="
|
|
39
|
+
<div class="mx-auto">
|
|
40
40
|
<ul class="ml-auto flex gap-x-6 px-4 md:px-8 lg:max-w-3xl">
|
|
41
41
|
{
|
|
42
42
|
plans.map((plan: any) => (
|
|
@@ -84,7 +84,7 @@ const {base, url_suffix} = Astro.locals;
|
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
<div
|
|
87
|
-
class="
|
|
87
|
+
class="mx-auto mt-10 space-y-4 px-4 overflow-auto md:overflow-visible md:px-8"
|
|
88
88
|
>
|
|
89
89
|
{
|
|
90
90
|
tables.map((table: any) => (
|
|
@@ -30,6 +30,7 @@ interface Props {
|
|
|
30
30
|
has_sider?: boolean;
|
|
31
31
|
layout?: any;
|
|
32
32
|
node_item_component?: any;
|
|
33
|
+
max_width_screen?: any;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
const {
|
|
@@ -45,6 +46,7 @@ const {
|
|
|
45
46
|
has_sider = false,
|
|
46
47
|
layout = "grid gap-4 grid-cols-2 xl:grid-cols-4",
|
|
47
48
|
node_item_component,
|
|
49
|
+
max_width_screen= 'max-w-screen-2xl'
|
|
48
50
|
} = Astro.props;
|
|
49
51
|
|
|
50
52
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -72,7 +74,7 @@ switch (node_item_component) {
|
|
|
72
74
|
{ "bg-[#ffffff]": idx % 2 === 1, "bg-slate-50": idx % 2 === 0 },
|
|
73
75
|
]} data-aos="fade-up" data-aos-once="false"
|
|
74
76
|
>
|
|
75
|
-
<div class={has_sider ? "w-full" : "
|
|
77
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]} x-data="{expanded: false}">
|
|
76
78
|
<div class="px-4">
|
|
77
79
|
<h2 class="text-2xl text-center mb-7 font-bold text-neutral-800 flex flex-col gap-5 after:mx-auto after:w-1/12 after:border after:border-[var(--themeColor)] md:text-4xl md:leading-tight">
|
|
78
80
|
{category.category_name}
|
|
@@ -161,7 +163,7 @@ switch (node_item_component) {
|
|
|
161
163
|
))
|
|
162
164
|
) : (
|
|
163
165
|
<section class="py-12 bg-slate-50" data-aos="fade-up" data-aos-once="false">
|
|
164
|
-
<div class={has_sider ? "w-full" : "
|
|
166
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
165
167
|
<div class="px-4">
|
|
166
168
|
<NodesList
|
|
167
169
|
channel_id={channel_id}
|
|
@@ -26,9 +26,10 @@ import { Icon } from "astro-icon/components";
|
|
|
26
26
|
interface Props {
|
|
27
27
|
menu_root_link_id: any;
|
|
28
28
|
menu_position?: any;
|
|
29
|
+
max_width_screen?: any;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
const { menu_root_link_id, menu_position = "left" } = Astro.props;
|
|
32
|
+
const { menu_root_link_id, menu_position = "left", max_width_screen="max-w-screen-2xl" } = Astro.props;
|
|
32
33
|
|
|
33
34
|
let MenuJustifyContent = "md:justify-normal";
|
|
34
35
|
switch (menu_position) {
|
|
@@ -73,7 +74,7 @@ const menus = await jeawinapi.get_menu_tree({ menu_id: 1 });
|
|
|
73
74
|
<!-- Navbar 1 -->
|
|
74
75
|
<nav id="navbar-header" class="sm-navbar gap-4 md:flex-col">
|
|
75
76
|
<div
|
|
76
|
-
class="
|
|
77
|
+
class:list={[max_width_screen, "mx-auto flex flex-wrap md:flex items-center w-full md:justify-between"]}
|
|
77
78
|
>
|
|
78
79
|
<div class="sm-brand order-2 md:order-1 flex-1 md:w-1/5">
|
|
79
80
|
<Logo />
|
|
@@ -109,7 +110,7 @@ const menus = await jeawinapi.get_menu_tree({ menu_id: 1 });
|
|
|
109
110
|
</div>
|
|
110
111
|
</div>
|
|
111
112
|
<div class="sm-collapse md:w-full md:flex md:border-t md:border-b">
|
|
112
|
-
<div class="
|
|
113
|
+
<div class:list={[max_width_screen, "w-full"]}>
|
|
113
114
|
<ul class:list={["sm-nav", "md:w-full", MenuJustifyContent]}>
|
|
114
115
|
{
|
|
115
116
|
menus.map((menu: any) =>
|
|
@@ -25,7 +25,7 @@ const {
|
|
|
25
25
|
|
|
26
26
|
<SectionContainer bgcolor={bgcolor} max_width_screen={max_width_screen}>
|
|
27
27
|
<div
|
|
28
|
-
class="
|
|
28
|
+
class="mx-auto px-4 text-gray-600 gap-x-12 items-start justify-between lg:flex md:px-8"
|
|
29
29
|
>
|
|
30
30
|
<div class="sm:hidden lg:block lg:max-w-xl">
|
|
31
31
|
{
|
|
@@ -26,6 +26,7 @@ interface Props {
|
|
|
26
26
|
has_sider?: boolean;
|
|
27
27
|
layout?: any;
|
|
28
28
|
node_item_component?: any;
|
|
29
|
+
max_width_screen?: any;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
const {
|
|
@@ -40,6 +41,7 @@ const {
|
|
|
40
41
|
has_sider = false,
|
|
41
42
|
layout = "",
|
|
42
43
|
node_item_component,
|
|
44
|
+
max_width_screen = 'max-w-screen-2xl'
|
|
43
45
|
} = Astro.props;
|
|
44
46
|
|
|
45
47
|
const { btn_class, all_categories, base, url_suffix } = Astro.locals;
|
|
@@ -63,7 +65,7 @@ const categories: any[] = _.filter(all_categories, (o: any) => {
|
|
|
63
65
|
data-aos="fade-up"
|
|
64
66
|
data-aos-once="false"
|
|
65
67
|
>
|
|
66
|
-
<div class={has_sider ? "w-full" : "
|
|
68
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
67
69
|
<div class="px-4">
|
|
68
70
|
<h2 class="text-2xl mb-7 text-center font-bold text-neutral-800 md:text-4xl md:leading-tight">
|
|
69
71
|
{category.category_name}
|
|
@@ -111,7 +113,7 @@ const categories: any[] = _.filter(all_categories, (o: any) => {
|
|
|
111
113
|
))
|
|
112
114
|
) : (
|
|
113
115
|
<section class="py-12 bg-slate-50" data-aos="fade-up" data-aos-once="false">
|
|
114
|
-
<div class={has_sider ? "w-full" : "
|
|
116
|
+
<div class:list={has_sider ? "w-full" : [max_width_screen, "mx-auto"]}>
|
|
115
117
|
<div class="px-4">
|
|
116
118
|
<NodesList
|
|
117
119
|
channel_id={channel_id}
|
package/src/layouts/Footer.astro
CHANGED
|
@@ -26,8 +26,9 @@ interface Props {
|
|
|
26
26
|
category_id: any;
|
|
27
27
|
url: any;
|
|
28
28
|
uri: any;
|
|
29
|
+
max_width_screen?: any;
|
|
29
30
|
}
|
|
30
|
-
const { canonical, is_home, channel_id, category_id, url, uri } = Astro.props;
|
|
31
|
+
const { canonical, is_home, channel_id, category_id, url, uri, max_width_screen = 'max-w-screen-2xl' } = Astro.props;
|
|
31
32
|
const {base, url_suffix} = Astro.locals;
|
|
32
33
|
const {
|
|
33
34
|
siteinfo,
|
|
@@ -50,7 +51,7 @@ const menus = await jeawinapi.get_menus({
|
|
|
50
51
|
id="footer1"
|
|
51
52
|
class={`relative bg-[#222] text-[#aaa] before:absolute before:left-0 before:top-0 before:w-[30%] before:h-[300px] before:bg-no-repeat before:z-[1] after:absolute after:right-0 after:bottom-0 after:w-[15%] after:h-[300px] after:bg-no-repeat after:z-[1]`}
|
|
52
53
|
>
|
|
53
|
-
<div class="relative
|
|
54
|
+
<div class:list={[max_width_screen, "relative mx-auto px-4 z-[2]"]}>
|
|
54
55
|
<div class="flex flex-col md:flex-row py-10 gap-5">
|
|
55
56
|
<div class="md:w-1/3">
|
|
56
57
|
<Block block_id="56">
|
package/src/layouts/Header.astro
CHANGED
|
@@ -12,12 +12,12 @@ import _ from "lodash";
|
|
|
12
12
|
import { Icon } from "astro-icon/components";
|
|
13
13
|
import Smartmenus from "../components/smartmenus.astro";
|
|
14
14
|
import SiteOptions from "../components/site_options.astro";
|
|
15
|
-
const { seo_title, menu_root_link_id } = Astro.props;
|
|
15
|
+
const { seo_title, menu_root_link_id, max_width_screen = 'max-w-screen-2xl' } = Astro.props;
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
<header>
|
|
19
19
|
<div class="bg-[#222]">
|
|
20
|
-
<div class="
|
|
20
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
21
21
|
<div class="flex flex-col md:flex-row justify-between py-2 px-4">
|
|
22
22
|
<div class="text-white">
|
|
23
23
|
{seo_title}
|
|
@@ -56,7 +56,7 @@ const { seo_title, menu_root_link_id } = Astro.props;
|
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
58
|
<div class="border-b border-[#edeef3] border-solid">
|
|
59
|
-
<div class="
|
|
59
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
60
60
|
<div class="">
|
|
61
61
|
<Smartmenus menu_root_link_id={menu_root_link_id} />
|
|
62
62
|
</div>
|
|
@@ -15,7 +15,7 @@ import InnerHeader from "./InnerHeader.astro";
|
|
|
15
15
|
import JeawinApi from "../scripts/cms.js";
|
|
16
16
|
import { render_value } from "../scripts/util.js";
|
|
17
17
|
const { jeawin_apikey, jeawin_api_domain, jeawin_api_path } = Astro.locals;
|
|
18
|
-
const { dark_mode, category_id, page, page_type, url, uri, field_array } =
|
|
18
|
+
const { dark_mode, category_id, page, page_type, url, uri, field_array, max_width_screen = 'max-w-screen-2xl' } =
|
|
19
19
|
Astro.props;
|
|
20
20
|
|
|
21
21
|
// 类别信息
|
|
@@ -124,7 +124,7 @@ if (Astro.slots.has("inner-header")) {
|
|
|
124
124
|
|
|
125
125
|
{
|
|
126
126
|
page && page == 1 ? (
|
|
127
|
-
<div class="
|
|
127
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
128
128
|
<div class="px-4">
|
|
129
129
|
{categoryinfo.extra ? (
|
|
130
130
|
<div class="my-5 break-words prose !max-w-none">
|
|
@@ -14,7 +14,7 @@ import Footer from "./Footer.astro";
|
|
|
14
14
|
import InnerHeader from "./InnerHeader.astro";
|
|
15
15
|
import JeawinApi from "../scripts/cms.js";
|
|
16
16
|
import { render_value } from "../scripts/util.js";
|
|
17
|
-
const { dark_mode, channel_id, page, page_type, slug, url, uri, field_array } =
|
|
17
|
+
const { dark_mode, channel_id, page, page_type, slug, url, uri, field_array, max_width_screen = 'max-w-screen-2xl' } =
|
|
18
18
|
Astro.props;
|
|
19
19
|
const { jeawin_apikey, jeawin_api_domain, jeawin_api_path } = Astro.locals;
|
|
20
20
|
const jeawinapi = new JeawinApi({
|
|
@@ -129,7 +129,7 @@ if (Astro.slots.has("inner-header")) {
|
|
|
129
129
|
<Fragment set:html={html} />
|
|
130
130
|
{
|
|
131
131
|
page && page == 1 ? (
|
|
132
|
-
<div class="
|
|
132
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
133
133
|
<div class="px-4">
|
|
134
134
|
{channelinfo.extra ? (
|
|
135
135
|
<div class="my-5 break-words prose !max-w-none">
|
package/src/layouts/page.astro
CHANGED
|
@@ -24,6 +24,7 @@ const {
|
|
|
24
24
|
url,
|
|
25
25
|
field_array,
|
|
26
26
|
page,
|
|
27
|
+
max_width_screen = 'max-w-screen-2xl'
|
|
27
28
|
} = Astro.props;
|
|
28
29
|
const { jeawin_apikey, jeawin_api_domain, jeawin_api_path } = Astro.locals;
|
|
29
30
|
const jeawinapi = new JeawinApi({
|
|
@@ -114,7 +115,7 @@ if (Astro.slots.has("inner-footer")) {
|
|
|
114
115
|
|
|
115
116
|
<Fragment set:html={html} />
|
|
116
117
|
|
|
117
|
-
<div class="
|
|
118
|
+
<div class:list={[max_width_screen, "mx-auto"]}>
|
|
118
119
|
<div class="px-4">
|
|
119
120
|
<PrevNext
|
|
120
121
|
nodeinfo={nodeinfo}
|