Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

[To Stage] Template-V2 #915

Merged
merged 81 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
ea43246
searchmarquee+ckgpills+categorylist+performance
JingleH May 22, 2023
17a57ad
nonblocking block-loading
JingleH May 25, 2023
ca6736b
mwpw-131491 fallback error message
JingleH May 26, 2023
df7814e
performance: dynamic limitCnt on screenSizes
JingleH May 30, 2023
9cadc32
fix(props-scope-limit): done (#850)
qiyundai May 30, 2023
ea517f6
[MWPW-131914] Load Better Img in background (#851)
qiyundai May 31, 2023
75a0269
[MWPW-131912] Lazy Load templates.js (#853)
qiyundai May 31, 2023
4a1aae6
update LCP function (#854)
qiyundai May 31, 2023
367b616
dynamic load search marquee autocomplete (#855)
qiyundai May 31, 2023
09eb5b7
[MWPW-131912-4]: attempt to fix CLS opportunities (#856)
qiyundai May 31, 2023
9d0124a
Template list revamp perf (#859)
JingleH Jun 1, 2023
bdc2e1b
fixmes for now having only one template-list block
JingleH Jun 1, 2023
eec1b44
[MWPW-131458] Page restructure related fixes (#865)
qiyundai Jun 5, 2023
84c1724
refactored fetchSheetData
JingleH Jun 5, 2023
1a8fe6a
[MWPW-132212] Template v2 Search Feature Update (#870)
qiyundai Jun 5, 2023
a2a0d57
renaming vars
JingleH Jun 5, 2023
73de3b4
breadcrumbs initial impl
JingleH Jun 5, 2023
d4dea0a
breadcrumbs desktop only
JingleH Jun 6, 2023
556a333
[MWPW-132220] Template-v2: Investigate CKG Default Bottom of the Page…
qiyundai Jun 6, 2023
bed27f6
load templates.js after all blocks loaded
JingleH Jun 6, 2023
47d4c2c
hide search-marquee on non-desktop
JingleH Jun 6, 2023
c1e1f91
move templates.js out of scripts.js
JingleH Jun 6, 2023
b249cc1
added template-list tasks fallback
JingleH Jun 7, 2023
cbda25a
await heading update
JingleH Jun 7, 2023
ce4a53f
1st fallback with only tasks
JingleH Jun 7, 2023
6de91f8
Merge remote-tracking branch 'origin/stage' into template-list-revamp
JingleH Jun 7, 2023
59b39b7
[MWPW-131458] Template List CSS Tweak (#881)
qiyundai Jun 7, 2023
6619c40
[MWPW-131458-3] Template List v2 QA round 2 (#884)
qiyundai Jun 8, 2023
f5ef9a7
tweaking template-list padding
qiyundai Jun 8, 2023
a3724f3
Update template-list.css
qiyundai Jun 9, 2023
a5e2427
fix desktop and mobile category list structure conflict
qiyundai Jun 9, 2023
37475a3
fix(search-marquee): shouldn't always fire search with current tasks
qiyundai Jun 9, 2023
a3531c1
accessibility breadcrumbs
JingleH Jun 9, 2023
66c52a5
hide breadcrumbs for templates
JingleH Jun 12, 2023
a369567
suppress gnav breadcrumbs for templates (#890)
JingleH Jun 12, 2023
2d8ac6b
remove template-list FIXME
JingleH Jun 14, 2023
e7dddda
sanitize breadcrumbs
JingleH Jun 14, 2023
e1dc00f
fix await
JingleH Jun 14, 2023
090e276
remove sticky searchbar unpredictable JS based hover effect
qiyundai Jun 14, 2023
4399d91
hide non-en template breadcrumbs
JingleH Jun 15, 2023
cebaf17
Template list backward compatible (#896)
JingleH Jun 15, 2023
7bdd89e
fix(template-list-v2): ckg pill fetch fix
qiyundai Jun 16, 2023
f2e2a71
fix(content-replacement): scope expansion
qiyundai Jun 16, 2023
e6b466f
better backward compatibility
qiyundai Jun 16, 2023
53a3781
fix(template-list) simplify fetchLegacyAllTemplatesMetadata
qiyundai Jun 16, 2023
a36590b
fix(template-list): metadata fetch fallback logic fix
qiyundai Jun 16, 2023
f510985
import fix
qiyundai Jun 16, 2023
d40e267
test
qiyundai Jun 16, 2023
14665f6
adding TODO
qiyundai Jun 16, 2023
d9e5e21
Merge pull request #897 from wbstry/MWPW-129863
qiyundai Jun 16, 2023
f1673cc
oldSheet templateTasks
JingleH Jun 16, 2023
9c81707
wip
JingleH Jun 16, 2023
171e207
localized breadcrumbs
JingleH Jun 17, 2023
7f35eb0
[MWPW-129863] Template v2 QA round 4 (#898)
qiyundai Jun 19, 2023
bfc28ae
sanitize shorttitle
JingleH Jun 19, 2023
d124414
fix
JingleH Jun 19, 2023
5356718
stop expecting ratios to always be specified (#901)
qiyundai Jun 20, 2023
ddd7586
Fallback check for placeholder format (#902)
qiyundai Jun 20, 2023
9184c24
defaulting placeholder format (#903)
qiyundai Jun 20, 2023
3c738c1
use getMetadata in constructprops
JingleH Jun 20, 2023
78f0b3b
Update all-templates-metadata.js (#904)
qiyundai Jun 20, 2023
53a61d0
object adaptation correction (#905)
qiyundai Jun 20, 2023
bcaff67
add missing await (#906)
qiyundai Jun 20, 2023
a58ab80
task sanitization (#907)
qiyundai Jun 20, 2023
39fbfce
categorylist straight redirect (#900)
JingleH Jun 20, 2023
c8071ba
add trailing slash to breadcrumbs (#899)
JingleH Jun 20, 2023
e03189c
bring back categoryList cnt
JingleH Jun 21, 2023
fc81299
sanitize task, topic and q (#908)
qiyundai Jun 21, 2023
9098022
[MWPW-133057] Search Marquee Keyword Tracking (#909)
qiyundai Jun 22, 2023
762f216
showLinkLIst default true
JingleH Jun 22, 2023
ee455e3
added template-list error handling
JingleH Jun 22, 2023
a8ec951
fix decorateLinklist
JingleH Jun 22, 2023
c90ddd5
[MWPW-133097] Long Text Block - 1st Iteration (#911)
qiyundai Jun 23, 2023
7cc52e6
feat(search-tracking): adding audience and mobile support (#913)
qiyundai Jun 23, 2023
90629a6
Reduce tbt (#910)
JingleH Jun 23, 2023
d35985c
fix regex
JingleH Jun 23, 2023
9547967
copy over new repo browse-by-category block
JingleH Jun 23, 2023
03b0e5e
fix for create pages
JingleH Jun 23, 2023
2d7ff30
f
JingleH Jun 23, 2023
85d7e9e
fix searchMarquee for templates root page
JingleH Jun 23, 2023
3f0f457
fix regex
JingleH Jun 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 129 additions & 74 deletions express/blocks/browse-by-category/browse-by-category.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
main .browse-by-category-container {
padding-bottom: 24px;
}

main .browse-by-category-container .browse-by-category {
main .browse-by-category-wrapper.fullwidth {
margin: 0;
max-width: fit-content;
}

main .browse-by-category {
max-width: max-content;
}

main .browse-by-category-container .browse-by-category-wrapper {
padding: 0;
max-width: none;
}

main .browse-by-category-container .browse-by-category .carousel-container .carousel-platform {
align-items: flex-start;
}

main .browse-by-category-container .browse-by-category .carousel-container .button.carousel-arrow {
}
main .browse-by-category .carousel-container .carousel-platform {
align-items: start;
}
main .browse-by-category.card .carousel-container .carousel-platform {
gap: 14px;
margin: 6px 0 0 0;
}
main .browse-by-category .carousel-container .button.carousel-arrow {
position: absolute;
top: 46px;
}

main .browse-by-category-container .browse-by-category-heading-section {
}
main .browse-by-category .browse-by-category-heading-section {
display: flex;
justify-content: space-between;
flex-direction: column;
Expand All @@ -29,28 +30,28 @@ main .browse-by-category-container .browse-by-category-heading-section {
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
}

main .browse-by-category-container .browse-by-category-heading-section .browse-by-category-heading {
}
main .browse-by-category .browse-by-category-heading-section .browse-by-category-heading {
text-align: left;
font-size: 28px;
line-height: 30px;
}

main .browse-by-category-container .browse-by-category-heading-section .browse-by-category-link-wrapper {
}
main .browse-by-category .browse-by-category-heading-section .browse-by-category-link-wrapper {
margin: 8px 0 0;
}

main .browse-by-category-container .browse-by-category-link {
}
main .browse-by-category .browse-by-category-link {
font-size: 16px;
line-height: 22px;
display: flex;
padding: 0;
white-space: nowrap;
width: max-content;
}

main .browse-by-category-container .browse-by-category-link::after {
}
main .browse-by-category .browse-by-category-link::after {
display: flex;
width: 6px;
height: 6px;
Expand All @@ -61,14 +62,14 @@ main .browse-by-category-container .browse-by-category-link::after {
border-style: solid;
border-color: var(--color-info-accent);
transform-origin: 75% 75%;
transform: rotate( -45deg );
transform: rotate(-45deg);
content: "";
margin-top: 5px;
margin-left: 5px;
margin-right: 2.25px;
}

main .browse-by-category-container .browse-by-category-category {
}
main .browse-by-category:not(.card) .browse-by-category-card {
position: relative;
display: flex;
gap: 8px;
Expand All @@ -77,19 +78,29 @@ main .browse-by-category-container .browse-by-category-category {
min-width: 123px;
margin: 0;
padding: 10px 8px 0 8px;
}

main .browse-by-category-container .browse-by-category-category-anchor {
}

main .browse-by-category.card .browse-by-category-card {
position: relative;
display: flex;
flex-direction: column;
}

main .browse-by-category .browse-by-category-card-link {
position: absolute;
height: 100%;
width: 100%;
}

main .browse-by-category-container .browse-by-category-category-anchor:hover ~ .browse-by-category-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.07, 0.07, 1, 0, 0);
}

main .browse-by-category-container .browse-by-category-category-image-wrapper {
}

main .browse-by-category:not(.card) .browse-by-category-card-link:hover ~ .browse-by-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.07, 0.05, 1, 0, 0);
}

main .browse-by-category.card .browse-by-category-card-link:hover ~ .browse-by-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.01, 0.01, 1, 0, 0);
}

main .browse-by-category .browse-by-category-image-wrapper {
background-color: var(--color-gray-200);
min-height: 90px;
width: 148px;
Expand All @@ -98,53 +109,97 @@ main .browse-by-category-container .browse-by-category-category-image-wrapper {
justify-content: center;
align-items: center;
pointer-events: none;
}

main .browse-by-category-container .browse-by-category-category-image-wrapper img {
}
main .browse-by-category:not(.card) .browse-by-category-image-wrapper img {
display: block;
object-fit: cover;
width: 80px;
height: 80px;
transform: matrix(1, -0.07, 0.07, 1, 0, 0);
box-shadow: 0 0 6px #0000001F;
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category-container .browse-by-category-category-image-wrapper .browse-by-category-category-image-shadow {
}
main .browse-by-category .browse-by-category-image-wrapper .browse-by-category-image-shadow {
position: absolute;
width: 76px;
height: 76px;
transform: matrix(0.97, -0.22, 0.22, 0.97, -6, 0);
background: var(--color-gray-300) 0 0 no-repeat padding-box;
border-radius: 10px;
opacity: 1;
}

main .browse-by-category-container .browse-by-category-category-title {
}

main .browse-by-category.card .browse-by-category-image-shadow-wrapper {
display: block;
object-fit: cover;
transform: matrix(1, -0.07, 0.07, 1, 0, 0);
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category.card .browse-by-category-image-wrapper {
background-color: #f8f8f8;
min-height: 90px;
height: 116px;
width: 182px;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
}

main .browse-by-category.card .browse-by-category-image-wrapper img {
display: block;
object-fit: contain;
max-width: 110px;
max-height: 97px;
height: 100%;
transform: matrix(1, -0.01, 0.01, 1, 0, 0);
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category.card .browse-by-category-image-wrapper .browse-by-category-image-shadow {
position: absolute;
width: 100%;
height: 100%;
transform: matrix(0.90, -0.18, 0.20, 0.90, -14, 0);
background: #d6d6d6e5;
}

main .browse-by-category:not(.card) .browse-by-category-card-title {
margin: 0;
font-size: 18px;
line-height: 24px;
font-weight: 700;
max-width: 148px;
}

@media (min-width: 900px) {
main .browse-by-category-container .browse-by-category-heading-section {
flex-direction: row;
padding: 0;
}

main .browse-by-category-container .browse-by-category-wrapper {
padding: 0 28px;
max-width: none;
}

main .browse-by-category.card .browse-by-category-card-title {
margin: 6px 0;
font-size: 16px;
line-height: 24px;
font-weight: 700;
align-self: start;
}

@media (min-width: 900px) {
main .browse-by-category-wrapper .browse-by-category {
padding: 0 28px;
max-width: none;
}
}

@media (min-width: 1200px) {
main .browse-by-category-container .browse-by-category-wrapper {
padding: 0 28px;
max-width: none;

main .browse-by-category .browse-by-category-heading-section {
flex-direction: row;
padding: 0;
}
}
}
Loading