"New" landing-page

This commit is contained in:
Mawoka
2022-04-12 14:51:31 +02:00
parent 5e507d7b41
commit 435cb69481
16 changed files with 223 additions and 3 deletions
@@ -0,0 +1,57 @@
<script lang="ts">
import { Swiper, SwiperSlide } from 'swiper/svelte';
import { Autoplay } from 'swiper';
import 'swiper/css';
// import 'swiper/css/autoplay';
const testimotionals = [
{
quote: 'Great programm!',
name: 'John Doe',
source: 'https://t.co'
},
{
quote:
'The Landscaping Professionals were quick, courteous and very helpful. They\n' +
' helped me restore my lawn and gardens completely after putting in my deck.\n' +
' I was worried it wouldnt be done in time for my garden party, but they\n' +
' finished the job with time to spare!',
name: 'Jane Doe',
source: 'https://t.co'
}
];
</script>
<div class="grid grid-cols-3">
<div class="col-start-2">
<Swiper
centeredSlides={true}
modules={[Autoplay]}
autoplay={{
delay: 3000,
disableOnInteraction: false
}}
loop={true}
>
{#each testimotionals as testi}
<SwiperSlide>
<div class="flex justify-center">
<div class="max-w-3xl p-4 text-gray-800 rounded-lg text-white">
<div class="mb-2">
<div class="h-3 text-3xl text-left text-indigo-600"></div>
<p class="px-4 text-center text-gray-200">
{testi.quote}
</p>
<div class="h-3 text-3xl text-right text-indigo-600"></div>
<div class="text-center">
<h5 class="font-bold text-indigo-600">{testi.name}</h5>
<a class="text-sm text-gray-600" href={testi.source}>Source</a>
</div>
</div>
</div>
</div>
</SwiperSlide>
{/each}
</Swiper>
</div>
</div>