diff --git a/front-page.php b/front-page.php index 1aa3269..9f6e049 100644 --- a/front-page.php +++ b/front-page.php @@ -25,48 +25,7 @@
- - - + - +
diff --git a/functions.php b/functions.php index 054fdf3..1fb086d 100644 --- a/functions.php +++ b/functions.php @@ -52,7 +52,59 @@ function sewjoy_theme_scripts() { 'sewjoy-theme-home', get_template_directory_uri() . '/assets/css/home.css', array( 'sewjoy-theme-style' ), - '1.0.5' + '1.0.6' + ); + return; + } + + if ( is_page_template( 'page-templates/page-shop.php' ) ) { + // Shop / product list page — reuses the home canvas + nav/footer, + // adds the filter bar, product card family, layout switcher, pagination. + wp_enqueue_style( + 'sewjoy-theme-style', + get_stylesheet_uri() + ); + wp_enqueue_style( + 'sewjoy-theme-home', + get_template_directory_uri() . '/assets/css/home.css', + array( 'sewjoy-theme-style' ), + '1.0.6' + ); + wp_enqueue_style( + 'sewjoy-theme-shop', + get_template_directory_uri() . '/assets/css/shop.css', + array( 'sewjoy-theme-home' ), + '1.0.0' + ); + return; + } + + if ( is_page_template( 'page-templates/page-design.php' ) ) { + // Design Yours / Custom Design Flow landing — reuses the home + // canvas + nav/footer + bond-card markup; adds the 3-step splash + // carousel, the three-series wrapper, and Featured Designs cards. + wp_enqueue_style( + 'sewjoy-theme-style', + get_stylesheet_uri() + ); + wp_enqueue_style( + 'sewjoy-theme-home', + get_template_directory_uri() . '/assets/css/home.css', + array( 'sewjoy-theme-style' ), + '1.0.6' + ); + wp_enqueue_style( + 'sewjoy-theme-design', + get_template_directory_uri() . '/assets/css/design.css', + array( 'sewjoy-theme-home' ), + '1.0.0' + ); + wp_enqueue_script( + 'sewjoy-theme-design', + get_template_directory_uri() . '/assets/js/design.js', + array( 'jquery' ), + '1.0.0', + true ); return; } diff --git a/page-templates/page-design.php b/page-templates/page-design.php new file mode 100644 index 0000000..a4d33cf --- /dev/null +++ b/page-templates/page-design.php @@ -0,0 +1,177 @@ +, brand nav + * (from template-part), 3-step splash carousel, 3-series cards (reuses + * front-page's bond-card markup verbatim), 4 Featured Designs cards + * (hardcoded), footer (from template-part). + * + * @package SewJoy_Theme + */ +?> + +> + + + + + + + + + +> + + +
+ + + + +
+
+ +
+ +
+ STEP 01 OF 03 +

Choose Your Style

+

Start with a base style from our curated library — Classic Shirt, A-Line Dress, Casual Tee, and more.

+
+
+ +
+ +
+ STEP 02 OF 03 +

Pick Your Fabric

+

Choose from over 40 premium fabrics — Linen, Silk, Cotton, Cashmere — all sustainably sourced.

+
+
+ +
+ +
+ STEP 03 OF 03 +

Add Accessories

+

Complete your look with matching buttons, trims, and a personalized label — the final touch.

+
+
+ +
+ + + + +
+ + + +
+
+ + +
+
+

START BY CHOOSE COLLECTION

+

为每一份珍贵的爱,量身定制

+
+ +
+
+ +
+ 01 +

个人系列

+ PERSONAL +

为自己设计
独一无二的风尚

+
+ + DESIGN NOW + + + +
+ +
+ +
+ 02 +

亲子系列

+ PARENT & KID +

爱的服装穿搭
记录成长的每一刻

+
+ + DESIGN NOW + + + +
+ +
+ +
+ 03 +

主宠系列

+ PET +

舒适的同时兼具
给主子最好的爱

+
+ + DESIGN NOW + + + +
+
+
+ + + + + + +
+ + + + \ No newline at end of file diff --git a/page-templates/page-shop.php b/page-templates/page-shop.php new file mode 100644 index 0000000..730baa4 --- /dev/null +++ b/page-templates/page-shop.php @@ -0,0 +1,148 @@ +, brand nav (from template-part), banner (inline copy of + * the homepage Hero 1), filter bar, hardcoded 9-product waterfall grid, + * pagination, and footer (from template-part). + * + * @package SewJoy_Theme + */ +?> + +> + + + + + + + + + +> + + +
+ + + + +
+
+

MAKE CREATION WEARABLE

+

Timeless pieces. Designed by you. Made to be loved.

+ +
    +
  • + +
    + CUSTOM MADE + Design your unique style in just 3 steps +
    +
  • +
  • + +
    + PREMIUM QUALITY + Carefully selected fabrics & craftsmanship +
    +
  • +
  • + +
    + SUSTAINABLE + Made to order, less waste, more care +
    +
  • +
+ + +
+ + +
CRAFTED FOR MAKERS
+
+ + +
+ +
+
+ + + +
+ + + +
+ + +
+ + + +
+
+
+ +
+ +
+ +
+

+ +
+
+ +
+ + + +
+ + + +
+ + + + \ No newline at end of file diff --git a/template-parts/home-footer.php b/template-parts/home-footer.php new file mode 100644 index 0000000..d33017e --- /dev/null +++ b/template-parts/home-footer.php @@ -0,0 +1,71 @@ + + \ No newline at end of file diff --git a/template-parts/home-nav.php b/template-parts/home-nav.php new file mode 100644 index 0000000..59165c7 --- /dev/null +++ b/template-parts/home-nav.php @@ -0,0 +1,50 @@ + + + \ No newline at end of file