2023-10-28 18:23:19 +00:00
|
|
|
import React from 'react';
|
|
|
|
import Link from '@docusaurus/Link';
|
|
|
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
|
|
import Layout from '@theme/Layout';
|
2023-11-04 11:50:34 +00:00
|
|
|
import LogoSvg from '@site/static/img/logo.svg';
|
2023-11-04 16:56:09 +00:00
|
|
|
import { Carousel } from 'react-responsive-carousel';
|
|
|
|
import 'react-responsive-carousel/lib/styles/carousel.min.css';
|
2023-10-28 18:23:19 +00:00
|
|
|
|
|
|
|
function HomepageHeader() {
|
2023-11-04 10:23:32 +00:00
|
|
|
const { siteConfig } = useDocusaurusContext();
|
2023-10-28 18:23:19 +00:00
|
|
|
return (
|
2023-11-04 11:50:34 +00:00
|
|
|
<header className="container">
|
|
|
|
<div className="text-center mt-10">
|
|
|
|
<LogoSvg className="w-40 h-40" />
|
|
|
|
<h1 className="text-5xl">
|
|
|
|
<span className="text-gradient font-bold">{siteConfig.title}</span>
|
|
|
|
</h1>
|
2023-11-09 06:35:55 +00:00
|
|
|
<p className="opacity-60 text-2xl">{siteConfig.tagline}</p>
|
2023-11-04 11:50:34 +00:00
|
|
|
<p className="opacity-60">
|
|
|
|
Tianji brings all your commonly used tools together in one place
|
|
|
|
</p>
|
|
|
|
<div className="text-xl">
|
2023-12-23 16:13:22 +00:00
|
|
|
<span className="text-gradient font-bold">Tianji</span> ={' '}
|
2023-11-04 11:50:34 +00:00
|
|
|
<span className="underline font-semibold">Website analytics</span> +{' '}
|
|
|
|
<span className="underline font-semibold">Uptime Monitor</span> +{' '}
|
2023-12-23 16:13:22 +00:00
|
|
|
<span className="underline font-semibold">Server Status</span>
|
2023-10-28 18:23:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-04 11:50:34 +00:00
|
|
|
|
|
|
|
<div className="text-center my-6">
|
2023-12-02 07:33:43 +00:00
|
|
|
{/* <Link
|
2023-11-04 11:50:34 +00:00
|
|
|
className="button button--primary button--lg"
|
|
|
|
to="mailto:moonrailgun@gmail.com?subject=I want to apply for Tianji early access account&body=Here is my account: <Here place your username>"
|
|
|
|
>
|
|
|
|
Early Access
|
2023-12-02 07:33:43 +00:00
|
|
|
</Link> */}
|
2023-12-24 07:58:30 +00:00
|
|
|
{/* <Link
|
2023-12-02 07:33:43 +00:00
|
|
|
className="button button--primary button--lg"
|
|
|
|
to="https://demo.tianji.msgbyte.com"
|
|
|
|
>
|
|
|
|
Visit Demo
|
2023-12-24 07:58:30 +00:00
|
|
|
</Link> */}
|
|
|
|
|
|
|
|
<div className="w-min m-auto text-left bg-neutral-100 dark:bg-neutral-800 p-2 rounded-lg">
|
|
|
|
<div className="whitespace-nowrap">
|
2023-12-25 06:24:12 +00:00
|
|
|
<span className="select-none opacity-50 mr-1">$</span>wget
|
2023-12-24 07:58:30 +00:00
|
|
|
https://raw.githubusercontent.com/msgbyte/tianji/master/docker-compose.yml
|
|
|
|
</div>
|
2023-12-25 06:24:12 +00:00
|
|
|
<div>
|
|
|
|
<span className="select-none opacity-50 mr-1">$</span>docker compose
|
|
|
|
up -d
|
|
|
|
</div>
|
2023-12-24 07:58:30 +00:00
|
|
|
</div>
|
2023-12-25 06:24:12 +00:00
|
|
|
<small className="opacity-50">
|
|
|
|
Default account is <b>admin</b>/<b>admin</b>, please change password
|
|
|
|
ASAP.
|
|
|
|
</small>
|
2023-11-04 11:50:34 +00:00
|
|
|
</div>
|
2023-10-28 18:23:19 +00:00
|
|
|
</header>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-11-04 11:50:34 +00:00
|
|
|
function HomepageMain() {
|
|
|
|
return (
|
|
|
|
<main className="container pb-8">
|
|
|
|
<div className="flex flex-wrap gap-2 justify-around mt-4 mb-8">
|
|
|
|
<div className="px-4 py-2 border rounded border-solid border-gray-300 checked-item">
|
|
|
|
✔ No cookies
|
|
|
|
</div>
|
|
|
|
<div className="px-4 py-2 border rounded border-solid border-gray-300 checked-item">
|
|
|
|
✔ GDPR & CCPA compliant
|
|
|
|
</div>
|
|
|
|
<div className="px-4 py-2 border rounded border-solid border-gray-300 checked-item">
|
|
|
|
✔ Open API
|
|
|
|
</div>
|
|
|
|
<div className="px-4 py-2 border rounded border-solid border-gray-300 checked-item">
|
|
|
|
✔ Open Source
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="text-center">
|
2023-11-04 16:56:09 +00:00
|
|
|
<div className="border-8 border-solid border-gray-200 rounded-lg shadow-lg">
|
|
|
|
<Carousel
|
2023-11-09 06:35:55 +00:00
|
|
|
className="cursor-move"
|
2023-11-04 16:56:09 +00:00
|
|
|
showThumbs={false}
|
|
|
|
showStatus={false}
|
|
|
|
showIndicators={true}
|
|
|
|
autoPlay={true}
|
|
|
|
swipeable={true}
|
|
|
|
interval={5000}
|
|
|
|
stopOnHover={true}
|
|
|
|
emulateTouch={true}
|
|
|
|
infiniteLoop={true}
|
|
|
|
>
|
|
|
|
<img src="/img/preview1.png" />
|
|
|
|
<img src="/img/preview2.png" />
|
|
|
|
<img src="/img/preview3.png" />
|
|
|
|
</Carousel>
|
|
|
|
</div>
|
2023-11-04 11:50:34 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-10-28 18:23:19 +00:00
|
|
|
export default function Home(): JSX.Element {
|
2023-11-04 10:23:32 +00:00
|
|
|
const { siteConfig } = useDocusaurusContext();
|
2023-10-28 18:23:19 +00:00
|
|
|
return (
|
|
|
|
<Layout
|
|
|
|
title={`Hello from ${siteConfig.title}`}
|
2023-12-16 07:34:00 +00:00
|
|
|
description="Insight into everything"
|
2023-11-04 10:23:32 +00:00
|
|
|
>
|
2023-10-28 18:23:19 +00:00
|
|
|
<HomepageHeader />
|
2023-11-04 11:50:34 +00:00
|
|
|
|
|
|
|
<HomepageMain />
|
2023-10-28 18:23:19 +00:00
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|