Skip to content

Commit 8a36656

Browse files
changed the position of the button (#16)
* changed the position of the button * added a bit of style --------- Co-authored-by: Matheus Tebaldi <[email protected]>
1 parent 2ca2b1f commit 8a36656

File tree

5 files changed

+54
-14
lines changed

5 files changed

+54
-14
lines changed
66.9 KB
Loading

src/css/Abstract_image.jpeg

72 KB
Loading

src/css/Polariod_frame.png

2.96 MB
Loading

src/css/styles.css

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,77 @@
1+
*{
2+
box-sizing: border-box;
3+
}
4+
15
body {
26
font-family: Arial, sans-serif;
3-
background-color: #f4f4f4;
7+
background-image: url('./Polariod_frame.png'), url('./4575cc07c61e0b6513a7c5246cb86800.jpg');
8+
background-repeat: no-repeat, no-repeat;
9+
background-position: top left, right bottom;
10+
background-size: 300px, 420px;
411
margin: 0;
512
padding: 0;
613
}
714

815
.container {
16+
position: relative;
917
max-width: 600px;
10-
margin: 50px auto;
11-
background-color: #fff;
18+
margin: 0px auto;
19+
height: 720px;
1220
padding: 20px;
1321
border-radius: 5px;
1422
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
23+
z-index: 1;
24+
}
25+
26+
.container h1 {
27+
font-family: "Poetsen One", sans-serif;
28+
font-weight: 300;
29+
}
30+
31+
.container::before {
32+
content: "";
33+
position: absolute;
34+
top: 0;
35+
left: 0;
36+
width: 100%;
37+
height: 100%;
38+
background-image: url('./Abstract_image.jpeg');
39+
background-repeat: no-repeat;
40+
background-size: cover;
41+
opacity: 0.3;
42+
z-index: -1;
1543
}
1644

1745
h1 {
1846
text-align: center;
1947
}
2048

49+
.addTask {
50+
display:flex;
51+
}
52+
2153
input[type='text'] {
22-
width: calc(100% - 80px);
54+
flex-grow: 1;
2355
padding: 10px;
24-
margin-bottom: 10px;
56+
margin-right: 0px;
2557
border: 1px solid #ccc;
26-
border-radius: 5px;
58+
border-right: none;
59+
border-radius: 5px 0 0 5px;
2760
}
2861

2962
button {
3063
padding: 10px 20px;
31-
background-color: #007bff;
64+
background-color: #caa229;
3265
color: #fff;
33-
border: none;
34-
border-radius: 5px;
66+
border: 1px solid #caa229;
67+
border-radius: 0 5px 5px 0;
3568
cursor: pointer;
69+
flex-shrink: 0;
3670
}
3771

3872
button:hover {
39-
background-color: #0056b3;
73+
background-color: #5d4a10;
74+
border-color: #5d4a10;
4075
}
4176

4277
ul {
@@ -52,4 +87,4 @@ li {
5287
.completed {
5388
text-decoration: line-through;
5489
color: #888;
55-
}
90+
}

src/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="preconnect" href="https://fonts.googleapis.com">
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8+
<link href="https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap" rel="stylesheet">
69
<title>To-Do List</title>
710
<link rel="stylesheet" href="css/styles.css" />
811
</head>
912

1013
<body>
1114
<div class="container">
1215
<h1>To-Do List</h1>
13-
<input type="text" id="taskInput" placeholder="Add a new task" />
14-
<button id="addTaskBtn">Add Task</button>
16+
<div class="addTask">
17+
<input type="text" id="taskInput" placeholder="Add a new task" />
18+
<button id="addTaskBtn">Add Task</button>
19+
</div>
1520
<ul id="taskList"></ul>
1621
</div>
1722
<script src="js/script.js"></script>
1823
</body>
19-
</html>
24+
</html>

0 commit comments

Comments
 (0)