From b62f99f6deafed6b1e7dc43e80b05c6675279804 Mon Sep 17 00:00:00 2001 From: Lucas Azevedo Date: Sat, 2 Nov 2024 11:39:04 -0300 Subject: [PATCH] Update navbar design and improve search UI (#1084) Co-authored-by: Gina Peter Banyard Co-authored-by: Sergey Panteleev --- include/footer.inc | 68 +- include/header.inc | 172 +++- include/layout.inc | 34 + js/common.js | 149 +++- js/ext/hogan-3.0.2.min.js | 5 - js/ext/typeahead.jquery.min.js | 8 - js/search.js | 795 ++++++++++-------- lookup-form.php | 34 + menu.php | 31 + playwright.config.ts | 7 +- src/Navigation/NavItem.php | 14 + styles/home.css | 3 +- styles/i-love-markdown.css | 2 +- styles/php8.css | 11 +- styles/theme-base.css | 303 +------ styles/theme-medium.css | 595 +++++++++++-- tests/EndToEnd/DisabledJavascriptTest.spec.ts | 51 ++ tests/EndToEnd/SearchModalTest.spec.ts | 125 +++ tests/Visual/SearchModal.css | 3 + tests/Visual/SearchModal.spec.ts | 35 + ...creenshots-search-modal-chromium-linux.png | Bin 0 -> 90444 bytes ...-screenshots-archive-1998-php-chromium.png | Bin 207182 -> 209388 bytes ...enshots-conferences-index-php-chromium.png | Bin 171792 -> 170247 bytes .../tests-screenshots-index-php-chromium.png | Bin 1097239 -> 1099502 bytes ...-screenshots-manual-index-php-chromium.png | Bin 391672 -> 393245 bytes ...s-screenshots-manual-php5-php-chromium.png | Bin 101552 -> 103831 bytes ...nshots-releases-8-0-index-php-chromium.png | Bin 618140 -> 632242 bytes ...nshots-releases-8-1-index-php-chromium.png | Bin 746958 -> 760699 bytes ...nshots-releases-8-2-index-php-chromium.png | Bin 578216 -> 591566 bytes ...creenshots-releases-8-3-6-php-chromium.png | Bin 51323 -> 53353 bytes ...nshots-releases-8-3-index-php-chromium.png | Bin 837149 -> 850968 bytes 31 files changed, 1671 insertions(+), 774 deletions(-) delete mode 100644 js/ext/hogan-3.0.2.min.js delete mode 100644 js/ext/typeahead.jquery.min.js create mode 100644 lookup-form.php create mode 100644 menu.php create mode 100644 src/Navigation/NavItem.php create mode 100644 tests/EndToEnd/DisabledJavascriptTest.spec.ts create mode 100644 tests/EndToEnd/SearchModalTest.spec.ts create mode 100644 tests/Visual/SearchModal.css create mode 100644 tests/Visual/SearchModal.spec.ts create mode 100644 tests/Visual/SearchModal.spec.ts-snapshots/tests-screenshots-search-modal-chromium-linux.png diff --git a/include/footer.inc b/include/footer.inc index 778a3cb55..cd140ce59 100644 --- a/include/footer.inc +++ b/include/footer.inc @@ -99,7 +99,7 @@ if (!empty($_SERVER['BASE_PAGE']) ' . "\n"; @@ -108,5 +108,71 @@ if (!empty($_SERVER['BASE_PAGE']) To Top +
+ +
+ diff --git a/include/header.inc b/include/header.inc index 26a13846f..5e6ae335e 100644 --- a/include/header.inc +++ b/include/header.inc @@ -94,27 +94,159 @@ if (!isset($config["languages"])) { -