Skip to content

Commit f7f0f79

Browse files
committed
clean up intro page
1 parent d00b09e commit f7f0f79

File tree

8 files changed

+39
-21
lines changed

8 files changed

+39
-21
lines changed

docs/customizing-editor.md

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
---
2+
sidebar_position: 3
3+
---
14
# Customizing the editor

docs/how-it-works.md

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
---
2+
sidebar_position: 7
3+
---
14
# How it works

docs/intro.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ sidebar_position: 1
33
slug: /
44
---
55

6-
import Card from '../src/components/Card';
7-
import Flex from '../src/components/Flex';
6+
import Card from '../src/components/Card'; import Flex from '../src/components/Flex';
87

98
# Get started
109

11-
Welcome to DrawDB! Start designing, visualizing, and generating SQL scripts for your database schema in just a few steps – no sign-up required.
10+
**drawDB** is a free and online open source database diagram editor where you can visiaulize your schema, share your diagram, export SQL scripts, reverse engineer DDL scripts, and much more...
1211

1312
<Flex>
14-
<Card title="Create a diagram" link='/create-diagram'>Create a diagram</Card>
15-
<Card title="Create a new diagram" link='/create-diagram'>Create a new diagram</Card>
13+
<Card title="Create a Diagram" link="/create-diagram">Define tables and relationships to start building your diagram.</Card>
14+
<Card title="Set Up the Editor" link="/customizing-editor">Adjust editor settings for a personalized design experience.</Card>
15+
</Flex>
16+
17+
<br/>
18+
19+
<Flex>
20+
<Card title="Share the Diagram" link="/share">Share your diagram with others for collaboration or feedback.</Card>
21+
<Card title="How It All Works" link="/how-it-works">Understand how drawDB works under the hood.</Card>
1622
</Flex>

docs/share.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 3
2+
sidebar_position: 6
33
---
44

55
# Sharing a diagram

docs/templates.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
sidebar_position: 5
3+
---
4+
# Templates

sidebars.js

-13
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
const sidebars = {
1616
// By default, Docusaurus generates a sidebar from the docs folder structure
1717
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
18-
19-
// But you can create a sidebar manually
20-
/*
21-
tutorialSidebar: [
22-
'intro',
23-
'hello',
24-
{
25-
type: 'category',
26-
label: 'Tutorial',
27-
items: ['tutorial-basics/create-a-document'],
28-
},
29-
],
30-
*/
3118
};
3219

3320
export default sidebars;

src/components/Card/index.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ import styles from './styles.module.css';
44
export default function Card({title, link, children}) {
55
return (
66
<a className={styles.card} href={link}>
7-
<div className={styles.card__title}>{title}</div>
7+
<div className={styles.card__title}>
8+
{title}
9+
<svg
10+
xmlns="http://www.w3.org/2000/svg"
11+
viewBox="0 0 320 512"
12+
width={18}
13+
height={18}
14+
fill="currentColor">
15+
<path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" />
16+
</svg>
17+
</div>
818
<div className={styles.card__body}>{children}</div>
919
</a>
1020
);

src/components/Card/styles.module.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@
99
}
1010

1111
.card:hover {
12-
color: var(--color-1);
12+
background-color: var(--color-2);
13+
transition: all ease-in-out 300ms;
1314
}
1415

1516
.card__title {
1617
font-weight: 500;
18+
display: flex;
19+
align-items: center;
20+
justify-content: space-between;
1721
}
1822

1923
.card__body {
2024
font-size: small;
25+
opacity: 0.8;
2126
}

0 commit comments

Comments
 (0)