Skip to content

Commit

Permalink
Less eye soring background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
hisorange committed Nov 30, 2021
1 parent 1c67d05 commit 5aae7fc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 20 deletions.
8 changes: 8 additions & 0 deletions src/modules/admin/assets/img/squares.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions src/modules/admin/assets/img/waves.svg

This file was deleted.

11 changes: 5 additions & 6 deletions src/modules/admin/assets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ body {
}

body {
overflow: hidden; /* Always show the scroll, we can avoid the flickering with this */
color: var(--white);
overflow-x: hidden;
font-weight: 100;
}

.wave-bg {
color: var(--white);

background-color: var(--dark);
background-image: url('../assets/img/waves.svg');
background-image: url('../assets/img/squares.svg');
background-repeat: no-repeat;
background-position: bottom;
background-size: 100%;
background-size: 100% 180px;
}

.ant-page-header {
Expand Down
31 changes: 25 additions & 6 deletions src/modules/admin/component/dashboard.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {
AppstoreAddOutlined,
EllipsisOutlined,
ReloadOutlined,
SmileOutlined,
} from '@ant-design/icons';
import { Button } from 'antd';
import { Alert, Button } from 'antd';
import { useEffect } from 'react';
import GridLayout from 'react-grid-layout';
import { useRecoilState } from 'recoil';
Expand All @@ -30,7 +31,6 @@ export default function DashboardPage() {
header={
<PageHeader
title="Dashboard"
subTitle="Welcome Artisan!"
actions={
<>
<Button key="add" icon={<AppstoreAddOutlined />}>
Expand All @@ -49,25 +49,44 @@ export default function DashboardPage() {
/>
}
>
<Alert
type="info"
className="mx-2 mb-4"
icon={<SmileOutlined className="text-xl mr-4" />}
closable
showIcon
message={
<>
Artgen Core is in{' '}
<strong className="font-bold">alpha preview</strong> status, You can
go around and test the current state, but please don't try to deploy
it in production environment. If You have any feedback, don't be shy
to share with us on our GitHub page.
<br />
<span className="italic">Have a nice day!</span>
</>
}
/>

<GridLayout
className="text-center"
layout={gridState}
cols={16}
rowHeight={80}
width={1800}
width={window.innerWidth - 80}
onLayoutChange={onLayoutChange}
>
<div key="a" className="bg-lightest-dark">
Custom
Placeholder
</div>
<div key="b" className="bg-lightest-dark">
Widgets
Placeholder
</div>
<div key="c" className="bg-lightest-dark">
Placeholder
</div>
<div className="bg-lightest-dark" key="d">
Coming Soon
Placeholder
</div>
</GridLayout>
</PageWithHeader>
Expand Down

0 comments on commit 5aae7fc

Please sign in to comment.