-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev
- Loading branch information
Showing
22 changed files
with
138 additions
and
147 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# local env files | ||
.env*.local | ||
*.mdx | ||
|
||
# dependencies | ||
/node_modules | ||
|
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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import LoadingScreen from '@/app/loading'; | ||
export default LoadingScreen; |
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,47 +1,2 @@ | ||
'use client'; | ||
|
||
import React, { useState } from 'react'; | ||
|
||
interface Todo { | ||
id: number; | ||
text: string; | ||
} | ||
|
||
const TodoComponent: React.FC = () => { | ||
const [todos, setTodos] = useState<Todo[]>([ | ||
{ id: 1, text: 'Todo 1' }, | ||
{ id: 2, text: 'Todo 2' }, | ||
{ id: 3, text: 'Todo 3' }, | ||
]); | ||
|
||
const addTodos = () => { | ||
// You can add more todos to the list when the button is clicked | ||
const newTodos: Todo[] = [ | ||
{ id: 4, text: 'Todo 4' }, | ||
{ id: 5, text: 'Todo 5' }, | ||
]; | ||
|
||
setTodos((prevTodos) => [...prevTodos, ...newTodos]); | ||
}; | ||
|
||
return ( | ||
<div className="todo-container transition-all duration-500 ease-in-out"> | ||
<h1 className="text-2xl font-bold mb-4">Todos</h1> | ||
<ul> | ||
{todos.map((todo) => ( | ||
<li key={todo.id} className="border p-2 mb-2 rounded"> | ||
{todo.text} | ||
</li> | ||
))} | ||
</ul> | ||
<button | ||
onClick={addTodos} | ||
className="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-700" | ||
> | ||
Add More Todos | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TodoComponent; | ||
import NewNav from '@/app/components/nav/new-nav'; | ||
export default NewNav; |
Oops, something went wrong.