mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
✨ Introduced main research page (mobile design)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="gray" class="bi bi-search" viewBox="0 0 24 24">
|
||||
<path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 340 B |
+17
-2
@@ -5,13 +5,28 @@
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" href="stylesheet.css">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome</h1>
|
||||
<?php
|
||||
include("navbar.php");
|
||||
|
||||
echo "Welcome";
|
||||
if (!isset($_POST['author'])) {
|
||||
exit();
|
||||
}
|
||||
|
||||
require_once("class/dump.php");
|
||||
|
||||
$author_name = $_POST['author'];
|
||||
|
||||
$these_array = dump::getTheseByAuthor($author_name);
|
||||
|
||||
$json = json_encode($these_array, JSON_PRETTY_PRINT);
|
||||
|
||||
echo '<pre>';
|
||||
var_dump($json);
|
||||
echo '</pre>';
|
||||
|
||||
?>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<header>
|
||||
<nav class="navbar">
|
||||
<h1>theses.fr</h1>
|
||||
<form action="index.php" method="POST" class="navbar-input">
|
||||
<input type="text" name="author" placeholder="nom auteur">
|
||||
<button>
|
||||
<img src="assets/search.svg" alt="search">
|
||||
</button>
|
||||
</form>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -0,0 +1,89 @@
|
||||
/* Extra small */
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background-color: rgba(57, 180, 231, 0.50);
|
||||
box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 5px;
|
||||
height: 75px;
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.navbar-input {
|
||||
box-shadow: rgba(0, 0, 0, 0.15) 0 2px 5px;
|
||||
border-radius: 15px;
|
||||
height: 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.navbar input {
|
||||
border-radius: 15px;
|
||||
outline: none;
|
||||
border: none;
|
||||
height: 100%;
|
||||
font-size: 18px;
|
||||
padding: 15px 5px 15px 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.navbar img {
|
||||
background: white;
|
||||
border-radius: 100px;
|
||||
width: 50px;
|
||||
right: 5px;
|
||||
padding: 10px;
|
||||
box-shadow: rgba(0, 0, 0, 0.15) 4px 2px 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.navbar button {
|
||||
border: none;
|
||||
background: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navbar h1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
/* Small */
|
||||
@media (min-width: 576px) {
|
||||
|
||||
}
|
||||
|
||||
/* Medium */
|
||||
@media (min-width: 768px) {
|
||||
|
||||
}
|
||||
|
||||
/* Large */
|
||||
@media (min-width: 992px) {
|
||||
|
||||
}
|
||||
|
||||
/* Extra large */
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user