-
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.
- Loading branch information
Showing
8 changed files
with
39 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import './style.css'; | ||
import FocusFeature from './focus/FocusFeature.jsx'; | ||
import Theme from './theme/Theme.jsx'; | ||
|
||
export default function App() { | ||
return <> | ||
<header> | ||
<FocusFeature /> | ||
<Theme /> | ||
</header> | ||
|
||
<main> | ||
|
||
</main> | ||
</>; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
section.focus-play { | ||
.focus-play { | ||
|
||
.ico-button { | ||
outline: 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,27 +1,27 @@ | ||
import { FocusPath } from './FocusPath.jsx'; | ||
import { CurrentFocus } from './CurrentFocus.jsx'; | ||
import { useFocus } from './useFocus.jsx'; | ||
import './focus.css'; | ||
import './FocusFeature.css'; | ||
|
||
function FocusPlayButton() { | ||
return <button class="ico-button"> | ||
<label> | ||
<input name="check-working" type="checkbox" checked /> | ||
</label> | ||
</button>; | ||
} | ||
|
||
export default function FocusPlay() { | ||
export default function FocusFeature() { | ||
const [current, stack, { update, ...changeFocus }] = useFocus(); | ||
const { Add, Remove, Path } = <FocusPath stack={stack} {...changeFocus} />; | ||
const { Add, Remove, List } = <FocusPath stack={stack} {...changeFocus} />; | ||
|
||
return <section class="focus-play"> | ||
<FocusPlayButton /> | ||
<ul><Path /></ul> | ||
<section class="focus-section"> | ||
<List /> | ||
<div class="focus-section"> | ||
<Remove className="remove-button" /> | ||
<CurrentFocus current={current} update={update} /> | ||
</section> | ||
<Add className="add-button" /> | ||
<Add className="add-button" /> | ||
</div> | ||
</section>; | ||
} | ||
|
||
function FocusPlayButton() { | ||
return <button class="ico-button"> | ||
<label> | ||
<input name="check-working" type="checkbox" checked /> | ||
</label> | ||
</button>; | ||
} |
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