Skip to content

Commit

Permalink
Fix text and title of animation
Browse files Browse the repository at this point in the history
  • Loading branch information
prokawsar committed Nov 26, 2024
1 parent c80d3e8 commit 0829166
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/lib/components/sections/AnimatedFeatures.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script lang="ts">
import { base } from '$app/paths'
import { browser } from '$app/environment'
import ScrollContainer from '$lib/components/elements/ScrollContainer.svelte'
import { base } from '$app/paths'
import LottieAnimation from '$lib/components/elements/LottieAnimation.svelte'
import ScrollContainer from '$lib/components/elements/ScrollContainer.svelte'
const slides = [
{
text: 'Connect all your devices using P2P technology',
title: 'Connect all your devices using P2P technology',
text: 'Peer-to-peer (P2P) technology offers a robust and decentralized method for keeping private user data synchronized across multiple devices securely. Unlike traditional client-server architectures, where a central server is a potential single point of failure and a target for data breaches, P2P networks distribute data directly across user devices, significantly enhancing data security and resilience.',
color: '#ACD6FC',
animation: 'feature-1'
}
Expand All @@ -31,12 +32,19 @@
<div class="mx-auto flex w-full max-w-7xl flex-row sm:px-8 lg:px-5 xl:px-0">
{#if browser}
<ScrollContainer>
{#each slides as { color, text, animation }, i}
{#each slides as { color, title, text, animation }, i}
<div
class="flex w-full snap-center flex-col justify-between rounded-xl lg:flex-row"
style="background-color: {color}"
>
<p class="mt-10 pl-5 text-center text-3xl font-medium lg:text-start">{text}</p>
<div class="flex flex-col gap-1 pt-5">
<p class="mt-5 pl-5 text-center text-3xl font-medium lg:text-start">
{title}
</p>
<p class="mt-5 hidden pl-5 text-center text-xl font-medium lg:flex lg:text-start">
{text ?? ''}
</p>
</div>
<div class="flex justify-center">
<LottieAnimation
height="380px"
Expand Down

0 comments on commit 0829166

Please sign in to comment.