Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Simple To-Do List</title>
<title>Simple To-Do List Manager</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>To-Do List 📝</h1>
<div class="input-section">
<input type="text" id="taskInput" placeholder="Add a new task">
<button onclick="addTask()">Add</button>
<button onclick="addTask()">Add Task</button>
</div>
<ul id="taskList"></ul>
</div>

<script src="script.js"></script>
</body>
</html>
</html>
57 changes: 37 additions & 20 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,69 @@
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #e0f7fa;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
min-height: 100vh;
margin: 0;
}

.container {
background: white;
padding: 20px 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
width: 300px;
background: #ffffff;
padding: 30px 40px;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
width: 350px;
text-align: center;
}

.input-section {
margin-bottom: 20px;
margin-bottom: 25px;
}

#taskInput {
width: 70%;
padding: 8px;
width: 68%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 6px;
outline: none;
font-size: 14px;
}

button {
padding: 8px 12px;
margin-left: 5px;
background-color: #4CAF50;
padding: 10px 16px;
margin-left: 8px;
background-color: #0288d1;
color: white;
border: none;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: #45a049;
background-color: #0277bd;
}

ul {
list-style-type: none;
padding: 0;
margin-top: 20px;
}

li {
background: #eee;
margin: 5px 0;
padding: 10px;
border-radius: 4px;
background: #f1f8e9;
margin: 8px 0;
padding: 12px;
border-radius: 6px;
text-align: left;
}
font-size: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}

li:hover {
background: #dcedc8;
}