Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign develop #91

Merged
merged 238 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
851cc32
Add colors and text styles
TomaszDziezykNetcentric Aug 29, 2024
c0d30a8
Update button styles
TomaszDziezykNetcentric Sep 2, 2024
f2939cf
Remove unused code
TomaszDziezykNetcentric Sep 2, 2024
7ef8216
Fix styles of links inside the text
TomaszDziezykNetcentric Sep 2, 2024
651e157
Fix background color for link
TomaszDziezykNetcentric Sep 2, 2024
1adee4f
Fix buttons's secondary style for dark background
TomaszDziezykNetcentric Sep 2, 2024
b20e9ea
Merge pull request #21 from Netcentric/init-colors-and-text
lakshmishriaswathnarayana Sep 2, 2024
3d067f0
KAW-7905: add new footer design v2
Sep 4, 2024
ee2b7fa
KAW-7905: remove console statement
Sep 4, 2024
00c8a96
KAW-7905: fix build
Sep 4, 2024
3eab626
KAW-7905: aadress pr comments
Sep 5, 2024
f22455a
KAW-7905: add back to top button
Sep 9, 2024
aaea6d6
KAW-7905: add updated viewport and limit back-to-top on dealer pages
Sep 9, 2024
c2723ba
KAW-7905: footer updates
Sep 9, 2024
eb80a94
KAW-7905: correct link states
Sep 9, 2024
7a4d5f9
add localhost for not loading cookies
Lakshmishri Sep 9, 2024
5980887
add dev env to not show cookies consent
Lakshmishri Sep 9, 2024
34c4378
Merge pull request #23 from Netcentric/KAW-7905-bimota-v2-footer
lakshmishriaswathnarayana Sep 10, 2024
f7254e0
KAW-7936 wire up title component
Lakshmishri Sep 11, 2024
697ba8c
KAW-7904 Implement header
TomaszDziezykNetcentric Sep 11, 2024
51af69c
KAW-7904 Improve header css'es
TomaszDziezykNetcentric Sep 12, 2024
cc66764
KAW-7904 Add scrolling logic for header
TomaszDziezykNetcentric Sep 12, 2024
ff06afa
KAW-7904 Fix chevron animation
TomaszDziezykNetcentric Sep 12, 2024
69c0329
KAW-7904 Refactor
TomaszDziezykNetcentric Sep 12, 2024
1c59c15
Merge branch 'redesign-develop' into KAW-7904-header
TomaszDziezykNetcentric Sep 12, 2024
bc596fb
KAW-7904 Update icons
TomaszDziezykNetcentric Sep 12, 2024
c319c73
Merge pull request #24 from Netcentric/KAW-7936-Title-component
lakshmishriaswathnarayana Sep 12, 2024
803bf74
KAW-7941-NBA-component
Lakshmishri Sep 12, 2024
bb1cdea
KAW-7904 Add underline style for active links
TomaszDziezykNetcentric Sep 12, 2024
6a680fa
KAW-7904 Fix navigation location
TomaszDziezykNetcentric Sep 12, 2024
c0d50bd
KAW-7904 Fix init state of the header
TomaszDziezykNetcentric Sep 12, 2024
a1704c4
KAW-7904 Fix transparent header when click on models
TomaszDziezykNetcentric Sep 12, 2024
7879e87
KAW-7904 Fix language selection
TomaszDziezykNetcentric Sep 12, 2024
078554e
remove class attribute
Lakshmishri Sep 12, 2024
691330c
KAW-7904 Add the Model label for expanded menu on desktop
TomaszDziezykNetcentric Sep 13, 2024
5e649de
KAW-7904 Fix hover colors
TomaszDziezykNetcentric Sep 13, 2024
5b997f9
KAW-7904 Disable main doc scrolling when the menu is expanded
TomaszDziezykNetcentric Sep 13, 2024
9e5545f
KAW-7904 Add animations for header
TomaszDziezykNetcentric Sep 16, 2024
a566582
KAW-7904 Refactor
TomaszDziezykNetcentric Sep 16, 2024
5d7ce3f
KAW-7904 Refactor
TomaszDziezykNetcentric Sep 16, 2024
5f4f998
KAW-7921: teaser component
Sep 16, 2024
87f2be1
KAW-7904 Add animation for each model
TomaszDziezykNetcentric Sep 16, 2024
a69cf53
KAW-7904 Add hover effect for models
TomaszDziezykNetcentric Sep 16, 2024
678d18c
Merge branch 'redesign-develop' of https://github.com/Netcentric/edge…
Sep 16, 2024
81424d2
KAW-7904 Fix header for xl screen resolution
TomaszDziezykNetcentric Sep 16, 2024
902348e
Merge pull request #26 from Netcentric/KAW-7904-header
TomaszDziezykNetcentric Sep 17, 2024
d88c60b
Merge branch 'redesign-develop' of https://github.com/Netcentric/edge…
Sep 17, 2024
947e768
KAW-7921: pr updates
Sep 17, 2024
c60c58b
Merge pull request #27 from Netcentric/KAW-7921-teaser-v2
IoanaOrca Sep 17, 2024
59bf07e
Merge branch 'redesign-develop' of https://github.com/Netcentric/edge…
Sep 17, 2024
fe486ca
KAW-7937: news and stories
Sep 19, 2024
f9becaa
KAW-7904 Add text and image block
TomaszDziezykNetcentric Sep 19, 2024
8bf9663
KAW-7904 Set scroll-x to hidden
TomaszDziezykNetcentric Sep 19, 2024
a003068
KAW-7904 Fix icons styles
TomaszDziezykNetcentric Sep 20, 2024
54e646a
KAW-7904 Refactor
TomaszDziezykNetcentric Sep 20, 2024
740e521
KAW-7904 Refactor
TomaszDziezykNetcentric Sep 20, 2024
dc1b52f
KAW-7904 Add throttle to animations
TomaszDziezykNetcentric Sep 20, 2024
4cf1ab0
KAW-7935 Refactor
TomaszDziezykNetcentric Sep 20, 2024
deb16ce
Merge branch 'redesign-develop' into KAW-7935-text-with-image
TomaszDziezykNetcentric Sep 20, 2024
63a2d66
Merge pull request #29 from Netcentric/KAW-7937-news-and-stories-v2
IoanaOrca Sep 20, 2024
64bbbf4
KAW-7939 Add image block
TomaszDziezykNetcentric Sep 23, 2024
2d4822d
KAW-7939 Add border-radius
TomaszDziezykNetcentric Sep 23, 2024
a8cb911
Merge pull request #30 from Netcentric/KAW-7935-text-with-image
lakshmishriaswathnarayana Sep 23, 2024
3df88c7
resolve merge conflicts
Lakshmishri Sep 23, 2024
20e789f
KAW-7943 Add highlight block
TomaszDziezykNetcentric Sep 23, 2024
beaf8f6
KAW-7943 Update scrolling behavior
TomaszDziezykNetcentric Sep 24, 2024
c604596
Merge branch 'redesign-develop' into KAW-7943-highlight
TomaszDziezykNetcentric Sep 24, 2024
a0355ea
KAW-7943 Switch to whell and touch events
TomaszDziezykNetcentric Sep 25, 2024
75bafbb
KAW-7943 Add throttling to slide moving
TomaszDziezykNetcentric Sep 25, 2024
e7eda59
KAW-7943 Fix mobile version
TomaszDziezykNetcentric Sep 25, 2024
27d90b6
KAW-7943 Fix mobile veiw on Safari
TomaszDziezykNetcentric Sep 25, 2024
f08e0e1
KAW-7943 Update animation timing
TomaszDziezykNetcentric Sep 25, 2024
1497c9a
KAW-7943 Fix scolling for Safari
TomaszDziezykNetcentric Sep 25, 2024
7cca4a0
KAW-7943 Fix scaling image on browsers resize and on init
TomaszDziezykNetcentric Sep 25, 2024
b8a1eb2
KAW-7943 Fix scolling
TomaszDziezykNetcentric Sep 25, 2024
947318d
KAW-7943 Remove console.logs
TomaszDziezykNetcentric Sep 25, 2024
61f22a4
rename classes
Lakshmishri Sep 26, 2024
2c47061
Merge pull request #31 from Netcentric/KAW-7939-image-block
lakshmishriaswathnarayana Sep 26, 2024
9c3d6ae
Merge pull request #32 from Netcentric/KAW-7941-NBA-component
lakshmishriaswathnarayana Sep 30, 2024
8e84bb0
KAW-7943 Fix image styles
TomaszDziezykNetcentric Sep 30, 2024
dcdcb69
KAW-9747 Add animated headings
TomaszDziezykNetcentric Sep 30, 2024
cba4d80
KAW-7940: gallery component
Oct 1, 2024
1c2e0ac
KAW-7947 Add specification table
TomaszDziezykNetcentric Oct 2, 2024
b333693
KAW-7943 Add border radius to image
TomaszDziezykNetcentric Oct 2, 2024
c5cd9b2
Merge pull request #35 from Netcentric/KAW-7940-gallery
IoanaOrca Oct 2, 2024
6efda92
KAW-8026 Fix sticky image
TomaszDziezykNetcentric Oct 3, 2024
24a6d4c
Merge pull request #33 from Netcentric/KAW-7943-highlight
lakshmishriaswathnarayana Oct 4, 2024
3cf0866
Merge pull request #37 from Netcentric/KAW-8026-fix-image
lakshmishriaswathnarayana Oct 4, 2024
f59f094
Merge branch 'redesign-develop' into KAW-7947-specification
TomaszDziezykNetcentric Oct 4, 2024
6138c72
KAW-7947 Refactor
TomaszDziezykNetcentric Oct 4, 2024
410cc06
KAW-7947 Add specification slide change
TomaszDziezykNetcentric Oct 7, 2024
cdd75aa
KAW-7947 Remove unused code
TomaszDziezykNetcentric Oct 7, 2024
ede5d31
KAW-7998 Fix text align
TomaszDziezykNetcentric Oct 7, 2024
f3ed8f1
KAW-7947 Fix loading the modal content
TomaszDziezykNetcentric Oct 7, 2024
30196f2
Merge pull request #39 from Netcentric/KAW-7998-text-align
lakshmishriaswathnarayana Oct 8, 2024
c3ad635
Merge branch 'main' into merge-main-oct-8
TomaszDziezykNetcentric Oct 8, 2024
d91b7de
Revert header path deterining
TomaszDziezykNetcentric Oct 8, 2024
d64304b
KAW-7947 Fix displaying the modal content
TomaszDziezykNetcentric Oct 8, 2024
4970a31
KAW-7947 Improve the scrolling behaviour
TomaszDziezykNetcentric Oct 8, 2024
f7a623a
KAW-7947 Remove unused code
TomaszDziezykNetcentric Oct 8, 2024
f0b9059
Merge pull request #40 from Netcentric/merge-main-oct-8
lakshmishriaswathnarayana Oct 8, 2024
a5f74fd
KAW-8012 Add feature carousel
TomaszDziezykNetcentric Oct 9, 2024
e6fbcdf
Merge branch 'redesign-develop' into KAW-8012-feature
TomaszDziezykNetcentric Oct 9, 2024
15b7b90
KAW-7947 Fix spacing
TomaszDziezykNetcentric Oct 9, 2024
c1520b3
KAW-7944: vehicle selector component
Oct 9, 2024
9b7446b
KAW-7944: vehicle selector updates
Oct 10, 2024
2f20bc8
KAW-7947 Fix padding between text and button
TomaszDziezykNetcentric Oct 11, 2024
dcbe756
KAW-7944: update description list creation
Oct 11, 2024
4dafc1a
Merge pull request #38 from Netcentric/KAW-7947-specification
lakshmishriaswathnarayana Oct 11, 2024
07f06c6
fix heading styles for title
Lakshmishri Oct 11, 2024
f4870e6
fix fonts
Lakshmishri Oct 11, 2024
fa48165
Merge branch 'redesign-develop' into KAW-7944-vehicle-selector
Oct 11, 2024
040b37e
KAW-7944: fix class
Oct 11, 2024
b5cff0e
KAW-7944: small updates
Oct 11, 2024
7537e9a
fix KAW-8146
Lakshmishri Oct 14, 2024
24d7e9d
KAW-7945 Add hero block
TomaszDziezykNetcentric Oct 14, 2024
9a3599c
KAW-7945 Fix vidoe opacity background
TomaszDziezykNetcentric Oct 14, 2024
befcc64
Merge pull request #43 from Netcentric/KAW-8110-fonts
lakshmishriaswathnarayana Oct 14, 2024
a9aa1a9
implement text component
Lakshmishri Oct 14, 2024
d90ff99
KAW-8012 Refactor spacing between text and nav
TomaszDziezykNetcentric Oct 14, 2024
2465584
Merge pull request #41 from Netcentric/KAW-8012-feature
lakshmishriaswathnarayana Oct 14, 2024
e94e260
Merge pull request #44 from Netcentric/KAW-7945-hero
lakshmishriaswathnarayana Oct 14, 2024
36e603a
Merge pull request #45 from Netcentric/KAW-8147-text
lakshmishriaswathnarayana Oct 14, 2024
7eb7c5b
KAW-8121 Fix flag
TomaszDziezykNetcentric Oct 14, 2024
440fb4f
Merge pull request #46 from Netcentric/KAW-8121-fix-flag
lakshmishriaswathnarayana Oct 15, 2024
04e19df
change media query
Lakshmishri Oct 15, 2024
38cffc7
fix gutter space
Lakshmishri Oct 15, 2024
c0d20b5
Merge branch 'redesign-develop' into KAW-7944-vehicle-selector
Lakshmishri Oct 15, 2024
1b20df1
get rid of setTimeout
Lakshmishri Oct 15, 2024
84dc60d
KAW-7944: remove comment
Oct 15, 2024
2f8269a
KAW-8122 Fix higlight animation
TomaszDziezykNetcentric Oct 15, 2024
2d95cca
Merge branch 'redesign-develop' into KAW-8122-highlight-animation
TomaszDziezykNetcentric Oct 15, 2024
61dd3bd
KAW-8150 Fix table spacing
TomaszDziezykNetcentric Oct 16, 2024
8e95daa
KAW-8163 Add support for second image
TomaszDziezykNetcentric Oct 16, 2024
bc44202
Merge pull request #42 from Netcentric/KAW-7944-vehicle-selector
TomaszDziezykNetcentric Oct 16, 2024
21eeefe
Merge branch 'redesign-develop' into KAW-8122-highlight-animation
TomaszDziezykNetcentric Oct 17, 2024
1ae4551
Merge pull request #50 from Netcentric/KAW-8150-table-styles
lakshmishriaswathnarayana Oct 17, 2024
2f777fa
Merge branch 'redesign-develop' into KAW-8122-highlight-animation
TomaszDziezykNetcentric Oct 17, 2024
d12d550
Merge pull request #48 from Netcentric/KAW-8122-highlight-animation
lakshmishriaswathnarayana Oct 17, 2024
306268d
Merge pull request #51 from Netcentric/KAW-8163-hero-xs-image
lakshmishriaswathnarayana Oct 17, 2024
d0ac1ec
KAW-8140 Fix gap between text and images for stacked variant
TomaszDziezykNetcentric Oct 17, 2024
fda97c0
fix font-size
Lakshmishri Oct 17, 2024
3282263
add fonts for p type single story variant
Lakshmishri Oct 17, 2024
f3bc2a2
fix lint errors
Lakshmishri Oct 17, 2024
414b23f
fix fonts, add author
Lakshmishri Oct 17, 2024
ef0ec7d
KAW-8140 Fix spacing
TomaszDziezykNetcentric Oct 18, 2024
195c8c3
Merge pull request #53 from Netcentric/KAW-8003-news
lakshmishriaswathnarayana Oct 18, 2024
4b9870a
Merge pull request #52 from Netcentric/KAW-8140-fix
lakshmishriaswathnarayana Oct 18, 2024
86fbbcb
Merge branch 'redesign-develop' into KAW-8116-gallery
TomaszDziezykNetcentric Oct 18, 2024
576c9bc
KAW-8154 adjust spacing
Lakshmishri Oct 18, 2024
b3a42f0
Merge branch 'redesign-develop' into KAW-8152-text-fonts
Lakshmishri Oct 18, 2024
2d70f73
KAW-8116 Fix gallery translation on small devices
TomaszDziezykNetcentric Oct 18, 2024
10faf04
KAW-8168 Fix font size
TomaszDziezykNetcentric Oct 18, 2024
d75127f
KAW-8165 Fix gap between heading and paragraph
TomaszDziezykNetcentric Oct 18, 2024
155ad22
KAW-8166 Fix font size
TomaszDziezykNetcentric Oct 18, 2024
3711240
Merge pull request #54 from Netcentric/KAW-8152-text-fonts
TomaszDziezykNetcentric Oct 18, 2024
cbc46d2
Merge pull request #47 from Netcentric/KAW-8116-gallery
lakshmishriaswathnarayana Oct 18, 2024
a69997d
KAW-8159 Change the dot size
TomaszDziezykNetcentric Oct 18, 2024
82c3e77
Merge pull request #55 from Netcentric/KAW-8168-highlight-text
lakshmishriaswathnarayana Oct 18, 2024
876b45a
Merge pull request #56 from Netcentric/KAW-8165-gap
lakshmishriaswathnarayana Oct 18, 2024
7ea3a78
Merge pull request #58 from Netcentric/kaw-8159
lakshmishriaswathnarayana Oct 18, 2024
574092f
Merge pull request #57 from Netcentric/kaw-8166-font-size
lakshmishriaswathnarayana Oct 18, 2024
cb9f02e
KAW-8171 fix circle size
Lakshmishri Oct 18, 2024
68e0911
KAW-8173 fix fonts
Lakshmishri Oct 18, 2024
ee3f7f2
fix lint errors
Lakshmishri Oct 18, 2024
962c13b
KAS-8158 Fix letter spacing
TomaszDziezykNetcentric Oct 21, 2024
44896e4
Merge pull request #59 from Netcentric/KAW-8171-circle
TomaszDziezykNetcentric Oct 21, 2024
362be2a
KAW-812: gap between image and nav bar
Oct 21, 2024
8fd59ca
KAW-8174 Fix dots and margins
TomaszDziezykNetcentric Oct 21, 2024
8e9180e
Merge pull request #61 from Netcentric/KAW-8172-vehicle-selector-gap
lakshmishriaswathnarayana Oct 21, 2024
f10191d
Merge pull request #60 from Netcentric/KAW-8158-letter-spacing
lakshmishriaswathnarayana Oct 21, 2024
a63b67d
KAW-8176: fix js error
Oct 21, 2024
dae5ccb
Merge pull request #63 from Netcentric/KAW-8176-title-line
lakshmishriaswathnarayana Oct 21, 2024
e75ca85
KAW-8174 Add slide change for feature
TomaszDziezykNetcentric Oct 21, 2024
d830bd5
KAW-8174 Refactor sliding
TomaszDziezykNetcentric Oct 21, 2024
01e2439
KAW-8175 Fix lineheight for headings
TomaszDziezykNetcentric Oct 21, 2024
dad755e
Merge pull request #62 from Netcentric/kaw-8174
lakshmishriaswathnarayana Oct 21, 2024
b5ac93a
Merge pull request #64 from Netcentric/KAW-8175
lakshmishriaswathnarayana Oct 21, 2024
be7b6a9
KAW-8164 Fix specification table size
TomaszDziezykNetcentric Oct 21, 2024
d3b9647
KAW-8177 Fix section spacing
TomaszDziezykNetcentric Oct 22, 2024
3cc643b
KAW-8177 Remove title paddings
TomaszDziezykNetcentric Oct 22, 2024
1005554
KAW-8177 Fix logo hover color
TomaszDziezykNetcentric Oct 22, 2024
7be0295
KAW-8144, KAW-8145
Oct 22, 2024
431c1fc
KAW-8183 Fix CLS
TomaszDziezykNetcentric Oct 23, 2024
7734a24
KAW-8183 Formatting
TomaszDziezykNetcentric Oct 23, 2024
ccb19b6
KAW-8184 Replace the trapped scroll to animation
TomaszDziezykNetcentric Oct 23, 2024
1c68185
KAW-8184 Increas the clickable size of the feature dots
TomaszDziezykNetcentric Oct 23, 2024
944d402
KAW-8184 Add animation time variant
TomaszDziezykNetcentric Oct 23, 2024
22d4e39
KAW-8184 replace the on scroll animation throttle with debouce
TomaszDziezykNetcentric Oct 23, 2024
ebe1419
KAW-8185 Fix footers gap
TomaszDziezykNetcentric Oct 23, 2024
bd6b459
Merge pull request #65 from Netcentric/kaw-8164
lakshmishriaswathnarayana Oct 23, 2024
4edc69d
Merge pull request #67 from Netcentric/KAW-8144-teaser-padding
lakshmishriaswathnarayana Oct 23, 2024
b5eb969
Merge pull request #66 from Netcentric/kaw-8177
lakshmishriaswathnarayana Oct 23, 2024
a22024f
Merge pull request #69 from Netcentric/kaw-8184
lakshmishriaswathnarayana Oct 23, 2024
9aa9763
Merge pull request #70 from Netcentric/kaw-8185
lakshmishriaswathnarayana Oct 23, 2024
7fa8013
Merge branch 'redesign-develop' into kaw-8183
TomaszDziezykNetcentric Oct 24, 2024
ce71bb0
Merge pull request #68 from Netcentric/kaw-8183
lakshmishriaswathnarayana Oct 24, 2024
eee0f29
KAW-8190: change image class
Oct 24, 2024
46a52f5
Merge pull request #71 from Netcentric/bugfix/KAW-8190-img-conflict
lakshmishriaswathnarayana Oct 24, 2024
d8b0b22
KAW-8173 Fix font-weight
TomaszDziezykNetcentric Oct 24, 2024
e0804ea
KAW-8191 Add Boxed font
TomaszDziezykNetcentric Oct 24, 2024
bb8694b
Merge pull request #72 from Netcentric/kaw-8173-font-weight
lakshmishriaswathnarayana Oct 24, 2024
ca265ea
Merge pull request #73 from Netcentric/kaw-8191-add-fonts
lakshmishriaswathnarayana Oct 24, 2024
e9d2a18
KAW-8193 Fix vehicle selector animation
TomaszDziezykNetcentric Oct 25, 2024
01c72f5
KAW-8195 Update favicon
TomaszDziezykNetcentric Oct 25, 2024
a0128a7
Merge pull request #75 from Netcentric/kaw-8195-favicon
lakshmishriaswathnarayana Oct 25, 2024
fc2072a
Merge pull request #74 from Netcentric/kaw-8193
lakshmishriaswathnarayana Oct 25, 2024
b98dbe2
Fix space between sections
TomaszDziezykNetcentric Oct 25, 2024
42fa669
Merge pull request #76 from Netcentric/fix-gaps
lakshmishriaswathnarayana Oct 25, 2024
5f19119
KAW-8196 Fix text with image stacked overlapping next component
TomaszDziezykNetcentric Oct 28, 2024
54dc42a
Remove supportDocumentStyle function
TomaszDziezykNetcentric Oct 28, 2024
1c11394
Merge pull request #78 from Netcentric/remove-support-doc-style
lakshmishriaswathnarayana Oct 28, 2024
2186424
Merge pull request #77 from Netcentric/kaw-8196
lakshmishriaswathnarayana Oct 28, 2024
1281118
KAW-8201 Add lazy loading for map
TomaszDziezykNetcentric Oct 28, 2024
86b7e47
Merge pull request #79 from Netcentric/kaw-8201-lazy-loading-map
lakshmishriaswathnarayana Oct 28, 2024
68ebaec
Add styles for text only pages
TomaszDziezykNetcentric Oct 29, 2024
a9ebd09
KAW-8233: header hightlight on active
Oct 29, 2024
88ff470
Kaw-8233: fic css order
Oct 29, 2024
f60ad0c
Kaw-8233: fix specificity
Oct 29, 2024
ed3b535
Update first heading styles
TomaszDziezykNetcentric Oct 29, 2024
f5bd4ff
Kaw-8233: update hover
Oct 29, 2024
ba91801
Change the hero logo
TomaszDziezykNetcentric Oct 29, 2024
3304ca9
KAW-8236 Fix wide image variant
TomaszDziezykNetcentric Oct 30, 2024
661a4cc
Merge pull request #82 from Netcentric/kaw-8236-wide-stack-image
lakshmishriaswathnarayana Oct 30, 2024
f7ea6cb
Change the brand logo location for hero banner
TomaszDziezykNetcentric Oct 30, 2024
67aed87
kaw-8302: linkedin icon
Oct 30, 2024
6d0b083
Merge pull request #86 from Netcentric/kaw-8302-footer-icon
lakshmishriaswathnarayana Oct 30, 2024
1002500
Merge pull request #81 from Netcentric/cookie-page-style
lakshmishriaswathnarayana Oct 30, 2024
d6ad184
fix text component console error
Lakshmishri Oct 30, 2024
4cc4e02
Merge branch 'redesign-develop' into text-component-error
Lakshmishri Oct 30, 2024
060cc03
kaw-8233: fix mobile color
Oct 30, 2024
5b96087
Merge pull request #87 from Netcentric/text-component-error
TomaszDziezykNetcentric Oct 30, 2024
f5e08a8
Make the highlight animation slower
TomaszDziezykNetcentric Oct 30, 2024
d90985b
kaw-8233: active styles
Oct 30, 2024
d89f78c
Merge pull request #89 from Netcentric/highlight-slow-animation
lakshmishriaswathnarayana Oct 31, 2024
8bbbc6f
Merge pull request #88 from Netcentric/kaw-8233-header-nav
lakshmishriaswathnarayana Oct 31, 2024
f347020
Change hilight logo
TomaszDziezykNetcentric Oct 31, 2024
80ecc7b
Merge pull request #90 from Netcentric/change-highligh-logo
lakshmishriaswathnarayana Oct 31, 2024
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ helix-importer-ui
.DS_Store
*.bak
.idea

