Created
February 15, 2023 07:59
-
-
Save zafar-saleem/b816b98687bc10cd859e816db1822750 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import styled from 'styled-components'; | |
import { Board } from 'board'; | |
import { Popup } from 'popup'; | |
const Col = styled.div` | |
padding: 1em; | |
box-sizing: border-box; | |
border-right: 1px solid #ccc; | |
`; | |
export default function Web() { | |
const [showPopup, setShowPopup] = React.useState<boolean>(false); | |
return ( | |
<div> | |
<h1 style={{textAlign: 'center'}}>Kanban Board</h1> | |
<Popup showPopup={showPopup} setShowPopup={setShowPopup}> | |
<h2>Add Todo</h2> | |
<form> | |
<div> | |
<label>Title</label> | |
<input autoFocus type="text" name="title" /> | |
</div> | |
<div> | |
<button>Save</button> | |
</div> | |
</form> | |
</Popup> | |
<Board> | |
<Col> | |
<h2>TO DO</h2> | |
<button>Add</button> | |
</Col> | |
<Col> | |
<h2>IN PROGRESS</h2> | |
</Col> | |
<Col> | |
<h2>TESTING</h2> | |
</Col> | |
<Col> | |
<h2>DONE</h2> | |
</Col> | |
</Board> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment