GarGerry commited on
Commit
b8b80bc
·
verified ·
1 Parent(s): e177352

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +64 -108
style.css CHANGED
@@ -1,138 +1,94 @@
1
- /* Style untuk Navbar */
2
- .navbar {
3
- background-color: #4CAF50; /* Hijau */
4
- padding: 10px;
5
- text-align: center;
 
6
  }
7
 
8
- .navbar .logo {
9
- width: 120px; /* Ukuran logo */
10
- height: auto;
 
 
 
 
 
 
 
 
 
 
11
  }
12
 
13
- /* Style untuk Headline */
14
- .headline {
15
- text-align: center;
16
- margin-top: 20px;
17
- padding: 20px;
18
- background-color: #f1f1f1; /* Latar belakang terang untuk headline */
19
  }
20
 
21
- .headline h1 {
22
- font-size: 36px;
23
- color: #333;
 
 
24
  }
25
 
26
- .headline p {
27
- font-size: 18px;
28
- color: #666;
 
29
  }
30
 
31
- /* Style untuk Container dan Converter */
32
- .container {
33
- margin-top: 30px;
 
34
  padding: 20px;
35
  text-align: center;
36
  }
37
 
38
- .converter {
39
- margin-top: 20px;
40
- display: inline-block;
41
- background-color: #ffffff;
42
- padding: 30px;
43
- border-radius: 10px;
44
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
45
- }
46
-
47
- /* Input dan select */
48
- label, select, input {
49
- margin: 10px 0;
50
- font-size: 16px;
51
- }
52
-
53
- input, select {
54
- padding: 10px;
55
- width: 200px;
56
- font-size: 16px;
57
- margin: 10px 0;
58
- }
59
-
60
- button {
61
- background-color: #4CAF50;
62
  color: white;
63
- padding: 10px 20px;
64
- border: none;
65
- cursor: pointer;
66
- font-size: 18px;
67
- }
68
-
69
- button:hover {
70
- background-color: #45a049;
71
- }
72
-
73
- #result {
74
- font-size: 18px;
75
- margin-top: 20px;
76
- color: #333;
77
  }
78
 
79
- /* Style untuk How to Use */
80
  .steps {
81
- margin-top: 50px;
82
- text-align: center;
83
  padding: 20px;
84
- background-color: #f9f9f9;
85
- }
86
-
87
- .steps h2 {
88
- font-size: 30px;
89
- color: #333;
90
  }
91
 
 
92
  .step-box {
93
- background-color: #f1f1f1;
94
- margin: 20px;
95
  padding: 20px;
96
- border-radius: 8px;
97
- display: inline-block;
98
- width: 30%;
99
- text-align: left;
100
- }
101
-
102
- .step-box h3 {
103
- font-size: 22px;
104
- color: #333;
105
  }
106
 
107
- .step-box p {
108
- font-size: 16px;
109
- color: #666;
110
- }
 
 
111
 
112
- /* Responsif - Atur tampilan step-box agar stack secara vertikal pada layar kecil */
113
- @media (max-width: 768px) {
114
  .step-box {
115
- width: 100%;
116
- margin: 10px 0;
117
  }
118
  }
119
 
120
- /* Style untuk Footer */
121
- .footer {
122
- background-color: #4CAF50;
123
- padding: 20px;
124
- text-align: center;
125
- color: white;
126
- font-size: 16px;
127
- margin-top: 50px;
128
- }
129
-
130
- .footer p {
131
- margin: 0;
132
- }
133
-
134
- /* Style untuk tombol convert */
135
- #convert-btn {
136
- display: inline-block;
137
- margin-top: 20px;
138
- }
 
1
+ /* Reset margin dan padding untuk body */
2
+ body {
3
+ margin: 0;
4
+ padding: 0;
5
+ overflow-x: hidden; /* Menonaktifkan geser horizontal */
6
+ font-family: Arial, sans-serif;
7
  }
8
 
9
+ /* Navbar */
10
+ .navbar {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ background-color: #004d00; /* Warna hijau tua */
15
+ padding: 10px 20px;
16
+ position: fixed;
17
+ top: 0;
18
+ left: 0;
19
+ right: 0;
20
+ z-index: 100;
21
+ width: 100%;
22
  }
23
 
24
+ /* Logo */
25
+ .logo img {
26
+ height: 40px; /* Atur ukuran logo sesuai keinginan */
27
+ width: auto;
 
 
28
  }
29
 
30
+ /* Nama Brand */
31
+ .brand-name h1 {
32
+ color: white;
33
+ margin: 0;
34
+ font-size: 24px;
35
  }
36
 
37
+ /* Menambahkan padding pada konten agar tidak tertutup navbar */
38
+ .content {
39
+ margin-top: 60px; /* Disesuaikan dengan tinggi navbar */
40
+ padding: 20px;
41
  }
42
 
43
+ /* Menyesuaikan warna latar belakang konten */
44
+ .headline {
45
+ background-color: #004d00; /* Warna hijau tua */
46
+ color: white;
47
  padding: 20px;
48
  text-align: center;
49
  }
50
 
51
+ /* Styling untuk footer */
52
+ .footer {
53
+ background-color: #808080; /* Warna abu-abu */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  color: white;
55
+ padding: 20px;
56
+ text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
+ /* Styling untuk box How To Use */
60
  .steps {
61
+ background-color: #004d00;
62
+ color: white;
63
  padding: 20px;
64
+ margin-top: 20px;
65
+ border-radius: 10px;
66
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
 
 
67
  }
68
 
69
+ /* Styling untuk kotak Step-by-Step */
70
  .step-box {
71
+ background-color: #cccccc;
 
72
  padding: 20px;
73
+ margin: 10px 0;
74
+ border-radius: 10px;
75
+ text-align: center;
 
 
 
 
 
 
76
  }
77
 
78
+ /* Untuk desktop (web mode) */
79
+ @media screen and (min-width: 768px) {
80
+ .steps {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ }
84
 
 
 
85
  .step-box {
86
+ width: 30%;
 
87
  }
88
  }
89
 
90
+ /* Untuk mobile (mode vertikal) */
91
+ @media screen and (max-width: 767px) {
92
+ .steps {
93
+ display: block;
94
+ }