From d395b5e11f6fa88e69c19e6c19e7b0998fc779b3 Mon Sep 17 00:00:00 2001 From: mamoodi Date: Mon, 3 Mar 2025 10:18:20 -0500 Subject: [PATCH] Add more information to the main docs page (#7074) --- docs/src/components/Demo/Demo.tsx | 4 --- docs/src/components/Demo/index.module.css | 1 - .../HomepageHeader/HomepageHeader.tsx | 26 ++++++++++++++++--- docs/src/css/homepageHeader.css | 5 ++-- docs/src/pages/index.tsx | 19 +++++--------- 5 files changed, 33 insertions(+), 22 deletions(-) diff --git a/docs/src/components/Demo/Demo.tsx b/docs/src/components/Demo/Demo.tsx index 25621bca5f..988d83d6a0 100644 --- a/docs/src/components/Demo/Demo.tsx +++ b/docs/src/components/Demo/Demo.tsx @@ -5,9 +5,6 @@ export function Demo() { const videoRef = React.useRef(null); return ( -
-
); } diff --git a/docs/src/components/Demo/index.module.css b/docs/src/components/Demo/index.module.css index 7797c3e1f2..bda15db9fa 100644 --- a/docs/src/components/Demo/index.module.css +++ b/docs/src/components/Demo/index.module.css @@ -1,6 +1,5 @@ .demo { width: 100%; - padding: 30px; max-width: 800px; text-align: center; border-radius: 40px; diff --git a/docs/src/components/HomepageHeader/HomepageHeader.tsx b/docs/src/components/HomepageHeader/HomepageHeader.tsx index 5798db446d..4feebfaf36 100644 --- a/docs/src/components/HomepageHeader/HomepageHeader.tsx +++ b/docs/src/components/HomepageHeader/HomepageHeader.tsx @@ -17,6 +17,29 @@ export function HomepageHeader() {

{siteConfig.tagline}

+
+

+ Use AI to tackle the toil in your backlog. Our agents have all the same tools as a human developer: they can modify code, run commands, browse the web, + call APIs, and yes-even copy code snippets from StackOverflow. +
+ + Get started with OpenHands. + +

+
+
Contributors Stargazers @@ -27,12 +50,9 @@ export function HomepageHeader() { Join our Discord community Credits
- Check out the documentation Paper on Arxiv Evaluation Benchmark Score
- - ); diff --git a/docs/src/css/homepageHeader.css b/docs/src/css/homepageHeader.css index ee7bb6f4df..98d86849cf 100644 --- a/docs/src/css/homepageHeader.css +++ b/docs/src/css/homepageHeader.css @@ -1,14 +1,14 @@ /* homepageHeader.css */ .homepage-header { - height: 800px; + padding: 1rem 0; } .header-content { display: flex; flex-direction: column; align-items: center; - padding: 2rem; + padding: 1rem; font-weight: 300; width: 100%; } @@ -25,6 +25,7 @@ .header-subtitle { font-size: 1.5rem; + margin: 0.5rem 0; } .header-links { diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 6f20f1eb77..7f6af3b774 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -2,15 +2,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import { HomepageHeader } from '../components/HomepageHeader/HomepageHeader'; import { translate } from '@docusaurus/Translate'; - -export function Header({ title, summary }): JSX.Element { - return ( -
-

{title}

-

{summary}

-
- ); -} +import { Demo } from "../components/Demo/Demo"; export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); @@ -23,11 +15,14 @@ export default function Home(): JSX.Element { })} > -
-
+ +
+ +
+ +