Skip to content

Commit ce5d6fe

Browse files
Add files via upload
1 parent f56a4f9 commit ce5d6fe

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

Praktikum/Praktikum2/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>To-Do List</title>
76
<link rel="stylesheet" href="style.css">
7+
<title>To-Do List</title>
88
</head>
99
<body>
1010
<div class="container">
11-
<h2>To-Do List</h2>
11+
<h2 style="color: white;">To-Do List</h2>
1212
<div class="input-group">
1313
<input type="text" id="todoInput" placeholder="Masukkan tugas baru">
1414
<button onclick="addTodo()">Tambahkan</button>
2.27 MB
Loading

Praktikum/Praktikum2/style.css

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
body {
22
font-family: Arial, sans-serif;
3-
background-color: #000000;
3+
background-image: url('purple-aesthetic-rain.gif');
4+
background-size: cover;
5+
background-position: center;
46
display: flex;
57
justify-content: center;
68
align-items: center;
79
height: 100vh;
8-
margin: 0;
910
}
1011

1112
.container {
12-
background-color: #00d9ff;
13-
padding: 100px; /* Reduced padding for better fit */
13+
background-color: #2a0a51;
14+
color: rgb(255, 255, 255);
15+
padding: 80px; /* Reduced padding for better fit */
1416
border-radius: 10px;
1517
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
16-
width: 300px;
1718
text-align: center;
1819
}
1920

@@ -31,6 +32,30 @@ input {
3132
margin-right: 5px; /* Space between input and button */
3233
}
3334

35+
/* Kotak input utama */
36+
input[type="text"] {
37+
width: 200px; /* Tentukan lebar tetap untuk input */
38+
height: 30px; /* Tentukan tinggi awal */
39+
max-width: 200px; /* Membatasi lebar maksimum */
40+
resize: vertical; /* Izinkan perubahan ukuran hanya ke atas/bawah */
41+
overflow-y: auto; /* Scroll jika teks terlalu panjang */
42+
padding: 10px;
43+
border: 1px solid #2fff00;
44+
border-radius: 5px;
45+
box-sizing: border-box; /* Agar padding tidak menambah ukuran total */
46+
}
47+
48+
/* Kotak input saat mengedit */
49+
li input[type="text"] {
50+
width: 200px; /* Lebar tetap saat mengedit */
51+
height: 30px; /* Tinggi default */
52+
max-width: 200px; /* Batasi lebar */
53+
resize: vertical; /* Izinkan perubahan ukuran hanya ke bawah */
54+
overflow-y: auto; /* Scroll jika teks terlalu panjang */
55+
padding: 5px;
56+
}
57+
58+
3459
button {
3560
padding: 10px 15px;
3661
background-color: #28a745;
@@ -50,7 +75,7 @@ ul {
5075
}
5176

5277
li {
53-
background-color: #f3f3f3;
78+
background-color: #2a0a80;
5479
padding: 10px;
5580
margin: 5px 0;
5681
border-radius: 5px;

0 commit comments

Comments
 (0)