Skip to content

Commit

Permalink
Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jan 21, 2024
1 parent 940be29 commit 40278c6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
16 changes: 16 additions & 0 deletions src/components/CheckList.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
.CheckList {
--check-list-item-pad: 10px;
--check-list-item-gap: 8px;
--check-list-color-shadow: #888;

display: grid;
grid-template-rows: auto 1fr;
height: 100vh;

> span:first-of-type {
display: grid;
align-items: center;
grid-template-columns: auto auto 1fr;
gap: 2px;
box-shadow: 0 0px 20px -5px var(--check-list-color-shadow);
padding: var(--check-list-item-pad);
> span {
font-size: 1.2em;
}
:last-child {
justify-self: end;
}
}

ul {
display: flex;
list-style: none;
Expand Down
26 changes: 15 additions & 11 deletions src/components/CheckList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import planText from '../data/five-day.txt?raw'
import { CheckListItem, isRangeComplete, versionLink } from '../model'
import { loadCheckListState, saveCheckListState } from '../data'
import { CheckBox } from './CheckBox'
import logo from '../assets/favicon-32x32.png'

export function CheckList() {
const checkList: CheckListItem[] = planText
Expand All @@ -26,17 +27,20 @@ export function CheckList() {

return (
<div class={styles.CheckList}>
<CheckBox
class={styles.CheckBox}
isChecked={showCompleted()}
onChange={() =>
setCheckListState((s) => ({
...s,
showCompleted: !s.showCompleted,
}))
}>
Show Completed
</CheckBox>
<span>
<img src={logo} />
<span>ible Plan</span>
<CheckBox
isChecked={showCompleted()}
onChange={() =>
setCheckListState((s) => ({
...s,
showCompleted: !s.showCompleted,
}))
}>
Show Completed
</CheckBox>
</span>

<ul>
<For each={checkList}>
Expand Down

0 comments on commit 40278c6

Please sign in to comment.