-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHtml-Css Codes.txt
285 lines (260 loc) · 9.68 KB
/
Html-Css Codes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Diziforum</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: black;
color: white;
}
header {
text-align: center;
padding: 20px;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
}
.movie {
width: 200px;
margin: 20px;
text-align: center;
}
.movie img {
width: 150px;
height: 200px;
object-fit: cover;
}
.btn {
background-color: #ff4d4d;
color: white;
border: none;
padding: 10px 20px;
margin-top: 10px;
cursor: pointer;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
background-color: #f2f2f2;
margin: 10% auto;
padding: 20px;
width: 50%;
max-width: 500px;
border-radius: 5px;
}
.close {
color: #aaab;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
#colors {
color: black;
}
textarea {
width: 100%;
height: 100px;
resize: none;
padding: 5px;
}
input[type="submit"] {
background-color: #ff4d4d;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
}
</style>
</head>
<body>
<header>
<h1>Diziforum</h1>
<button class="btn" onclick="openModal('register-modal')">Kayıt Ol</button>
<button class="btn" onclick="openModal('login-modal')">Giriş</button>
<button class="btn" onclick="openModal('admin-login-modal')">Admin Giriş</button>
</header>
<main>
<div class="movie">
<img src="https://m.media-amazon.com/images/M/MV5BZGUzYTI3M2EtZmM0Yy00NGUyLWI4ODEtN2Q3ZGJlYzhhZjU3XkEyXkFqcGdeQXVyNTM0OTY1OQ@@._V1_.jpg">
<h2>Last Of Us</h2>
<p>Tür: Aksiyon, Bilim Kurgu</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://m.media-amazon.com/images/M/MV5BMjIzOTY1YTYtNmRhMC00MzAxLWEzMzUtM2ZiMmYwNTY0MjMyXkEyXkFqcGdeQXVyNDg4MjkzNDk@._V1_FMjpg_UX1000_.jpg">
<h2>Ezel</h2>
<p>Tür: Dram, Suç</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://m.media-amazon.com/images/M/MV5BMDNkOTE4NDQtMTNmYi00MWE0LWE4ZTktYTc0NzhhNWIzNzJiXkEyXkFqcGdeQXVyMzQ2MDI5NjU@._V1_FMjpg_UX1000_.jpg">
<h2>Ofis</h2>
<p>Tür: Komedi, Drama</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://static.boxofficeturkiye.com/movie//poster/full/52/1152-49156430.jpg">
<h2>Muhteşem Bayan Maisel</h2>
<p>Tür: Komedi, Drama</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://tr.web.img4.acsta.net/pictures/23/04/20/08/50/2513648.jpg">
<h2>Hızlı ve Öfkeli 10</h2>
<p>Tür: Aksiyon</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://images.justwatch.com/poster/272245384/s592/esaretin-bedeli">
<h2>Esaretin Bedeli</h2>
<p>Tür: Dram</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://m.media-amazon.com/images/M/MV5BM2MyNjYxNmUtYTAwNi00MTYxLWJmNWYtYzZlODY3ZTk3OTFlXkEyXkFqcGdeQXVyNzkwMjQ5NzM@._V1_.jpg">
<h2>Baba</h2>
<p>Tür: Suç, Dram</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://cdn1.ntv.com.tr/gorsel/FbSMUafW1EibIWi6lTRuGg.jpg?width=1000&mode=crop&scale=both">
<h2>Matrix</h2>
<p>Tür: Bilim Kurgu, Aksiyon</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://tr.web.img3.acsta.net/c_310_420/pictures/bzp/03/18671.jpg">
<h2>Truman Show</h2>
<p>Tür: Drama, Komedi</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
<div class="movie">
<img src="https://tr.web.img2.acsta.net/r_654_368/newsv7/19/09/20/16/29/4784369.jpg">
<h2>Behzat C. (Behzat Ç. Bir Ankara Polisiyesi)</h2>
<p>Tür: Suç, Drama</p>
<button class="btn" onclick="openModal('comment-modal-1')">Yorum Yap</button>
<button class="btn" onclick="openModal('rating-modal-1')">Puan Ver</button>
</div>
</main>
</main>
<!-- Register Modal -->
<div id="register-modal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('register-modal')">×</span>
<h2>Kayıt Ol</h2>
<form method="POST" action="register.php">
<table id="colors">
<tr><td><label for="name">İsim:</label></td></tr>
<tr><td><input type="text" id="name" required></td></tr>
<tr><td><label for="surname">Soyisim:</label></td>
<tr><td><input type="text" id="surname" required></td></tr>
<tr><td><label for="age">Yaş:</label></td></tr>
<tr><td><input type="number" id="age" required></td></tr>
<tr><td><label for="birthday">Doğum Günü:</label></td></tr>
<tr><td><input type="date" id="birthday" required></td></tr>
<tr><td><label for="gender">Cinsiyet:</label></td></tr>
<tr><td><select id="gender" required>
<option value="male">Erkek</option>
<option value="female">Kadın</option>
</select></td></tr>
<tr><td><label for="username">Kullanıcı Adı:</label></td></tr>
<tr><td><input type="text" id="username" required></td></tr>
<tr><td><label for="password">Şifre:</label></td></tr>
<tr><td><input type="password" id="password" required></td></tr>
<tr><td><input type="submit" value="Kayıt Ol"></td></tr>
</table>
</form>
</div>
</div>
<!-- User Login Modal -->
<div id="login-modal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('login-modal')">×</span>
<h2>Giriş Yap</h2>
<form method="POST" action="login.php">
<input type="text" name="username" placeholder="Kullanıcı Adı" required><br><br>
<input type="password" name="password" placeholder="Şifre" required><br><br>
<input type="submit" value="Giriş">
</form>
</div>
</div>
<!-- Admin Login Modal -->
<div id="admin-login-modal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('admin-login-modal')">×</span>
<h2>Admin Girişi</h2>
<form method="POST" action="admin-login.php">
<input type="text" name="username" placeholder="Kullanıcı Adı" required><br><br>
<input type="password" name="password" placeholder="Şifre" required><br><br>
<input type="submit" value="Admin Giriş">
</form>
</div>
</div>
<!-- Comment Modal -->
<div id="comment-modal-1" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('comment-modal-1')">×</span>
<h2>Yorum Yap</h2>
<form method="POST" action="comment.php">
<textarea name="comment" placeholder="Yorumunuzu buraya girin" required></textarea><br><br>
<input type="submit" value="Gönder">
</form>
</div>
</div>
<!-- Rating Modal -->
<div id="rating-modal-1" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal('rating-modal-1')">×</span>
<h2>Oy Ver</h2>
<form method="POST" action="rating.php">
<select name="rating" required>
<option value="">Puan Seçin</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select><br><br>
<input type="submit" value="Oy Ver">
</form>
</div>
</div>
<script>
function openModal(modalId) {
var modal = document.getElementById(modalId);
modal.style.display = "block";
}
function closeModal(modalId) {
var modal = document.getElementById(modalId);
modal.style.display = "none";
}
</script>
</body>
</html>