2023-06-06 01:33:54 +00:00
|
|
|
|
import React from 'react';
|
|
|
|
|
|
import clsx from 'clsx';
|
|
|
|
|
|
import Link from '@docusaurus/Link';
|
|
|
|
|
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
|
|
|
|
import Layout from '@theme/Layout';
|
|
|
|
|
|
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
|
|
|
|
|
|
|
|
|
|
|
import styles from './index.module.css';
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
2023-06-06 02:38:56 +00:00
|
|
|
|
{false && <div className={styles.buttons}>
|
2023-06-06 01:33:54 +00:00
|
|
|
|
<Link
|
|
|
|
|
|
className="button button--secondary button--lg"
|
|
|
|
|
|
to="/docs/intro">
|
|
|
|
|
|
Tutorial - 5min ⏱️
|
|
|
|
|
|
</Link>
|
2023-06-06 02:38:56 +00:00
|
|
|
|
</div>}
|
2023-06-06 11:21:30 +00:00
|
|
|
|
<div className="flex justify-center gap-1">
|
|
|
|
|
|
<ExternalLink href="https://github.com/TabbyML/tabby" imgUrl="https://img.shields.io/github/stars/TabbyML/tabby?style=social" />
|
|
|
|
|
|
<ExternalLink href="https://hub.docker.com/r/tabbyml/tabby" imgUrl="https://img.shields.io/docker/pulls/tabbyml/tabby?style=social" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<img className="m-5" src="img/demo.gif" />
|
2023-06-06 01:33:54 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-06-06 11:21:30 +00:00
|
|
|
|
function ExternalLink({href, imgUrl}) {
|
|
|
|
|
|
return <a target="_blanks" href={href}>
|
|
|
|
|
|
<img src={imgUrl} />
|
|
|
|
|
|
</a>
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-06-06 01:33:54 +00:00
|
|
|
|
export default function Home() {
|
|
|
|
|
|
const {siteConfig} = useDocusaurusContext();
|
|
|
|
|
|
return (
|
|
|
|
|
|
<Layout
|
|
|
|
|
|
title={`Home`}
|
|
|
|
|
|
description="Description will go into a meta tag in <head />">
|
|
|
|
|
|
<HomepageHeader />
|
|
|
|
|
|
<main>
|
|
|
|
|
|
<HomepageFeatures />
|
|
|
|
|
|
</main>
|
|
|
|
|
|
</Layout>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|