.vscode/settings.json
1 change: 0 additions & 1 deletion blocks/columns/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function decorate(block) {
block.classList.remove(borderClassName);
}
const isDownloadVariant = block.classList.contains('download');

const isGridVariant = block.classList.contains('grid');
const isGalleryVariant = block.classList.contains('gallery');
const ratioClass = [...block.classList].find((cl) => cl.startsWith('ratio-'));
Expand Down
85 changes: 49 additions & 36 deletions blocks/dealer-locator/dealer-locator.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,44 +118,57 @@ export default async function decorate(block) {
},
};

loadScript('/blocks/dealer-locator/vendor/jquery.min.js', { type: 'text/javascript', charset: 'UTF-8' })
.then(() => {
// these scripts depend on jquery:
loadScript('//webapp.woosmap.com/webapp.js', { type: 'text/javascript' }).then(() => {
function loadWebApp() {
const publicKey = 'woos-50c04d89-af71-3a3b-b0b9-0786ee130532';
// eslint-disable-next-line no-undef
const webapp = new window.WebApp('dealer-locator', publicKey);
const config = {
maps: {
provider: 'woosmap',
channel: '',
localities: {
language,
data: 'advanced',
const loadDealerLocator = () => {
loadScript('/blocks/dealer-locator/vendor/jquery.min.js', { type: 'text/javascript', charset: 'UTF-8' })
.then(() => {
// these scripts depend on jquery:
loadScript('//webapp.woosmap.com/webapp.js', { type: 'text/javascript' }).then(() => {
function loadWebApp() {
const publicKey = 'woos-50c04d89-af71-3a3b-b0b9-0786ee130532';
// eslint-disable-next-line no-undef
const webapp = new window.WebApp('dealer-locator', publicKey);
const config = {
maps: {
provider: 'woosmap',
channel: '',
localities: {
language,
data: 'advanced',
},
},
},
theme: {
primaryColor: '#ed1d24',
},
datasource: {
maxResponses: 5,
maxDistance: 1000000,
useDistanceMatrix: true,
distanceMatrixProvider: 'woosmap',
},
internationalization: {
lang: language,
},
woosmapview: isOneLocationVariant ? selectedLocationConfig : defaultLocationConfig,
};
webapp.setConf(config);
if (isOneLocationVariant) {
webapp.setInitialStateToSelectedStore('990002');
theme: {
primaryColor: '#ed1d24',
},
datasource: {
maxResponses: 5,
maxDistance: 1000000,
useDistanceMatrix: true,
distanceMatrixProvider: 'woosmap',
},
internationalization: {
lang: language,
},
woosmapview: isOneLocationVariant ? selectedLocationConfig : defaultLocationConfig,
};
webapp.setConf(config);
if (isOneLocationVariant) {
webapp.setInitialStateToSelectedStore('990002');
}
webapp.render();
}
webapp.render();
}
loadWebApp();
loadWebApp();
});
});
};

const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.intersectionRatio > 0) {
loadDealerLocator();
observer.disconnect();
}
});
}, { threshold: [0.1], rootMargin: '500px' });

observer.observe(block);
}
135 changes: 135 additions & 0 deletions blocks/feature/feature.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
.feature.block {
position: relative;
}

