diff --git a/src/client/index.css b/src/client/index.css index 04d0a7f..99d94d7 100644 --- a/src/client/index.css +++ b/src/client/index.css @@ -23,7 +23,7 @@ a { height: 100%; } -/* 滚动条 */ +/* Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; diff --git a/website/src/css/base.css b/website/src/css/base.css index b5c61c9..b3bd89d 100644 --- a/website/src/css/base.css +++ b/website/src/css/base.css @@ -1,3 +1,38 @@ @tailwind base; + +@layer base { + /* Scrollbar */ + ::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + ::-webkit-scrollbar-corner { + background-color: transparent; + } + + ::-webkit-scrollbar-thumb { + @apply bg-black bg-opacity-10; + border-color: transparent; + background-clip: padding-box; + border-width: 2px; + border-style: solid; + border-radius: 4px; + } + + ::-webkit-scrollbar-thumb:hover { + @apply bg-black bg-opacity-20; + } + + ::-webkit-scrollbar-track { + @apply bg-black bg-opacity-5; + border-color: transparent; + background-clip: padding-box; + border-width: 2px; + border-style: solid; + border-radius: 4px; + } +} + @tailwind components; @tailwind utilities; diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 2bc6a4c..40b2352 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -6,25 +6,25 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #2e8555; - --ifm-color-primary-dark: #29784c; - --ifm-color-primary-darker: #277148; - --ifm-color-primary-darkest: #205d3b; - --ifm-color-primary-light: #33925d; - --ifm-color-primary-lighter: #359962; - --ifm-color-primary-lightest: #3cad6e; + --ifm-color-primary: #147af3; + --ifm-color-primary-dark: #0b6de1; + --ifm-color-primary-darker: #0b67d5; + --ifm-color-primary-darkest: #0955af; + --ifm-color-primary-light: #2d88f4; + --ifm-color-primary-lighter: #3a8ff5; + --ifm-color-primary-lightest: #5fa4f7; --ifm-code-font-size: 95%; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); } /* For readability concerns, you should choose a lighter palette in dark mode. */ [data-theme='dark'] { - --ifm-color-primary: #25c2a0; - --ifm-color-primary-dark: #21af90; - --ifm-color-primary-darker: #1fa588; - --ifm-color-primary-darkest: #1a8870; - --ifm-color-primary-light: #29d5b0; - --ifm-color-primary-lighter: #32d8b4; - --ifm-color-primary-lightest: #4fddbf; + --ifm-color-primary: #4791eb; + --ifm-color-primary-dark: #2b80e8; + --ifm-color-primary-darker: #1e78e6; + --ifm-color-primary-darkest: #1563c1; + --ifm-color-primary-light: #63a1ee; + --ifm-color-primary-lighter: #70aaef; + --ifm-color-primary-lightest: #9ac2f4; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); } diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css deleted file mode 100644 index 9f71a5d..0000000 --- a/website/src/pages/index.module.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. - */ - -.heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; -} - -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } -} - -.buttons { - display: flex; - align-items: center; - justify-content: center; -} diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 3b6708d..68dbbbb 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -1,32 +1,72 @@ 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'; +import LogoSvg from '@site/static/img/logo.svg'; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
-
-

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - +
+
+ +

+ {siteConfig.title} +

+

+ {siteConfig.tagline} +

+

+ Tianji brings all your commonly used tools together in one place +

+
+ Website analytics +{' '} + Uptime Monitor +{' '} + Server Status ={' '} + Tianji
+ +
+ + Early Access + +
); } +function HomepageMain() { + return ( +
+
+
+ ✔ No cookies +
+
+ ✔ GDPR & CCPA compliant +
+
+ ✔ Open API +
+
+ ✔ Open Source +
+
+ +
+ +
+
+ ); +} + export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( @@ -35,9 +75,8 @@ export default function Home(): JSX.Element { description="Description will go into a meta tag in " > -
- -
+ + ); } diff --git a/website/static/img/favicon.ico b/website/static/img/favicon.ico index c01d54b..eeb35d7 100644 Binary files a/website/static/img/favicon.ico and b/website/static/img/favicon.ico differ diff --git a/website/static/img/preview.png b/website/static/img/preview.png new file mode 100644 index 0000000..e412e9b Binary files /dev/null and b/website/static/img/preview.png differ diff --git a/website/static/img/social-card.png b/website/static/img/social-card.png index 7b43b6f..4acd7d5 100644 Binary files a/website/static/img/social-card.png and b/website/static/img/social-card.png differ diff --git a/website/tailwind.config.js b/website/tailwind.config.js deleted file mode 100644 index 38f82d2..0000000 --- a/website/tailwind.config.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { - content: ['./src/**/*.{html,tsx}'], - theme: { - extend: {}, - }, - plugins: [], -} diff --git a/website/tailwind.config.ts b/website/tailwind.config.ts new file mode 100644 index 0000000..985236c --- /dev/null +++ b/website/tailwind.config.ts @@ -0,0 +1,24 @@ +import type { Config } from 'tailwindcss'; +import { PluginCreator } from 'tailwindcss/types/config'; + +const plugin: PluginCreator = (api) => { + api.addUtilities({ + '.text-gradient': { + background: + 'linear-gradient(270deg, #00E725 -33.33%, #0799B9 17.93%, #940DFF 105.3%)', + backgroundClip: 'text', + color: 'transparent', + }, + }); +}; + +export default { + corePlugins: { + preflight: false, + }, + content: ['./src/**/*.{html,tsx}'], + theme: { + extend: {}, + }, + plugins: [plugin], +} satisfies Config;