Skip to content

Commit

Permalink
fix: website resizing was causing problems with demo (#246)
Browse files Browse the repository at this point in the history
* improve website layout

* fix: window resizing hiding demo

* fix: window resizing hiding demo
  • Loading branch information
shreyashankar authored Dec 23, 2024
1 parent 23540a7 commit 790dd70
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions website/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,9 @@ export default function Home() {
const [showVision, setShowVision] = useState(false);

useEffect(() => {
const handleResize = () => {
if (window.innerWidth >= 640) {
setShowDemo(true);
} else {
setShowDemo(false);
}
};

handleResize();

window.addEventListener("resize", handleResize);

return () => window.removeEventListener("resize", handleResize);
if (window.innerWidth >= 640) {
setShowDemo(true);
}
}, []);

const toggleDemo = () => {
Expand Down Expand Up @@ -114,7 +104,7 @@ export default function Home() {
<span className="logo-text text-2xl sm:text-3xl">docetl</span>
</div>
<p className="text-lg sm:text-xl mb-4 sm:mb-6">
Powering complex document processing pipelines
A system for LLM-powered data processing
</p>

<div className="max-w-lg mx-auto flex flex-col items-center mb-6">
Expand Down

0 comments on commit 790dd70

Please sign in to comment.