Compare commits
No commits in common. "feat-events" and "master" have entirely different histories.
feat-event
...
master
@ -1,20 +1,13 @@
|
|||||||
import React, { useState } from 'react';
|
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faSearch } from '@fortawesome/free-solid-svg-icons';
|
import { faSearch } from '@fortawesome/free-solid-svg-icons';
|
||||||
import RecentTask from './RecentTask';
|
import RecentTask from './RecentTask';
|
||||||
|
|
||||||
const Sidebar = () => {
|
const Sidebar = () => {
|
||||||
const [recentTasks, setRecentTasks] = useState([]);
|
|
||||||
|
|
||||||
const handleSearch = e => {
|
|
||||||
const searchPhrase = e.target.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="sidebar">
|
<section className="sidebar">
|
||||||
<div className="search-area">
|
<div className="search-area">
|
||||||
<FontAwesomeIcon icon={faSearch} />
|
<FontAwesomeIcon icon={faSearch} />
|
||||||
<input type="text" placeholder="Wyszukaj" onChange={handleSearch}/>
|
<input type="text" placeholder="Wyszukaj"/>
|
||||||
</div>
|
</div>
|
||||||
<div className="recent-task-list">
|
<div className="recent-task-list">
|
||||||
<div>Ostatnie zadania</div>
|
<div>Ostatnie zadania</div>
|
||||||
|
15
style.css
15
style.css
@ -275,8 +275,7 @@ button:hover {
|
|||||||
/* tasks */
|
/* tasks */
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid: auto / 3fr 7fr;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -284,17 +283,17 @@ main {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* section.task-description{
|
section.task-description{
|
||||||
width: 70%;
|
width: 100%;
|
||||||
} */
|
}
|
||||||
|
|
||||||
div.task-description {
|
div.task-description {
|
||||||
/* position: absolute;
|
/* position: absolute;
|
||||||
left: 350px; */
|
left: 350px; */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
/* width: 100%; */
|
width: 100%;
|
||||||
/* max-width: 900px; */
|
max-width: 900px;
|
||||||
margin: 10%;
|
margin: 10%;
|
||||||
|
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
@ -412,7 +411,7 @@ div.task-description {
|
|||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
/* position: absolute; */
|
/* position: absolute; */
|
||||||
/* width: 30%; */
|
width: 500px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: var(--sidebar-border);
|
border: var(--sidebar-border);
|
||||||
background: #F6F9FC;
|
background: #F6F9FC;
|
||||||
|
Loading…
Reference in New Issue
Block a user