diff --git a/.agents/AGENTS.md b/.agents/AGENTS.md new file mode 100644 index 00000000..0f0c6cd0 --- /dev/null +++ b/.agents/AGENTS.md @@ -0,0 +1,31 @@ +# Workspace Rules + +### Creating New Thymeleaf Pages +When creating or scaffolding a new Thymeleaf template page in this project, you MUST use the `layout:decorate` mechanism to inherit the common layout, and you MUST pass the `bodyClass` variable to maintain consistent styling with the homepage. + +Use the following exact structure as a template: + +```html + + + + + Tiêu đề trang + + + +
+ +
+ +
+ + +
+ +
+
+ + +``` diff --git a/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf b/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf new file mode 100644 index 00000000..d2bcda8f Binary files /dev/null and b/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf differ diff --git a/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf:Zone.Identifier b/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf:Zone.Identifier new file mode 100644 index 00000000..d6c1ec68 Binary files /dev/null and b/Media/HC-Api lịch đặt khám - web-210726-035958 (1).pdf:Zone.Identifier differ diff --git a/sisvietnamvn_main/html_snippets/content_main_blocks/temp b/sisvietnamvn_main/html_snippets/content_main_blocks/temp index a5464c14..3838d1a9 100644 --- a/sisvietnamvn_main/html_snippets/content_main_blocks/temp +++ b/sisvietnamvn_main/html_snippets/content_main_blocks/temp @@ -1,727 +1,53 @@ - - -
-
- - - - -
- -
- - -
-
-
-

Quỹ từ thiện bệnh nhân nghèo bị đột quỵ
khu vực Đồng bằng sông Cửu Long

-

S.I.S Charity Foundation

-
- Stroke International Services Charity Foundation -
- -
- -

Sẻ chia yêu thương
đến bệnh nhân nghèo bị đột quỵ

- -
- - -
-
-
- - \ No newline at end of file +
+ +
+
+
+
+
+
+ + + + + + +
+
+
+ University News +
+
+

Post Title

+
+
+
+ + +
+
+
+
+
+
+
\ No newline at end of file diff --git a/sisvietnamvn_main/src/main/resources/static/js/mobile-menu.js b/sisvietnamvn_main/src/main/resources/static/js/mobile-menu.js index 5c05357d..57ee5c43 100644 --- a/sisvietnamvn_main/src/main/resources/static/js/mobile-menu.js +++ b/sisvietnamvn_main/src/main/resources/static/js/mobile-menu.js @@ -85,4 +85,27 @@ document.addEventListener('DOMContentLoaded', function () { } }); }); + + // --- Search toggle --- + var searchTrigger = document.getElementById('search-drawer-trigger'); + var searchTriggerActive = document.getElementById('search-drawer-trigger-active'); + var searchFlyout = document.getElementById('search-flyout-container'); + var siteHeader = document.querySelector('[data-component-id="umass_base:site-header"]'); + + function toggleSearch(e) { + e.preventDefault(); + if (searchTrigger) searchTrigger.classList.toggle('active'); + if (siteHeader) siteHeader.classList.toggle('search-active'); + + if (searchFlyout) { + if (searchFlyout.style.display === 'block') { + fadeOut(searchFlyout); + } else { + fadeIn(searchFlyout); + } + } + } + + if (searchTrigger) searchTrigger.addEventListener('click', toggleSearch); + if (searchTriggerActive) searchTriggerActive.addEventListener('click', toggleSearch); }); diff --git a/sisvietnamvn_main/src/main/resources/templates/fragments/layout.html b/sisvietnamvn_main/src/main/resources/templates/fragments/layout.html index 0bdcd49c..73dbe904 100644 --- a/sisvietnamvn_main/src/main/resources/templates/fragments/layout.html +++ b/sisvietnamvn_main/src/main/resources/templates/fragments/layout.html @@ -23,22 +23,30 @@ - + - -
+
+ +
- -
-
- -
-
+ +
+
+ +
+
- -
+ +
+
+ + + + + + \ No newline at end of file diff --git a/sisvietnamvn_main/src/main/resources/templates/index.html b/sisvietnamvn_main/src/main/resources/templates/index.html index e058cc5c..fdc451e0 100644 --- a/sisvietnamvn_main/src/main/resources/templates/index.html +++ b/sisvietnamvn_main/src/main/resources/templates/index.html @@ -107,7 +107,7 @@ style="display:none;visibility:hidden">
-
+
diff --git a/sisvietnamvn_main/src/main/resources/templates/pages/contact-us.html b/sisvietnamvn_main/src/main/resources/templates/pages/contact-us.html index 5f115251..f6bf7692 100644 --- a/sisvietnamvn_main/src/main/resources/templates/pages/contact-us.html +++ b/sisvietnamvn_main/src/main/resources/templates/pages/contact-us.html @@ -1,6 +1,6 @@ + layout:decorate="~{fragments/layout(bodyClass='umass-platform-homepage path-frontpage page-node-type-homepage homepage transparent-header')}"> Liên hệ | S.I.S Cần Thơ @@ -21,10 +21,13 @@ - +
+
+ S.I.S Cần Thơ +

Liên hệ

diff --git a/sisvietnamvn_main/src/main/resources/templates/themes/umass/header.html b/sisvietnamvn_main/src/main/resources/templates/themes/umass/header.html index 36cf5030..6f748892 100644 --- a/sisvietnamvn_main/src/main/resources/templates/themes/umass/header.html +++ b/sisvietnamvn_main/src/main/resources/templates/themes/umass/header.html @@ -233,7 +233,7 @@
- -
-