generated from goitacademy/react-homework-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from 001elijah/main-plus-dashboard
Main plus dashboard
- Loading branch information
Showing
21 changed files
with
348 additions
and
210 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,57 @@ | ||
@import '../../assets/styles/vars'; | ||
@import '../../assets/styles/mixins'; | ||
|
||
.BackGround { | ||
height: 100vh; | ||
&.dark { | ||
background-color: #1f1f1f; | ||
} | ||
&.light { | ||
background-color: #f6f6f7; | ||
} | ||
&.colorful { | ||
background-color: #ecedfd; | ||
} | ||
} | ||
.Wrapper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
height: 100%; | ||
} | ||
.DefaultTitle { | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 1.29; | ||
text-align: center; | ||
letter-spacing: -0.02em; | ||
margin-left: auto; | ||
margin-right: auto; | ||
|
||
@include mobileSmall { | ||
max-width: 335px; | ||
} | ||
@include mobile { | ||
width: 335px; | ||
} | ||
@include tablet { | ||
width: 486px; | ||
} | ||
&.dark { | ||
color: #ffffff80; | ||
} | ||
&.light, | ||
&.colorful { | ||
color: #161616; | ||
} | ||
} | ||
.DefaultLink { | ||
&.dark, | ||
&.light { | ||
color: #bedbb0; | ||
} | ||
&.colorful { | ||
color: #5255bc; | ||
} | ||
} |
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,29 @@ | ||
import { selectorTheme } from 'redux/Auth/authSelectors'; | ||
import { useSelector } from 'react-redux'; | ||
import clsx from 'clsx'; | ||
import React from 'react'; | ||
import s from './Default.module.scss'; | ||
import { HeaderDashBoard } from 'components/HeaderDashBoard/HeaderDashBoard'; | ||
|
||
export const DefaultDashBoard = () => { | ||
const theme = useSelector(selectorTheme); | ||
return ( | ||
<> | ||
<div className={clsx(s.BackGround, s[theme])}> | ||
<HeaderDashBoard /> | ||
<div className={s.Wrapper}> | ||
<p className={clsx(s.DefaultTitle, s[theme])}> | ||
Before starting your project, it is essential | ||
<span className={clsx(s.DefaultLink, s[theme])}> | ||
{' '} | ||
to create a board{' '} | ||
</span> | ||
to visualize and track all the necessary tasks and milestones. This | ||
board serves as a powerful tool to organize the workflow and ensure | ||
effective collaboration among team members. | ||
</p> | ||
</div> | ||
</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
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
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
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,34 @@ | ||
// import s from './MainBoard.module.scss'; | ||
import { Wrapper } from './MainBoard.styled'; | ||
import PropTypes from 'prop-types'; | ||
import { HeaderDashBoard } from '../HeaderDashBoard/HeaderDashBoard'; | ||
import { AddButton } from '../ButtonAddColumn/ButtonAddColumn'; | ||
// import {TaskCard} from '../../TaskCard/TaskCard' | ||
// import {TasksColumnHeader} from '../../TasksColumnHeader/TasksColumnHeader' | ||
|
||
const BASE_URL_IMG = | ||
'https://res.cloudinary.com/dblzpxfzb/image/upload/v1687449642/background/'; | ||
// import { useParams } from 'react-router-dom'; | ||
|
||
export const MainBoard = ({ imgid }) => { | ||
// const { boardName } = useParams(); | ||
//робимо запит на бек за id дошки | ||
|
||
return ( | ||
<> | ||
<Wrapper imgurl={BASE_URL_IMG} imgid={imgid}> | ||
<HeaderDashBoard title="test" /> | ||
<div> | ||
{/* <TasksColumnHeader/> | ||
<TaskCard/> */} | ||
</div> | ||
|
||
<AddButton typeOfButton="Card" title="Add another column" /> | ||
</Wrapper> | ||
</> | ||
); | ||
}; | ||
|
||
MainBoard.propTypes = { | ||
imgid: PropTypes.string, | ||
}; |
Oops, something went wrong.