Skip to content

Commit 8207ad2

Browse files
authored
Small improvements in styles to make it look better (#3)
1 parent 0ef2474 commit 8207ad2

12 files changed

+181
-436
lines changed

docusaurus.config.ts

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type * as Preset from "@docusaurus/preset-classic";
44

55
const config: Config = {
66
title: "Fishjam Cloud Docs",
7-
tagline: "Fisjam Cloud",
7+
tagline: "Fishjam Cloud",
88
favicon: "img/favicon.ico",
99

1010
// Set the production url of your site here
@@ -62,7 +62,11 @@ const config: Config = {
6262

6363
themeConfig: {
6464
// Replace with your project's social card
65-
image: "img/docusaurus-social-card.jpg",
65+
image: "img/social-card.png",
66+
colorMode: {
67+
defaultMode: "light",
68+
disableSwitch: true,
69+
},
6670
navbar: {
6771
title: "Fishjam Cloud ",
6872
logo: {
@@ -85,7 +89,6 @@ const config: Config = {
8589
],
8690
},
8791
footer: {
88-
style: "dark",
8992
links: [
9093
{
9194
title: "Docs",
@@ -96,23 +99,7 @@ const config: Config = {
9699
},
97100
],
98101
},
99-
// {
100-
// title: "Community",
101-
// items: [
102-
// {
103-
// label: "Stack Overflow",
104-
// href: "https://stackoverflow.com/questions/tagged/docusaurus",
105-
// },
106-
// {
107-
// label: "Discord",
108-
// href: "https://discordapp.com/invite/docusaurus",
109-
// },
110-
// {
111-
// label: "Twitter",
112-
// href: "https://twitter.com/docusaurus",
113-
// },
114-
// ],
115-
// },
102+
116103
{
117104
title: "More",
118105
items: [

src/components/HomepageFeatures/index.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,48 @@
1-
import clsx from 'clsx';
2-
import Heading from '@theme/Heading';
3-
import styles from './styles.module.css';
1+
import clsx from "clsx";
2+
import Heading from "@theme/Heading";
3+
import styles from "./styles.module.css";
44

55
type FeatureItem = {
66
title: string;
7-
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
7+
Svg: React.ComponentType<React.ComponentProps<"svg">>;
88
description: JSX.Element;
99
};
1010

1111
const FeatureList: FeatureItem[] = [
1212
{
13-
title: 'Easy to Use',
14-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
13+
title: "Easy to Use",
14+
Svg: require("@site/static/img/fish-easy.svg").default,
1515
description: (
1616
<>
17-
Docusaurus was designed from the ground up to be easily installed and
18-
used to get your website up and running quickly.
17+
Fishjam Cloud was designed from the ground up to be easily installed and used to get Video Streaming in your app
18+
up and running quickly.
1919
</>
2020
),
2121
},
2222
{
23-
title: 'Focus on What Matters',
24-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
23+
title: "Focus on What Matters",
24+
Svg: require("@site/static/img/fish-focus.svg").default,
2525
description: (
2626
<>
27-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
28-
ahead and move your docs into the <code>docs</code> directory.
27+
Fishjam Cloud lets you focus on your users, and we&apos;ll do all difficult work. Go ahead and check that
28+
streaming can be easy.
2929
</>
3030
),
3131
},
3232
{
33-
title: 'Powered by React',
34-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
33+
title: "Powered by React Native",
34+
Svg: require("@site/static/img/fish-technology.svg").default,
3535
description: (
3636
<>
37-
Extend or customize your website layout by reusing React. Docusaurus can
38-
be extended while reusing the same header and footer.
37+
Move fast with integrationg streaming into your app by simple installation process in Expo and React Native Apps
3938
</>
4039
),
4140
},
4241
];
4342

44-
function Feature({title, Svg, description}: FeatureItem) {
43+
function Feature({ title, Svg, description }: FeatureItem) {
4544
return (
46-
<div className={clsx('col col--4')}>
45+
<div className={clsx("col col--4")}>
4746
<div className="text--center">
4847
<Svg className={styles.featureSvg} role="img" />
4948
</div>

src/css/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,15 @@
2828
--ifm-color-primary-lightest: #4fddbf;
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}
31+
32+
33+
html[data-theme='light'] footer.footer {
34+
background-color: #FCF4E4;
35+
}
36+
html[data-theme='light'] nav.navbar--fixed-top {
37+
background-color: #FCF4E4;
38+
}
39+
html[data-theme='light'] header.heroBanner_src-pages-index-module{
40+
background-color: #9BDCFB;
41+
color: #000;
42+
}

src/pages/index.tsx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
import clsx from 'clsx';
2-
import Link from '@docusaurus/Link';
3-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
4-
import Layout from '@theme/Layout';
5-
import HomepageFeatures from '@site/src/components/HomepageFeatures';
6-
import Heading from '@theme/Heading';
1+
import clsx from "clsx";
2+
import Link from "@docusaurus/Link";
3+
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
4+
import Layout from "@theme/Layout";
5+
import HomepageFeatures from "@site/src/components/HomepageFeatures";
6+
import Heading from "@theme/Heading";
77

8-
import styles from './index.module.css';
8+
import styles from "./index.module.css";
99

1010
function HomepageHeader() {
11-
const {siteConfig} = useDocusaurusContext();
11+
const { siteConfig } = useDocusaurusContext();
1212
return (
13-
<header className={clsx('hero hero--primary', styles.heroBanner)}>
13+
<header className={clsx("hero hero--primary", styles.heroBanner)}>
1414
<div className="container">
1515
<Heading as="h1" className="hero__title">
1616
{siteConfig.title}
1717
</Heading>
1818
<p className="hero__subtitle">{siteConfig.tagline}</p>
1919
<div className={styles.buttons}>
20-
<Link
21-
className="button button--secondary button--lg"
22-
to="/docs/intro">
23-
Docusaurus Tutorial - 5min ⏱️
20+
<Link className="button button--secondary button--lg" to="/docs/tutorial-react-native/installation">
21+
Setup Mobile App - 5min ⏱️
2422
</Link>
2523
</div>
2624
</div>
@@ -29,11 +27,9 @@ function HomepageHeader() {
2927
}
3028

3129
export default function Home(): JSX.Element {
32-
const {siteConfig} = useDocusaurusContext();
30+
const { siteConfig } = useDocusaurusContext();
3331
return (
34-
<Layout
35-
title={`Hello from ${siteConfig.title}`}
36-
description="Description will go into a meta tag in <head />">
32+
<Layout title={`Introduction`} description="Description will go into a meta tag in <head />">
3733
<HomepageHeader />
3834
<main>
3935
<HomepageFeatures />

static/img/docusaurus-social-card.jpg

-54.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)