Skip to content

Commit 56683d5

Browse files
committed
Adjust Docusarus theme and index page
1 parent e24f630 commit 56683d5

File tree

25 files changed

+65
-493
lines changed

25 files changed

+65
-493
lines changed
File renamed without changes.

documentation/docs/tutorial-basics/markdown-features.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ Let's see how to [Create a page](./create-a-page.md).
4343

4444
Regular Markdown images are supported.
4545

46-
You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`):
46+
You can use absolute paths to reference images in the static directory (`static/img/logo.png`):
4747

4848
```md
49-
![Docusaurus logo](/img/docusaurus.png)
49+
![Docusaurus logo](/img/logo.png)
5050
```
5151

52-
![Docusaurus logo](/img/docusaurus.png)
52+
![Docusaurus logo](/img/logo.png)
5353

5454
You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
5555

5656
```md
57-
![Docusaurus logo](./img/docusaurus.png)
57+
![Docusaurus logo](./img/logo.png)
5858
```
5959

6060
## Code Blocks

documentation/docs/tutorial-extras/translate-your-site.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Copy the `docs/intro.md` file to the `i18n/fr` folder:
2626
```bash
2727
mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
2828

29-
cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
29+
cp docs/get-started.md i18n/fr/docusaurus-plugin-content-docs/current/get-started.md
3030
```
3131

3232
Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.

documentation/docusaurus.config.ts

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type * as Preset from '@docusaurus/preset-classic';
55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66

77
const config: Config = {
8-
title: 'My Site',
9-
tagline: 'Dinosaurs are cool',
8+
title: 'NotallyX',
9+
tagline: 'A simple and minimalistic open source notes app',
1010
favicon: 'img/favicon.ico',
1111

1212
// Set the production url of your site here
@@ -67,72 +67,31 @@ const config: Config = {
6767

6868
themeConfig: {
6969
// Replace with your project's social card
70-
image: 'img/docusaurus-social-card.jpg',
70+
image: 'img/featureGraphic.png',
7171
navbar: {
72-
title: 'My Site',
72+
title: 'NotallyX',
7373
logo: {
74-
alt: 'My Site Logo',
75-
src: 'img/logo.svg',
74+
alt: 'NotallyX Logo',
75+
src: 'img/logo.png',
7676
},
7777
items: [
7878
{
7979
type: 'docSidebar',
8080
sidebarId: 'tutorialSidebar',
8181
position: 'left',
82-
label: 'Tutorial',
82+
label: 'Documentation',
8383
},
84-
{to: '/blog', label: 'Blog', position: 'left'},
8584
{
86-
href: 'https://github.com/facebook/docusaurus',
85+
href: 'https://github.com/PhilKes/NotallyX',
8786
label: 'GitHub',
8887
position: 'right',
8988
},
9089
],
9190
},
9291
footer: {
9392
style: 'dark',
94-
links: [
95-
{
96-
title: 'Docs',
97-
items: [
98-
{
99-
label: 'Tutorial',
100-
to: '/docs/intro',
101-
},
102-
],
103-
},
104-
{
105-
title: 'Community',
106-
items: [
107-
{
108-
label: 'Stack Overflow',
109-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
110-
},
111-
{
112-
label: 'Discord',
113-
href: 'https://discordapp.com/invite/docusaurus',
114-
},
115-
{
116-
label: 'X',
117-
href: 'https://x.com/docusaurus',
118-
},
119-
],
120-
},
121-
{
122-
title: 'More',
123-
items: [
124-
{
125-
label: 'Blog',
126-
to: '/blog',
127-
},
128-
{
129-
label: 'GitHub',
130-
href: 'https://github.com/facebook/docusaurus',
131-
},
132-
],
133-
},
134-
],
135-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
93+
links: [],
94+
copyright: `Copyright © ${new Date().getFullYear()} NotallyX, Inc. Built with Docusaurus.`,
13695
},
13796
prism: {
13897
theme: prismThemes.github,

documentation/src/components/HomepageFeatures/index.tsx

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,49 @@ import styles from './styles.module.css';
55

66
type FeatureItem = {
77
title: string;
8-
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
9-
description: ReactNode;
8+
image: React.ComponentType<React.ComponentProps<'svg'>>;
109
};
1110

1211
const FeatureList: FeatureItem[] = [
1312
{
1413
title: 'Easy to Use',
15-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
16-
description: (
17-
<>
18-
Docusaurus was designed from the ground up to be easily installed and
19-
used to get your website up and running quickly.
20-
</>
21-
),
14+
image: require('@site/static/img/phoneScreenshots/1.png').default,
2215
},
2316
{
2417
title: 'Focus on What Matters',
25-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
26-
description: (
27-
<>
28-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
29-
ahead and move your docs into the <code>docs</code> directory.
30-
</>
31-
),
18+
image: require('@site/static/img/phoneScreenshots/2.png').default,
3219
},
3320
{
3421
title: 'Powered by React',
35-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
36-
description: (
37-
<>
38-
Extend or customize your website layout by reusing React. Docusaurus can
39-
be extended while reusing the same header and footer.
40-
</>
41-
),
22+
image: require('@site/static/img/phoneScreenshots/3.png').default,
23+
},
24+
{
25+
title: 'Powered by React',
26+
image: require('@site/static/img/phoneScreenshots/4.png').default,
27+
},
28+
{
29+
title: 'Powered by React',
30+
image: require('@site/static/img/phoneScreenshots/5.png').default,
31+
},
32+
{
33+
title: 'Powered by React',
34+
image: require('@site/static/img/phoneScreenshots/6.png').default,
35+
},
36+
{
37+
title: 'Powered by React',
38+
image: require('@site/static/img/phoneScreenshots/7.png').default,
39+
},
40+
{
41+
title: 'Powered by React',
42+
image: require('@site/static/img/phoneScreenshots/8.png').default,
4243
},
4344
];
4445

45-
function Feature({title, Svg, description}: FeatureItem) {
46+
function Feature({title, image, description}: FeatureItem) {
4647
return (
47-
<div className={clsx('col col--4')}>
48+
<div className={clsx('col col--3')}>
4849
<div className="text--center">
49-
<Svg className={styles.featureSvg} role="img" />
50-
</div>
51-
<div className="text--center padding-horiz--md">
52-
<Heading as="h3">{title}</Heading>
53-
<p>{description}</p>
50+
<img src={image} alt={title} /> {/* Use <img> to display PNG */}
5451
</div>
5552
</div>
5653
);

documentation/src/components/HomepageFeatures/styles.module.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
align-items: center;
44
padding: 2rem 0;
55
width: 100%;
6-
}
7-
8-
.featureSvg {
9-
height: 200px;
10-
width: 200px;
11-
}
6+
}

documentation/src/css/custom.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
9+
--ifm-color-primary: #7285D0; /* Base primary color */
10+
--ifm-color-primary-dark: #5e6ea8; /* Slightly darker */
11+
--ifm-color-primary-darker: #4a5991; /* Even darker */
12+
--ifm-color-primary-darkest: #3a4877; /* Darkest shade */
13+
--ifm-color-primary-light: #7a92d8; /* Lighter shade */
14+
--ifm-color-primary-lighter: #8c9fe3; /* Lighter shade */
15+
--ifm-color-primary-lightest: #a1b6ed; /* Lightest shade */
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
}
1919

2020
/* For readability concerns, you should choose a lighter palette in dark mode. */
2121
[data-theme='dark'] {
22-
--ifm-color-primary: #25c2a0;
23-
--ifm-color-primary-dark: #21af90;
24-
--ifm-color-primary-darker: #1fa588;
25-
--ifm-color-primary-darkest: #1a8870;
26-
--ifm-color-primary-light: #29d5b0;
27-
--ifm-color-primary-lighter: #32d8b4;
28-
--ifm-color-primary-lightest: #4fddbf;
22+
--ifm-color-primary: #7285D0; /* Base primary color */
23+
--ifm-color-primary-dark: #5a6aaf; /* Darker shade, a bit muted */
24+
--ifm-color-primary-darker: #4c5896; /* Even darker, more muted */
25+
--ifm-color-primary-darkest: #3e487d; /* Darkest shade, still a bit vibrant */
26+
--ifm-color-primary-light: #8a9fe5; /* Lighter, but still legible in dark mode */
27+
--ifm-color-primary-lighter: #a1b4e6; /* Lighter shade for text highlights */
28+
--ifm-color-primary-lightest: #c0c9f1; /* Very light for subtle highlights */
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}

documentation/src/pages/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,22 @@ import styles from './index.module.css';
1010

1111
function HomepageHeader() {
1212
const {siteConfig} = useDocusaurusContext();
13+
const image = require('@site/static/img/logo.png').default
1314
return (
14-
<header className={clsx('hero hero--primary', styles.heroBanner)}>
15+
<header className={clsx('hero', styles.heroBanner)}>
1516
<div className="container">
17+
<div className="text--center">
18+
<img src={image} alt="NotallyX Logo" />
19+
</div>
1620
<Heading as="h1" className="hero__title">
1721
{siteConfig.title}
1822
</Heading>
1923
<p className="hero__subtitle">{siteConfig.tagline}</p>
2024
<div className={styles.buttons}>
2125
<Link
2226
className="button button--secondary button--lg"
23-
to="/docs/intro">
24-
Docusaurus Tutorial - 5min ⏱️
27+
to="/docs/get-started">
28+
Get Started 📝
2529
</Link>
2630
</div>
2731
</div>
@@ -33,8 +37,7 @@ export default function Home(): ReactNode {
3337
const {siteConfig} = useDocusaurusContext();
3438
return (
3539
<Layout
36-
title={`Hello from ${siteConfig.title}`}
37-
description="Description will go into a meta tag in <head />">
40+
description="NotallyX - A simple and minimalistic open source notes app">
3841
<HomepageHeader />
3942
<main>
4043
<HomepageFeatures />
-54.4 KB
Binary file not shown.
-5.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)