This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ac03ca3
Showing
21 changed files
with
685 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# development environments | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/zeit/next.js/) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/import?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import "variables"; | ||
|
||
:root { | ||
--backgroundColor: #{$background-color}; | ||
--primaryColor: #{$primary-color}; | ||
--textColorSecondary: #{$text-color-secondary}; | ||
|
||
--amplify-primary-color: #{$primary-color}; | ||
--amplify-primary-tint: #{lighten($primary-color, 0.1)}; | ||
--amplify-primary-shade: #{$primary-color}; | ||
} | ||
|
||
.sidebar-toggle { | ||
font-size: 18px; | ||
line-height: 64px; | ||
padding: 0 24px; | ||
cursor: pointer; | ||
transition: color 0.3s; | ||
color: #FFF; | ||
|
||
&:hover { | ||
color: #1890ff; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$background-color: #f7f7f7; | ||
$primary-color: #4182e4; | ||
$text-color-secondary: rgba(0, 0, 0, 0.45); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import dayjs from 'dayjs' | ||
import React from 'react' | ||
|
||
interface Props { | ||
date: string | ||
|
||
hideTime?: boolean | ||
} | ||
|
||
export const DateTime: React.FC<Props> = props => { | ||
const format = props.hideTime ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm' | ||
|
||
return ( | ||
<div style={{ | ||
display: 'inline-block' | ||
}}> | ||
{dayjs(props.date).format(format)} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {HomeOutlined, MessageOutlined, TeamOutlined} from '@ant-design/icons' | ||
import React from 'react' | ||
|
||
export interface SideMenuElement { | ||
items?: SideMenuElement[] | ||
|
||
key: string | ||
name: string | ||
group?: boolean | ||
href?: string | ||
icon?: any | ||
} | ||
|
||
export const sideMenu: SideMenuElement[] = [ | ||
{ | ||
key: 'home', | ||
name: 'Home', | ||
href: '/', | ||
icon: <HomeOutlined />, | ||
}, | ||
{ | ||
key: 'communication', | ||
name: 'Communication', | ||
group: true, | ||
items: [ | ||
{ | ||
key: 'users', | ||
name: 'Users', | ||
href: '/users', | ||
icon: <TeamOutlined />, | ||
}, | ||
{ | ||
key: 'chats', | ||
name: 'Chats', | ||
href: '/chats', | ||
icon: <MessageOutlined />, | ||
}, | ||
], | ||
}, | ||
] |
Oops, something went wrong.