Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed May 22, 2020
0 parents commit ac03ca3
Show file tree
Hide file tree
Showing 21 changed files with 685 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitignore
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
30 changes: 30 additions & 0 deletions README.md
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.
24 changes: 24 additions & 0 deletions assets/global.scss
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;
}
}
Binary file added assets/images/logo_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/logo_white_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/variables.scss
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);
20 changes: 20 additions & 0 deletions components/date.time.tsx
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>
)
}
40 changes: 40 additions & 0 deletions components/sidemenu.tsx
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 />,
},
],
},
]
Loading

0 comments on commit ac03ca3

Please sign in to comment.