Skip to content

Commit dbfcb7e

Browse files
committed
feat(page): added about project page, added CONTRIBUTING.md docs
1 parent 810225d commit dbfcb7e

File tree

6 files changed

+104
-27
lines changed

6 files changed

+104
-27
lines changed

.changeset/tiny-apes-sort.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'antd-multi-dashboard': minor
3+
---
4+
5+
optimized imports, added project about page and made UI simple and minimal

CONTRIBUTING.md

+51-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
1-
This repo uses [changesets](https://github.com/changesets/changesets) to
2-
make releasing updates easier. For you, the contributor, this means you
3-
should run `npm run changeset` when you've got your changes ready. For
4-
more details, see this short document on [adding a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#i-am-in-a-single-package-repository).
1+
# Contributing
2+
3+
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
4+
5+
If you have found an issue or would like to request a new feature, simply create a new issue detailing the request. We also welcome pull requests. See below for information on getting started with development and submitting pull requests.
6+
7+
Please note we have a [code of conduct](https://github.com/design-sparx/antd-multipurpose-dashboard/blob/main/CODE_OF_CONDUCT.md), please follow it in all your interactions with the project.
8+
9+
> This repo uses [changesets](https://github.com/changesets/changesets) to
10+
> make releasing updates easier. For you, the contributor, this means you
11+
> should run `npm run changeset` when you've got your changes ready. For
12+
> more details, see this short document on [adding a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md#i-am-in-a-single-package-repository).
13+
14+
## Found an Issue?
15+
16+
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our [GitHub Repository](https://github.com/design-sparx/antd-multipurpose-dashboard/issues/new/choose). Even better you can submit a Pull Request with a fix.
17+
18+
## Submitting a Pull Request
19+
20+
1. Make sure that the contribution you want to make is explained or detailed in a GitHub issue! Find an [existing issue](https://github.com/design-sparx/antd-multipurpose-dashboard/issues) or [open a new one](https://github.com/design-sparx/antd-multipurpose-dashboard/issues/new/choose).
21+
2. Once done, [fork the repository](https://github.com/design-sparx/antd-multipurpose-dashboard/fork) in your own GitHub account.
22+
3. [Create a new Git branch](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-and-deleting-branches-within-your-repository).
23+
4. Make the changes on your branch.
24+
5. [Submit the branch as a PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) pointing to the main branch of the main repository.
25+
> We do not enforce a naming convention for the PRs, but please use something descriptive of your changes.
26+
27+
## Development Workflow
28+
29+
Install dependencies
30+
31+
```
32+
pnpm install
33+
```
34+
35+
Run dev server
36+
37+
```
38+
pnpm run dev
39+
```
40+
41+
## Linter
42+
43+
Each PR should pass the linter to be accepted. To fix lint and prettier errors, run `pnpm run lint:fix` and `pnpm run prettier:fix`.
44+
45+
## Commit Message
46+
47+
We use [commitlint](https://commitlint.js.org/guides/getting-started) to manage and standardize our commits:
48+
49+
- check [commitlint conventional guides](https://github.com/conventional-changelog/commitlint?tab=readme-ov-file#what-is-commitlint),
50+
- not finish by a dot or any other punctuation character (!,?),
51+
- start with a verb so that we can read your commit message this way: "This commit will ...", where "..." is the commit message. e.g.: "Fix the home page button" or "Add support for dark mode"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- [Live preview](https://antd-multipurpose-dashboard.netlify.app/)
3535
- [Components preview](https://6546507b657a74164abf2db6-iqmnggdrcl.chromatic.com/)
3636
- [Medium](https://medium.com/@kelvink96/designing-modern-dashboards-a-journey-through-react-vite-ant-design-and-storybook-2dac23e1e49a)
37-
- [Product roadmap](https://kelvink96.notion.site/Antd-multipurpose-dashboard-Product-roadmap-92163e05b8ea444a8f87b7f834933069) _ **New** _
37+
- [Product roadmap](https://kelvink96.notion.site/Antd-multipurpose-dashboard-Product-roadmap-92163e05b8ea444a8f87b7f834933069) **New**
3838

3939
## Introduction
4040

@@ -164,7 +164,7 @@ the source files are included in the package.
164164
┃ ┣ 📂 assets/ # Assets folder **
165165
┃ ┣ 📂 components/ # App Components **
166166
┃ ┣ 📂 constants/ # App Components **
167-
┃ ┃ ┗ 📃 routes.ts # All routes declarations **
167+
┃ ┃ ┗ 📃 routes.tsx # All routes declarations **
168168
┃ ┣ 📂 context/ # React state conexts **
169169
┃ ┣ 📂 hooks/ # React Hooks **
170170
┃ ┃ ┗ 📃 useFetch.ts # Data fetch hook (optional) **

src/layouts/app/SideNav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const items: MenuProps['items'] = [
8181
),
8282
]),
8383
getItem(
84-
<Link to={PATH_ABOUT.root}>Sitemap</Link>,
84+
<Link to={PATH_ABOUT.root}>About</Link>,
8585
'about',
8686
<InfoCircleOutlined />
8787
),

src/pages/About.tsx

+30-16
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,35 @@ import {
1010
} from '@ant-design/icons';
1111
import { Card, PageHeader } from '../components';
1212
import { createElement } from 'react';
13-
import { DASHBOARD_ITEMS } from '../constants';
13+
import { DASHBOARD_ITEMS, PATH_GITHUB } from '../constants';
1414
import { Link } from 'react-router-dom';
1515

1616
const { Title, Text } = Typography;
1717

1818
const SITES = [
1919
{
20-
title: 'github',
21-
description: 'source code of the website.',
20+
title: 'GitHub',
21+
description: 'Source code of the website.',
2222
icon: GithubOutlined,
23+
link: PATH_GITHUB.repo,
2324
},
2425
{
2526
title: 'Report Bug',
26-
description: 'something not working? Report a bug',
27+
description: 'Something not working? Report a bug',
2728
icon: BugOutlined,
29+
link: PATH_GITHUB.repo + '/issues/new/choose',
2830
},
2931
{
3032
title: 'Request Feature',
3133
description: 'Need something? Request a new feature.',
3234
icon: BulbOutlined,
35+
link: PATH_GITHUB.repo + '/issues/new/choose',
3336
},
3437
{
3538
title: 'Contribute',
3639
description: 'Contribute to this project.',
3740
icon: CodeOutlined,
41+
link: PATH_GITHUB.repo + '/blob/main/CONTRIBUTING.md',
3842
},
3943
];
4044

@@ -45,7 +49,7 @@ export const AboutPage = () => {
4549
<div>
4650
<Flex vertical gap="middle">
4751
<PageHeader
48-
title="default dashboard"
52+
title="About"
4953
breadcrumbs={[
5054
{
5155
title: (
@@ -76,20 +80,30 @@ export const AboutPage = () => {
7680
]}
7781
/>
7882
<Card>
79-
<Title>Antd Admin</Title>
80-
<Text>
81-
A dynamic and versatile multipurpose dashboard template built using
82-
React, Vite, Ant Design, and Storybook
83-
</Text>
83+
<Flex vertical gap="small">
84+
<Title level={3} className="m-0">
85+
Antd Admin
86+
</Title>
87+
<Text>
88+
A dynamic and versatile multipurpose dashboard template built
89+
using React, Vite, Ant Design, and Storybook
90+
</Text>
91+
</Flex>
8492
</Card>
8593
<Row {...context?.rowProps}>
8694
{SITES.map((s) => (
87-
<Col xs={24} sm={12} md={8} xl={6} key={`col-${s.title}`}>
88-
<Card>
89-
{createElement(s.icon)}
90-
<Title>{s.title}</Title>
91-
<Text>{s.description}</Text>
92-
</Card>
95+
<Col xs={24} sm={12} key={`col-${s.title}`}>
96+
<a href={s.link} target="_blank">
97+
<Card hoverable>
98+
<Flex vertical gap="small">
99+
{createElement(s.icon, { style: { fontSize: 24 } })}
100+
<Title level={5} className="m-0">
101+
{s.title}
102+
</Title>
103+
<Text>{s.description}</Text>
104+
</Flex>
105+
</Card>
106+
</a>
93107
</Col>
94108
))}
95109
</Row>

src/routes/routes.tsx

+15-4
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,17 @@ import {
3434
UserProfileSecurityPage,
3535
VerifyEmailPage,
3636
WelcomePage,
37+
LearningDashboardPage,
38+
LogisticsDashboardPage,
3739
} from '../pages';
3840
import {
3941
CorporateLayout,
4042
DashboardLayout,
4143
GuestLayout,
4244
UserAccountLayout,
4345
} from '../layouts';
44-
import {
45-
LearningDashboardPage,
46-
LogisticsDashboardPage,
47-
} from '../pages/dashboards';
4846
import React, { ReactNode, useEffect } from 'react';
47+
import { AboutPage } from '../pages/About.tsx';
4948

5049
// Custom scroll restoration function
5150
export const ScrollToTop: React.FC = () => {
@@ -270,6 +269,18 @@ const router = createBrowserRouter([
270269
},
271270
],
272271
},
272+
{
273+
path: '/about',
274+
element: <PageWrapper children={<DashboardLayout />} />,
275+
errorElement: <ErrorPage />,
276+
children: [
277+
{
278+
index: true,
279+
path: '',
280+
element: <AboutPage />,
281+
},
282+
],
283+
},
273284
]);
274285

275286
export default router;

0 commit comments

Comments
 (0)