-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff9f423
commit 4dd18c1
Showing
10 changed files
with
168 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
<li class="slide web-carousel-item"> | ||
<script lang="ts"> | ||
import { classNames } from '$lib/utils/classnames'; | ||
let className = ''; | ||
export { className as class }; | ||
</script> | ||
|
||
<li | ||
class={classNames( | ||
'slide web-carousel-item mr-2 flex-[0_0_100%] cursor-grab active:cursor-grabbing md:flex-[0_0_50%]', | ||
className | ||
)} | ||
> | ||
<div class="embla__slide__number"> | ||
<slot /> | ||
</div> | ||
</li> | ||
|
||
<style lang="scss"> | ||
@use '$scss/abstract' as *; | ||
.slide { | ||
cursor: grab; | ||
&:active { | ||
cursor: grabbing; | ||
} | ||
@media (max-width: 768px) { | ||
flex: 0 0 100%; | ||
} | ||
flex: 0 0 50%; | ||
min-width: 0; | ||
margin-right: pxToRem(16); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<script lang="ts"> | ||
import { Root, Slide } from '$lib/components/carousel'; | ||
const testimonials = [ | ||
{ | ||
name: 'Ryan O’Conner', | ||
copy: `The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.`, | ||
image: '/', | ||
title: 'Founder', | ||
company: 'K-Collect' | ||
}, | ||
{ | ||
name: 'Ryan O’Conner', | ||
copy: `The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.`, | ||
image: '/', | ||
title: 'Founder', | ||
company: 'K-Collect' | ||
}, | ||
{ | ||
name: 'Ryan O’Conner', | ||
copy: `The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.`, | ||
image: '/', | ||
title: 'Founder', | ||
company: 'K-Collect' | ||
}, | ||
{ | ||
name: 'Ryan O’Conner', | ||
copy: `The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.`, | ||
image: '/', | ||
title: 'Founder', | ||
company: 'K-Collect' | ||
}, | ||
{ | ||
name: 'Ryan O’Conner', | ||
copy: `The switch to using Appwrite brought infinite value that I'm still discovering today, but a major impact that it made was the amount of time and stress that it saved me as it simply just works.`, | ||
image: '/', | ||
title: 'Founder', | ||
company: 'K-Collect' | ||
} | ||
]; | ||
</script> | ||
|
||
<div class="light flex justify-center gap-3"> | ||
<Root | ||
showBullets={false} | ||
showArrows={false} | ||
showGradient={false} | ||
autoScrollOptions={{ | ||
active: true, | ||
speed: 0.5 | ||
}} | ||
> | ||
{#each testimonials as testimonial} | ||
<Slide class="md:flex-[0_0_25%]"> | ||
<div class="w-full rounded-2xl bg-white p-5"> | ||
<p class="text-sub-body text-secondary font-medium">{testimonial.copy}</p> | ||
<span class="text-sub-body text-secondary" | ||
>{testimonial.name} // {testimonial.company}</span | ||
> | ||
</div> | ||
</Slide> | ||
{/each} | ||
</Root> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters