File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,43 @@ INFJ,珠海,数据科学在读,目前在学习ai agent,ai应用开发,
1515## Notes
1616
1717<!-- Content_START -->
18+ # 2025-08-19
19+
20+ ### 写具体业务代码
21+ ``` javascript
22+ import Navbar from ' ./Navbar'
23+ import { IoMdAddCircle } from ' react-icons/io'
24+
25+ const TodoList = ({input, setInput, addTask}) => < div className= ' w-[70%] bg-[#354ea3] py-4 px-9 rounded-[30px] overflow-y-scroll' >
26+ < Navbar / >
27+ < h2 className= ' text-4xl bolder text-white pb-8' >
28+ What& apos;s up, Kevin!
29+ < / h2>
30+ < div className= ' py-3 text-[#7d99e9]' > TODAY & apos;S TASKS < / div>
31+ < form className= ' flex items-center justify-center' >
32+ < input
33+ className= ' rounded-[10px] w-full p-[10px] border-none outline-none bg-[#031956] text-white mb-[10px]'
34+ placeholder= ' Add a task for today...'
35+ // take input from the form here
36+ value= {input}
37+ onChange= {e => setInput (e .target .value )}
38+ / >
39+ < IoMdAddCircle
40+ // Add an onClick method
41+ onClick= {addTask}
42+ className= ' text-[#ea0aff] text-[50px] cursor-pointer ml-[20px] mb-[10px]'
43+ / >
44+ < / form>
45+ < ul>
46+ {/* Loop through all tasks here using the Task component */ }
47+ < / ul>
48+ < / div>
49+
50+ export default TodoList
51+ ```
52+
53+ 但是在链上存储内容时存在bug,可能需要明天解决
54+
1855# 2025-08-18
1956
2057## 前端交互通过按钮连接钱包
You can’t perform that action at this time.
0 commit comments