We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent73c84da commit9d9b237Copy full SHA for 9d9b237
res/styles/styles.css
@@ -287,10 +287,10 @@ ol {
287
margin-right:60px;
288
}
289
290
-#search>svg {
+#search>label {
291
position: absolute;
292
-top:10px;
293
-left:15px;
+top:calc(50%-0.5em);
+left:10px;
294
295
296
#search>input {
@@ -349,26 +349,60 @@ ol {
349
padding:5px;
350
351
352
+.menubtn {
353
+background-color:rgba(255,255,255,0);
354
+border:0;
355
+color: white;
356
+display: none;
357
+transition:0.3s;
358
+}
359
+
360
+.menubtn:hover {
361
+cursor: pointer;
362
+color:rgb(176,176,176);
363
364
365
@mediaonly screenand (max-width:1000px) {
366
nav {
367
justify-content: center;
368
align-items: center;
-flex-direction:column;
369
+flex-direction:row;
370
gap:30px;
371
372
373
+ .menubtn {
374
+display: block;
375
+ }
376
377
navul {
378
379
380
381
382
383
+ .navigationulli {
384
385
386
387
+ .navigation.responsive {
388
+flex-direction: column;
389
390
391
+ .navigation.responsiveul {
392
393
394
395
+ .navigation.responsiveulli {
396
397
398
399
header {
-height:85vh;
400
+height:65vh;
401
402
403
.post_container {
404
width:80%;
405
406
407
408
src/components/footer.php
@@ -27,4 +27,12 @@
27
</div>
28
<p>© All rights reserved.</p>
29
30
-</footer>
+</footer>
31
+<script>
32
+constnavToggle=document.querySelector(".menubtn");
33
+constlinks=document.querySelector(".navigation");
34
35
+navToggle.addEventListener('click',function() {
36
+links.classList.toggle("responsive");
37
+ })
38
+</script>
src/components/navigation.php
@@ -5,15 +5,13 @@
5
6
7
?>
8
-<nav>
+<nav>
9
<h1><a href="index.php"><span style="color: #ffd68a">My</span>Blog</a></h1>
10
<ul>
11
<form action="index.php" method="GET">
12
<li id="search">
13
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
14
- <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" />
15
- </svg>
16
- <input name="title" placeholder="Search posts by title..." type="text" />
+ <input id="searchfield" name="title" placeholder="Search posts by title..." type="text" />
+ <label for="searchfield" class="fa fa-search"></label>
17
</li>
18
</form>
19
@@ -33,6 +31,5 @@
</ul>
-
+ <button class="menubtn"><i class="fa fa-bars"></i></button>
</nav>
src/delete.php
@@ -41,5 +41,9 @@
41
42
43
44
+ }else {
45
+header("location: index.php");
46
47
+}else {
48
49
src/index.php
@@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MyBlog</title>
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="../res/styles/styles.css">
</head>
src/login.php
src/post.php
src/register.php
src/write.php
@@ -7,7 +7,7 @@
<script src="https://cdn.tiny.cloud/1/adnsso6g17in5iv9sfg1smj0xha8nu0nwg0euskp3hh0g6vt/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({