Skip to content

Commit

Permalink
(docs) add SQLiteCloud to Thanks section
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 26, 2024
1 parent 58921bc commit 7a9a3dc
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/src/components/BrowserStack/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import SVGTheme from '@site/src/components/SVGTheme';
import Light from '@site/static/img/browserstack-light.svg';
import Dark from '@site/static/img/browserstack-dark.svg';
import styles from './styles.module.css';

type BrowserStackProps = {
width: number;
height: number;
};

export default function BrowserStack({ width, height }: BrowserStackProps) {
return (
<>
<Light className={styles.light} width={width} height={height} role="img"/>
<Dark className={styles.dark} width={width} height={height} role="img"/>
</>
);
return <SVGTheme width={width} height={height} Dark={Dark} Light={Light} />;
}
12 changes: 12 additions & 0 deletions docs/src/components/SQLiteCloud/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import SVGTheme from '@site/src/components/SVGTheme';
import Light from '@site/static/img/sqlitecloud-light.svg';
import Dark from '@site/static/img/sqlitecloud-dark.svg';

type SQLiteCloudProps = {
width: number;
height: number;
};

export default function SQLiteCloud({ width, height }: SQLiteCloudProps) {
return <SVGTheme width={width} height={height} Dark={Dark} Light={Light} />;
}
22 changes: 22 additions & 0 deletions docs/src/components/SVGTheme/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { ComponentType, SVGProps } from 'react';


import styles from './styles.module.css';

type SVGComponent = ComponentType<SVGProps<SVGSVGElement>> & { title?: string; };

type SVGThemeProps = {
width: number;
height: number;
Light: SVGComponent;
Dark: SVGComponent;
};

export default function SVGTheme({ width, height, Dark, Light }: SVGThemeProps) {
return (
<>
<Light className={styles.light} width={width} height={height} role="img"/>
<Dark className={styles.dark} width={width} height={height} role="img"/>
</>
);
}
2 changes: 2 additions & 0 deletions docs/src/components/Terminal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import figlet from './figlet';
import { jargon, jargon_init } from './jargon';
import cal from './cal';
import chuck_norris from './chuck-norris';
import chat from './chat';

const languages = [
'markdown',
Expand Down Expand Up @@ -68,6 +69,7 @@ const commands = {
figlet,
jargon,
cal,
chat,
'chuck-norris': chuck_norris,
help,
theme,
Expand Down
7 changes: 7 additions & 0 deletions docs/src/components/Thanks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Header from '@site/src/components/Header';
import styles from './styles.module.css';
import Coveralls from '@site/static/img/coveralls.svg';
import BrowserStack from '@site/src/components/BrowserStack';
import SQLiteCloud from '@site/src/components/SQLiteCloud';


export default function Thanks() {
return (
Expand All @@ -28,6 +30,11 @@ export default function Thanks() {
<BrowserStack width={200} height={43} />
</a>
</li>
<li>
<a href="https://sqlitecloud.io/">
<SQLiteCloud width={127} height={43} />
</a>
</li>
</ul>
</div>
);
Expand Down
19 changes: 19 additions & 0 deletions docs/static/img/sqlitecloud-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7a9a3dc

Please sign in to comment.