-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from OptimusCrime/redesign
Redesign
- Loading branch information
Showing
119 changed files
with
7,765 additions
and
20,652 deletions.
There are no files selected for viewing
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 @@ | ||
18.16.0 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# DnD – Simple Combat Management | ||
# Dungeons and Dragons – Simple Encounter Manager | ||
|
||
Simple tool used to keep track of DnD combat scenarios. Data is stored in LocalStorage. | ||
Simple tool to run Dungeons and Dragons encounters. Kept purposefully simple. |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
|
||
interface DropdownProps { | ||
text: string; | ||
children: React.ReactNode; | ||
onOpen?: () => void; | ||
} | ||
|
||
export const Dropdown = (props: DropdownProps) => { | ||
const { text, children, onOpen } = props; | ||
return ( | ||
<div className="dropdown"> | ||
<label tabIndex={0} className="btn" onClick={onOpen}> | ||
{text} | ||
</label> | ||
<ul tabIndex={0} className="dropdown-content z-[1] menu p-4 shadow bg-base-100 rounded-box w-52"> | ||
{children} | ||
</ul> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import cx from 'classnames'; | ||
import React from 'react'; | ||
|
||
interface DropdownItemToggleProps { | ||
checked: boolean; | ||
onClick: () => void; | ||
children: React.ReactNode; | ||
} | ||
|
||
export const DropdownItemToggle = (props: DropdownItemToggleProps) => { | ||
const { checked, onClick, children } = props; | ||
|
||
const className = checked ? 'bg-base-300' : ''; | ||
|
||
return ( | ||
<li className={cx('rounded', className)}> | ||
<a onClick={onClick} className="rounded no-underline"> | ||
Check warning on line 17 in src/components/DropdownItemToggle.tsx GitHub Actions / build
|
||
{children} | ||
</a> | ||
</li> | ||
); | ||
}; |
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,3 @@ | ||
import React from 'react'; | ||
|
||
export const Heading = ({ text }: { text: string }) => <h4 className="text-3xl pb-2">{text}</h4>; |
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,19 @@ | ||
import React from 'react'; | ||
|
||
interface ModalProps { | ||
id: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
export const Modal = (props: ModalProps) => { | ||
const { id, children } = props; | ||
|
||
return ( | ||
<dialog className="modal" id={id}> | ||
<div className="modal-box">{children}</div> | ||
<form method="dialog" className="modal-backdrop"> | ||
<button>close</button> | ||
</form> | ||
</dialog> | ||
); | ||
}; |
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,4 @@ | ||
export { Dropdown } from './Dropdown'; | ||
export { DropdownItemToggle } from './DropdownItemToggle'; | ||
export { Heading } from './Heading'; | ||
export { Modal } from './Modal'; |
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import './index.css'; | ||
// import './index.css'; | ||
import './input.css'; | ||
|
||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import { Provider } from 'react-redux'; | ||
|
||
import { App } from './App'; | ||
import { Wrapper } from './layout'; | ||
import { store } from './store'; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); | ||
|
||
root.render( | ||
<Provider store={store}> | ||
<App /> | ||
<Wrapper> | ||
<App /> | ||
</Wrapper> | ||
</Provider>, | ||
); |
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,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.