Skip to content

Commit 0290d7f

Browse files
authored
Merge pull request #30 from knowlyai/feature/how-knowly-works
Feature - Second home page version with "How Knowly Works" section
2 parents f43c6bd + dd9f854 commit 0290d7f

5 files changed

Lines changed: 76 additions & 6 deletions

File tree

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13+
"@lottiefiles/dotlottie-react": "^0.13.5",
1314
"@tailwindcss/vite": "^4.1.5",
1415
"@tanstack/react-query": "^5.75.1",
1516
"axios": "^1.9.0",

src/features/home/pages/home-page.tsx

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Background } from '@/shared/components/background'
33
import { Layout } from '@/shared/components/layout'
44
import { motion } from 'framer-motion'
55
import { Button } from '@/shared/components/button'
6+
import { DotLottieReact } from '@lottiefiles/dotlottie-react'
67

78
function BackgroundBlobs() {
89
return (
@@ -100,11 +101,58 @@ export function HomePage() {
100101
</a>
101102
</div>
102103
</motion.section>
103-
<section className="flex h-screen items-center justify-center">
104-
<h1>How Knowly works</h1>
105-
<div></div>
106-
<div></div>
107-
<div></div>
104+
105+
<section
106+
id="how-knowly-works"
107+
className="flex h-screen flex-col items-center justify-center"
108+
>
109+
<h1 className="text-6xl font-semibold">How Knowly Works</h1>
110+
<div className="flex w-full max-w-6xl justify-between gap-8">
111+
{/* Parte da Esquerda */}
112+
<div className="flex flex-col items-center">
113+
<div className="h-100 w-100">
114+
<DotLottieReact
115+
src="https://lottie.host/ade48407-0fab-452b-8257-6bde53c7dc0c/QXs4qptUZD.lottie"
116+
loop
117+
autoplay
118+
/>
119+
</div>
120+
<h1 className="mb-4 text-3xl font-semibold">You Upload</h1>
121+
<p className="text-center text-xl break-words text-white/50">
122+
Upload the PDF files you wish to make up the knowledge base
123+
</p>
124+
</div>
125+
{/* Parte do Meio */}
126+
<div className="flex flex-col items-center">
127+
<div className="h-100 w-100">
128+
<DotLottieReact
129+
src="https://lottie.host/e10d7ded-6bde-4049-afd0-1d902c61d1d2/oSwowUt9Qm.lottie"
130+
loop
131+
autoplay
132+
segment={[70, 278]}
133+
/>
134+
</div>
135+
<h1 className="mb-4 text-3xl font-semibold">We Build</h1>
136+
<p className="text-center text-xl break-words text-white/50">
137+
We use the files to train a Gen AI model
138+
</p>
139+
</div>
140+
141+
{/* Parte da Direita */}
142+
<div className="flex flex-col items-center">
143+
<div className="h-100 w-100">
144+
<DotLottieReact
145+
src="https://lottie.host/e84fe9c7-0ada-4dcb-a6c0-3e5ae46e1354/GgsWdQCrtV.lottie"
146+
loop
147+
autoplay
148+
/>
149+
</div>
150+
<h1 className="mb-4 text-3xl font-semibold">You Enjoy</h1>
151+
<p className="text-center text-xl break-words text-white/50">
152+
After the model is done, you can try it and use it as you wish
153+
</p>
154+
</div>
155+
</div>
108156
</section>
109157
<section className="flex h-screen items-center justify-center">
110158
<h1>Pricing</h1>

src/shared/components/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function Navbar() {
2121
<p className="text-lg">Knowly</p>
2222
</div>
2323
<div className="flex items-center gap-8">
24-
<a href="">Our product</a>
24+
<a href="#how-knowly-works">Our product</a>
2525
<a href="">About us</a>
2626
<a href="">Pricing</a>
2727
<a href="">FAQ</a>

src/shared/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@
2222
--color-blue-80: #8048a4;
2323
--color-blue-100: #5a3374;
2424
}
25+
26+
html {
27+
scroll-behavior: smooth;
28+
}

0 commit comments

Comments
 (0)