Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CTA button alignment in docs home page #3788

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 48 additions & 45 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,55 @@ import styles from "./index.module.css";
import HomepageFeatures from "../components/HomepageFeatures";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<div className={styles.buttonWrapper}>
<Link
className="button button--secondary button--lg"
to="/docs/Getting-Started"
>
Get Started
</Link>
<p className={styles.buttonTagline}>
Current stable version of AutoGen (autogen-agentchat~=0.2)
</p>
</div>
<div className={styles.buttonWrapper}>
<Link
className="button button--secondary button--lg"
to="https://microsoft.github.io/autogen/dev/"
>
Preview v0.4
</Link>
<p className={styles.buttonTagline}>
A new event driven architecture for AutoGen
</p>
</div>
</div>
</div>
</header>
);
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<div className={styles.buttonWrapper}>
<Link
className="button button--secondary button--lg"
to="/docs/Getting-Started"
>
Get Started
</Link>
<p className={styles.buttonTagline}>
Current stable version of AutoGen (autogen-agentchat~=0.2)
</p>
</div>
<div className={styles.buttonWrapper}>
<Link
className={clsx(
"button button--secondary button--lg",
styles.buttonLink
)}
to="https://microsoft.github.io/autogen/dev/"
>
Preview v0.4
</Link>
<p className={styles.buttonTagline}>
A new event driven, asynchronous architecture for AutoGen
</p>
</div>
</div>
</div>
</header>
);
}

export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`AutoGen`}
description="Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework"
>
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`AutoGen`}
description="Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework"
>
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}
9 changes: 8 additions & 1 deletion website/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@
display: flex;
flex-direction: column;
align-items: center;
width: 200px;
}

.buttonLink {
width: 100%;
}

.buttonTagline {
font-size: 0.8rem;
margin-top: 5px;
text-align: center;
max-width: 200px;
height: 100px;
overflow-y: auto;
padding: 5px;
}
Loading