.feature .feature-slides {
display: grid;
}

.feature .feature-slide {
display: flex;
flex-direction: column;
gap: 32px;
grid-area: 1 / 1 / 2 / 2;
transition: opacity 500ms ease-in-out;
}

.feature .feature-image {
margin-left: calc((100vw - 100%) / -2);
margin-right: calc((100vw - 100%) / -2);
}

.feature .feature-image picture {
display: flex;
}

.feature .feature-image img {
width: 100%;
height: auto;
}

.feature .feature-slides-nav {
display: inline-flex;
flex-direction: column;
gap: 16px;
position: absolute;
right: 0;
top: calc(75vw + 40px);
margin-right: calc(var(--section-x-padding) * -1);
z-index: 1;
}

.feature .feature-slide-nav-item {
width: 42px;
height: 42px;
display: flex;
align-items: center;
justify-content: center;
}

.feature-slide-nav-dot {
width: 8px;
height: 8px;
display: block;
border: solid 1px var(--grey-90);
color: transparent;
overflow: hidden;
border-radius: 50%;
}

.feature .active .feature-slide-nav-dot {
width: 20px;
height: 20px;
background: var(--black);
border-radius: 50%;
border-width: 0;
letter-spacing: 0;
}

.feature .feature-text {
padding-right: 36px;
}

.feature .feature-text .h5 {
margin-bottom: 24px;
}

@media (width >= 768px) {
.feature .feature-slide {
flex-direction: row;
gap: 48px;
}

.feature .feature-image {
width: calc(50vw - 12px);
margin-right: unset;
}

.feature .feature-text {
max-width: 50%;
padding-right: 67px;
}

.feature .feature-slides-nav {
width: 42px;
top: 0;
margin-right: 0;
z-index: 1;
}

.feature .feature-slide-nav-item {
width: 42px;
height: 42px;
}

.feature .feature-slide-nav-item.active span {
width: 32px;
height: 32px;
color: var(--white);
display: flex;
align-items: center;
justify-content: center;
}
}

@media (width >= 1025px) {
.feature .feature-slide {
align-items: center;
gap: 72px;
}

.feature .feature-text {
padding-right: 80px;
}

.feature .feature-slides-nav {
top: 50%;
translate: 0 -50%;
}
}

@media (width >= 1440px) {
.feature .feature-text {
padding-right: 118px;
}
}
91 changes: 91 additions & 0 deletions blocks/feature/feature.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
import {
onAppReady,
} from '../../scripts/helpers.js';

const setActiveSlide = (newActiveIndex, block) => {
const slides = block.querySelectorAll('.feature-slides > div');
const navItems = [...block.querySelectorAll('.feature-slide-nav-item')];

slides.forEach((slide, index) => {
if (newActiveIndex === index) {
slide.style.opacity = '1';
slide.style.zIndex = '1';
slide.classList.add('active');
navItems[index].classList.add('active');
} else {
slide.style.opacity = '0';
slide.style.zIndex = '0';
slide.classList.remove('active');
navItems[index].classList.remove('active');
}
});
};

