@@ -8,9 +8,15 @@ import prusa from "./assets/trustedBy/prusa.png";
88import acquinox from " ./assets/trustedBy/acquinox.png" ;
99import truevo from " ./assets/trustedBy/truevo.png" ;
1010import hostinger from " ./assets/trustedBy/hostinger.webp" ;
11+
12+ interface Props {
13+ forceScroll? : boolean ;
14+ }
15+
16+ const { forceScroll = false } = Astro .props ;
1117---
1218
13- <div id =" trusted-by" >
19+ <div id =" trusted-by" class:list = { [{ " force-scroll " : forceScroll }] } >
1420 <p >Trusted by</p >
1521 <div class =" track-container" >
1622 <div class =" track" >
@@ -23,7 +29,6 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
2329 <Image src ={ truevo } alt =" truevo logo image" />
2430 <Image src ={ deepImage } alt =" deepimage logo image" />
2531
26- <!-- Duplicate logos for seamless scrolling -->
2732 <div class =" scroll-duplicate" >
2833 <Image src ={ prusa } alt =" prusa logo image" />
2934 <!-- <Image src={penske} alt="team penske logo image" /> -->
@@ -74,13 +79,13 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
7479 width: 100%;
7580 display: flex;
7681 align-items: center;
77- column-gap: 30px ;
82+ column-gap: 50px ;
7883
7984 @include break-up(lg) {
8085 flex-flow: row wrap;
8186 justify-content: space-between;
8287 row-gap: 8px;
83- column-gap: 10px ;
88+ column-gap: 50px ;
8489 }
8590
8691 @include break-down(lg) {
@@ -97,12 +102,56 @@ import hostinger from "./assets/trustedBy/hostinger.webp";
97102 .scroll-duplicate {
98103 display: flex;
99104 align-items: center;
100- column-gap: 30px ;
105+ column-gap: 50px ;
101106
102107 @include break-up(lg) {
103108 display: none;
104109 }
105110 }
106111 }
112+
113+ &.force-scroll {
114+ .track-container {
115+ overflow: hidden;
116+ }
117+
118+ .track {
119+ animation: scroll 20s linear infinite;
120+ width: max-content;
121+ padding: 15px 0;
122+ flex-flow: row nowrap;
123+ justify-content: flex-start;
124+
125+ img {
126+ max-height: 50px;
127+ width: auto;
128+ }
129+
130+ .scroll-duplicate {
131+ display: flex;
132+ align-items: center;
133+ column-gap: 50px;
134+ }
135+ }
136+
137+ @include break-up(lg) {
138+ .track-container {
139+ overflow: hidden;
140+ }
141+
142+ .track {
143+ animation: scroll 25s linear infinite;
144+ width: max-content;
145+ flex-flow: row nowrap;
146+ justify-content: flex-start;
147+
148+ .scroll-duplicate {
149+ display: flex;
150+ align-items: center;
151+ column-gap: 30px;
152+ }
153+ }
154+ }
155+ }
107156 }
108157</style >
0 commit comments