Remove search temporarilly

This commit is contained in:
Michał 2022-08-13 12:17:59 +00:00
parent cd0c829e07
commit 982341bfe5
4 changed files with 95 additions and 5 deletions

View file

@ -1,5 +1,3 @@
<?php include "ui/required.php"; ?>
<!DOCTYPE html>
<html>
<head>
@ -31,7 +29,10 @@
<link rel='stylesheet' href='Flyout/flyout.css'>
</head>
<body>
<?php include "ui/nav.php"; ?>
<?php
include "ui/required.php";
include "ui/nav.php";
?>
<div class="about-root">
<h2 id="about">What is Fluffys Amazing Gallery?</h2>

View file

@ -576,6 +576,39 @@ nav .btn {
font-family: "Secular One", sans-serif;
}
/*
|-------------------------------------------------------------
| SEARCH
|-------------------------------------------------------------
*/
.search-root {
margin-bottom: 1rem;
padding: 0.5rem;
width: calc(100% - 1.4rem);
background-color: #151515;
color: #E8E3E3;
border-radius: 0rem;
border: 0.2rem solid #8C977D;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.search-root > * {
margin-top: 0;
margin-bottom: 0.5rem;
}
.search-root h1,
.search-root h2,
.search-root h3,
.search-root h4,
.search-root h5 {
font-family: "Lexend Deca", sans-serif;
}
.search-root p,
.search-root a,
.search-root button,
.search-root input {
font-family: "Secular One", sans-serif;
}
/*
|-------------------------------------------------------------
| FOOTER

View file

@ -234,4 +234,14 @@
.password-reset-root {
@include defaultDecoration($red);
@include defaultFont();
}
/*
|-------------------------------------------------------------
| SEARCH
|-------------------------------------------------------------
*/
.search-root {
@include defaultDecoration($green);
@include defaultFont();
}

View file

@ -1,5 +1,5 @@
<?php
if (isset($_GET['q']) && !empty($_GET['q'])) {
/*if (isset($_GET['q']) && !empty($_GET['q'])) {
// Make search into an array
$search_array = explode(" ", $_GET['q']);
@ -21,5 +21,51 @@ if (isset($_GET['q']) && !empty($_GET['q'])) {
echo "<a href='image.php?id=".$image['id']."'><img class='gallery-image' loading='lazy' src='".$image_path."' id='".$image['id']."'></a>";
echo "</div>";
}
}
}*/
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lynx Gallery</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/normalise.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
<!-- JQuery -->
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous">
</script>
<!-- Sniffle script! -->
<script src="Sniffle/sniffle.js"></script>
<link rel='stylesheet' href='Sniffle/sniffle.css'>
<!-- Flyout script! -->
<script src="Flyout/flyout.js"></script>
<link rel='stylesheet' href='Flyout/flyout.css'>
</head>
<body>
<?php
include "ui/required.php";
include "ui/nav.php";
?>
<div class="search-root">
<h2>Where did the search go!</h2>
<p>Due to how it was implemented originally, it was hard to handle and work with. So I removed it.</p>
<p>It'll be coming back, but since it's going to be a lot of work it'll have to be much later.</p>
</div>
<?php include "ui/footer.php"; ?>
</body>
</html>