Skip to content

Instantly share code, notes, and snippets.

@zafar-saleem
Created February 15, 2023 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zafar-saleem/6b50c1d5fc8d77ed4864bba4bc831f40 to your computer and use it in GitHub Desktop.
Save zafar-saleem/6b50c1d5fc8d77ed4864bba4bc831f40 to your computer and use it in GitHub Desktop.
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>
</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