const createNavigation = (block, slideCount, onClick) => {
const slidesDots = (new Array(slideCount))
.fill(0)
.map((_, index) => {
const navItem = document.createElement('button');
navItem.classList.add('feature-slide-nav-item');

if (!index) {
navItem.classList.add('active');
}

const dotEl = document.createElement('span');
dotEl.classList.add('feature-slide-nav-dot');
dotEl.textContent = index + 1;

navItem.append(dotEl);
navItem.addEventListener('click', () => onClick(index, block));

return navItem;
});

const wrapper = document.createElement('div');
wrapper.classList.add('feature-slides-nav');
wrapper.append(...slidesDots);
block.append(wrapper);
};

export default async function decorate(block) {
const slideCount = block.querySelectorAll(':scope > div').length;
const slideWrapper = document.createElement('div');
slideWrapper.classList.add('feature-slides');

block.querySelectorAll(':scope > div').forEach((el, index) => {
if (!index) {
el.replaceWith(slideWrapper);
}

el.classList.add('feature-slide');
slideWrapper.append(el);
});

block.querySelectorAll('.feature-slides > div > div').forEach((column) => {
const type = column.querySelector('picture') ? 'image' : 'text';
column.classList.add(`feature-${type}`);
});

const headings = block.querySelectorAll('h1, h2, h3, h4, h5, h6');

headings.forEach((heading) => {
heading.classList.add('h5');
});

createNavigation(block, slideCount, setActiveSlide);
setActiveSlide(0, block);

// making sure that the slide gets enought space to display slide navigation
const onResize = () => {
const firstTextEl = block.querySelector('.feature-text');
const navEl = block.querySelector('.feature-slides-nav');
const minHeight = window.getComputedStyle(navEl).height;

firstTextEl.style.minHeight = `calc(${minHeight} + 20px)`;
};

onAppReady(onResize);

window.addEventListener('resize', onResize);
}
Loading