diff --git a/my-app/components/button/button-type.js b/my-app/components/button/button-type.js
new file mode 100644
index 00000000..1ee54688
--- /dev/null
+++ b/my-app/components/button/button-type.js
@@ -0,0 +1,7 @@
+const BUTTON_TYPE = Object.freeze({
+ add: "add",
+ edit: "edit",
+ delete: "delete",
+});
+
+export { BUTTON_TYPE };
diff --git a/my-app/components/button/button.jsx b/my-app/components/button/button.jsx
new file mode 100644
index 00000000..83236c94
--- /dev/null
+++ b/my-app/components/button/button.jsx
@@ -0,0 +1,27 @@
+import { BUTTON_TYPE } from "./button-type";
+import styles from "./button.module.css";
+
+const className = {
+ [BUTTON_TYPE.add]: `${styles.button} ${styles.add}`,
+ [BUTTON_TYPE.edit]: `${styles.button} ${styles.edit}`,
+ [BUTTON_TYPE.delete]: `${styles.button} ${styles.delete}`,
+};
+
+const leadingIcon = {
+ [BUTTON_TYPE.add]: "/icons/ic-plus.svg",
+ [BUTTON_TYPE.edit]: "/icons/ic-check.svg",
+ [BUTTON_TYPE.delete]: "/icons/ic-xmark-white.svg",
+};
+
+function Button({ children, type = BUTTON_TYPE.add, ...props }) {
+ return (
+
+
+
+
+ {children}
+
+ );
+}
+
+export default Button;
diff --git a/my-app/components/button/button.module.css b/my-app/components/button/button.module.css
new file mode 100644
index 00000000..df652dcb
--- /dev/null
+++ b/my-app/components/button/button.module.css
@@ -0,0 +1,42 @@
+.button {
+ color: var(--color-state-900);
+ background-color: var(--color-state-200);
+ padding: 18px 40px;
+ border: 2px solid var(--color-state-900);
+ border-radius: 24px;
+ box-shadow: 4px 4px 0px var(--color-state-900);
+ font-size: 16px;
+ font-weight: 700;
+ line-height: 100%;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ white-space: nowrap;
+}
+.button .trailingIcon {
+ width: 16px;
+ height: 16px;
+}
+.button .trailingIcon img {
+ width: 100%;
+ height: 100%;
+}
+
+.button.add:active {
+ color: white;
+ background-color: var(--color-violet-600);
+}
+.button.add:active img {
+ filter: invert(100%) sepia(14%) saturate(1801%) hue-rotate(190deg)
+ brightness(116%) contrast(101%);
+}
+
+.button.edit:active {
+ background-color: var(--color-lime-300);
+}
+
+.button.delete {
+ color: white;
+ background-color: var(--color-rose-500);
+}
diff --git a/my-app/components/color/color.js b/my-app/components/color/color.js
new file mode 100644
index 00000000..b198fb49
--- /dev/null
+++ b/my-app/components/color/color.js
@@ -0,0 +1,30 @@
+function colorVariable(name, shade) {
+ return `var(--color-${name}-${Math.max(100, Math.min(900, shade))})`;
+}
+
+const Colors = {
+ state: {
+ 100: colorVariable("state", 100),
+ 200: colorVariable("state", 200),
+ 300: colorVariable("state", 300),
+ 400: colorVariable("state", 400),
+ 500: colorVariable("state", 500),
+ 800: colorVariable("state", 800),
+ 900: colorVariable("state", 900),
+ },
+ violet: {
+ 100: colorVariable("violet", 100),
+ 600: colorVariable("violet", 600),
+ },
+ rose: {
+ 500: colorVariable("rose", 500),
+ },
+ lime: {
+ 300: colorVariable("lime", 300),
+ },
+ amber: {
+ 800: colorVariable("amber", 800),
+ },
+};
+
+export default Colors;
diff --git a/my-app/components/input/search-input.jsx b/my-app/components/input/search-input.jsx
new file mode 100644
index 00000000..4c51fffd
--- /dev/null
+++ b/my-app/components/input/search-input.jsx
@@ -0,0 +1,11 @@
+import styles from "./search-input.module.css";
+
+function SearchInput({ ...props }) {
+ return (
+
-
-
-
-
- Get started by editing pages/index.js.
-
- Save and see your changes instantly.
-
-
-
-
-
- Deploy now
-
-
+
+
+
+
+
+ {inProgressTodos.map((todo) => (
+ handleToDoClick(todo)}>
+ {todo.name}
+
+ ))}
+
+
+ {doneTodos.map((todo) => (
+ handleToDoClick(todo)}
+ >
+ {todo.name}
+
+ ))}
+
-
-
-
+
+
+
{isLoading &&
}
>
);
}
diff --git a/my-app/public/favicon.ico b/my-app/public/favicon.ico
deleted file mode 100644
index 718d6fea..00000000
Binary files a/my-app/public/favicon.ico and /dev/null differ
diff --git a/my-app/public/file.svg b/my-app/public/file.svg
deleted file mode 100644
index 004145cd..00000000
--- a/my-app/public/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/my-app/public/globe.svg b/my-app/public/globe.svg
deleted file mode 100644
index 567f17b0..00000000
--- a/my-app/public/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/my-app/public/icons/ic-check.svg b/my-app/public/icons/ic-check.svg
new file mode 100644
index 00000000..c1f426d3
--- /dev/null
+++ b/my-app/public/icons/ic-check.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/my-app/public/icons/ic-plus-white.svg b/my-app/public/icons/ic-plus-white.svg
new file mode 100644
index 00000000..2ec289e9
--- /dev/null
+++ b/my-app/public/icons/ic-plus-white.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/my-app/public/icons/ic-plus.svg b/my-app/public/icons/ic-plus.svg
new file mode 100644
index 00000000..935663bd
--- /dev/null
+++ b/my-app/public/icons/ic-plus.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/my-app/public/icons/ic-xmark-white.svg b/my-app/public/icons/ic-xmark-white.svg
new file mode 100644
index 00000000..c054bbcb
--- /dev/null
+++ b/my-app/public/icons/ic-xmark-white.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/my-app/public/images/checkbox-checked.svg b/my-app/public/images/checkbox-checked.svg
new file mode 100644
index 00000000..62bc5549
--- /dev/null
+++ b/my-app/public/images/checkbox-checked.svg
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/my-app/public/images/checkbox.svg b/my-app/public/images/checkbox.svg
new file mode 100644
index 00000000..0e06cb40
--- /dev/null
+++ b/my-app/public/images/checkbox.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/my-app/public/images/done-list-empty.svg b/my-app/public/images/done-list-empty.svg
new file mode 100644
index 00000000..9e7b5c61
--- /dev/null
+++ b/my-app/public/images/done-list-empty.svg
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/my-app/public/images/logo-large.svg b/my-app/public/images/logo-large.svg
new file mode 100644
index 00000000..79e3a93a
--- /dev/null
+++ b/my-app/public/images/logo-large.svg
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/my-app/public/images/logo-small.svg b/my-app/public/images/logo-small.svg
new file mode 100644
index 00000000..4fb80423
--- /dev/null
+++ b/my-app/public/images/logo-small.svg
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/my-app/public/images/todo-list-empty.svg b/my-app/public/images/todo-list-empty.svg
new file mode 100644
index 00000000..c30e0514
--- /dev/null
+++ b/my-app/public/images/todo-list-empty.svg
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/my-app/public/next.svg b/my-app/public/next.svg
deleted file mode 100644
index 5174b28c..00000000
--- a/my-app/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/my-app/public/vercel.svg b/my-app/public/vercel.svg
deleted file mode 100644
index 77053960..00000000
--- a/my-app/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/my-app/public/window.svg b/my-app/public/window.svg
deleted file mode 100644
index b2b2a44f..00000000
--- a/my-app/public/window.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/my-app/styles/Home.module.css b/my-app/styles/Home.module.css
deleted file mode 100644
index a11c8f31..00000000
--- a/my-app/styles/Home.module.css
+++ /dev/null
@@ -1,168 +0,0 @@
-.page {
- --gray-rgb: 0, 0, 0;
- --gray-alpha-200: rgba(var(--gray-rgb), 0.08);
- --gray-alpha-100: rgba(var(--gray-rgb), 0.05);
-
- --button-primary-hover: #383838;
- --button-secondary-hover: #f2f2f2;
-
- display: grid;
- grid-template-rows: 20px 1fr 20px;
- align-items: center;
- justify-items: center;
- min-height: 100svh;
- padding: 80px;
- gap: 64px;
- font-family: var(--font-geist-sans);
-}
-
-@media (prefers-color-scheme: dark) {
- .page {
- --gray-rgb: 255, 255, 255;
- --gray-alpha-200: rgba(var(--gray-rgb), 0.145);
- --gray-alpha-100: rgba(var(--gray-rgb), 0.06);
-
- --button-primary-hover: #ccc;
- --button-secondary-hover: #1a1a1a;
- }
-}
-
-.main {
- display: flex;
- flex-direction: column;
- gap: 32px;
- grid-row-start: 2;
-}
-
-.main ol {
- font-family: var(--font-geist-mono);
- padding-left: 0;
- margin: 0;
- font-size: 14px;
- line-height: 24px;
- letter-spacing: -0.01em;
- list-style-position: inside;
-}
-
-.main li:not(:last-of-type) {
- margin-bottom: 8px;
-}
-
-.main code {
- font-family: inherit;
- background: var(--gray-alpha-100);
- padding: 2px 4px;
- border-radius: 4px;
- font-weight: 600;
-}
-
-.ctas {
- display: flex;
- gap: 16px;
-}
-
-.ctas a {
- appearance: none;
- border-radius: 128px;
- height: 48px;
- padding: 0 20px;
- border: none;
- border: 1px solid transparent;
- transition:
- background 0.2s,
- color 0.2s,
- border-color 0.2s;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 16px;
- line-height: 20px;
- font-weight: 500;
-}
-
-a.primary {
- background: var(--foreground);
- color: var(--background);
- gap: 8px;
-}
-
-a.secondary {
- border-color: var(--gray-alpha-200);
- min-width: 158px;
-}
-
-.footer {
- grid-row-start: 3;
- display: flex;
- gap: 24px;
-}
-
-.footer a {
- display: flex;
- align-items: center;
- gap: 8px;
-}
-
-.footer img {
- flex-shrink: 0;
-}
-
-/* Enable hover only on non-touch devices */
-@media (hover: hover) and (pointer: fine) {
- a.primary:hover {
- background: var(--button-primary-hover);
- border-color: transparent;
- }
-
- a.secondary:hover {
- background: var(--button-secondary-hover);
- border-color: transparent;
- }
-
- .footer a:hover {
- text-decoration: underline;
- text-underline-offset: 4px;
- }
-}
-
-@media (max-width: 600px) {
- .page {
- padding: 32px;
- padding-bottom: 80px;
- }
-
- .main {
- align-items: center;
- }
-
- .main ol {
- text-align: center;
- }
-
- .ctas {
- flex-direction: column;
- }
-
- .ctas a {
- font-size: 14px;
- height: 40px;
- padding: 0 16px;
- }
-
- a.secondary {
- min-width: auto;
- }
-
- .footer {
- flex-wrap: wrap;
- align-items: center;
- justify-content: center;
- }
-}
-
-@media (prefers-color-scheme: dark) {
- .logo {
- filter: invert();
- }
-}
diff --git a/my-app/styles/globals.css b/my-app/styles/globals.css
index e3734be1..5e1ffe40 100644
--- a/my-app/styles/globals.css
+++ b/my-app/styles/globals.css
@@ -1,42 +1,34 @@
:root {
- --background: #ffffff;
- --foreground: #171717;
+ --color-state-100: #f1f5f9;
+ --color-state-200: #e2e8f0;
+ --color-state-300: #cbd5e1;
+ --color-state-400: #94a3b8;
+ --color-state-500: #64748b;
+ --color-state-800: #1e293b;
+ --color-state-900: #0f172a;
+ --color-violet-100: #ede9fe;
+ --color-violet-600: #7c3aed;
+ --color-rose-500: #f43f5e;
+ --color-lime-300: #bef264;
+ --color-amber-300: #fcd34d;
+ --color-amber-800: #92400e;
+ --color-green-700: #15803d;
}
-@media (prefers-color-scheme: dark) {
- :root {
- --background: #0a0a0a;
- --foreground: #ededed;
- }
-}
-
-html,
-body {
- max-width: 100vw;
- overflow-x: hidden;
-}
-
-body {
- color: var(--foreground);
- background: var(--background);
- font-family: Arial, Helvetica, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
+@font-face {
+ font-family: "HsSantoki20";
+ src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2405@1.0/HSSanTokki20-Regular.woff2")
+ format("woff2");
+ font-weight: normal;
+ font-display: swap;
}
* {
box-sizing: border-box;
- padding: 0;
- margin: 0;
-}
-
-a {
- color: inherit;
- text-decoration: none;
}
-@media (prefers-color-scheme: dark) {
- html {
- color-scheme: dark;
- }
+body {
+ font-family: NanumSquare, system-ui, -apple-system, BlinkMacSystemFont,
+ "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
+ sans-serif;
}
diff --git a/my-app/styles/home.module.css b/my-app/styles/home.module.css
new file mode 100644
index 00000000..6a2f899c
--- /dev/null
+++ b/my-app/styles/home.module.css
@@ -0,0 +1,46 @@
+.main {
+ padding: 0 200px;
+}
+
+.content {
+ width: 100%;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding-top: 24px;
+}
+
+.searchForm {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+}
+
+.todoListContainer {
+ margin-top: 40px;
+ display: flex;
+ gap: 24px;
+}
+
+.loading {
+ position: fixed;
+ inset: 0;
+ background-color: rgba(0, 0, 0, 0.2);
+ z-index: 1000;
+}
+
+@media (max-width: 1199px) {
+ .main {
+ padding: 0 24px;
+ }
+
+ .content {
+ max-width: none;
+ margin: 0;
+ }
+}
+
+@media (max-width: 743px) {
+ .main {
+ padding: 0 16px;
+ }
+}