Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 9, 2023
1 parent ed0b63b commit 103dfe2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "~5.2.2"
},
"lint-staged": {
"*.{js,ts,css,md,json}": "prettier --write"
"*.{js,jsx,tsx,ts,css,md,json}": "prettier --write"
},
"browserslist": {
"production": [
Expand Down
8 changes: 5 additions & 3 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ const FeatureList: FeatureItem[] = [
},
];

function Feature({title, description}: FeatureItem) {
function Feature({ title, description }: FeatureItem) {
return (
<div className='col col--4 padding-bottom--lg padding-left--xl'>
<div className="col col--4 padding-bottom--lg padding-left--xl">
<div>
<Heading as="h3" className="margin-bottom--sm">{title}</Heading>
<Heading as="h3" className="margin-bottom--sm">
{title}
</Heading>
<p>{description}</p>
</div>
</div>
Expand Down
19 changes: 12 additions & 7 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ import Link from '@docusaurus/Link';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero', styles.heroBanner)} style={{color:"black"}}>
<header
className={clsx('hero', styles.heroBanner)}
style={{ color: 'black' }}
>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link className="button button--primary" to="/docs">
<Link className="button button--primary" to="/docs/usage/info">
Get Started
</Link>
<Link className="button button--secondary" to="https://github.com/web-infra-dev/oxc">
<Link
className="button button--secondary"
to="https://github.com/web-infra-dev/oxc"
>
View on Github
</Link>
</div>
Expand All @@ -30,10 +36,9 @@ function HomepageHeader() {
}

export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}>
<Layout title={`${siteConfig.title}`}>
<HomepageHeader />
<main>
<HomepageFeatures />
Expand Down

0 comments on commit 103dfe2

Please sign in to comment.