mirror of
https://github.com/ClaytonWWilson/FightHub.git
synced 2025-12-15 15:18:46 +00:00
Titlebar for index.php completed
This commit is contained in:
parent
7a91f187bb
commit
974ec9b655
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
27
index.php
Normal file → Executable file
27
index.php
Normal file → Executable file
@ -1,23 +1,20 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>PHP Test</title>
|
<title>FightHub - Home</title>
|
||||||
|
<link rel="stylesheet" href="main.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php echo '<p>Hello World</p>';
|
<form action="search.php">
|
||||||
|
<h1 class="title-text">FightHub</h1>
|
||||||
|
<input type="text" name="query" class="search" placeholder="Search..">
|
||||||
|
<input type="submit" name="submit" class="submit" value="Search">
|
||||||
|
</form>
|
||||||
|
|
||||||
// In the variables section below, replace user and password with your own MySQL credentials as created on your server
|
|
||||||
$servername = "localhost";
|
|
||||||
$username = "fighthubuser";
|
|
||||||
$password = "cC33dC8W";
|
|
||||||
|
|
||||||
// Create MySQL connection
|
|
||||||
$conn = mysqli_connect($servername, $username, $password);
|
|
||||||
|
|
||||||
// Check connection - if it fails, output will include the error message
|
|
||||||
if (!$conn) {
|
|
||||||
die('<p>Connection failed: <p>' . mysqli_connect_error());
|
|
||||||
}
|
<!-- This is where php code for loading preview videos below the titlebar will go -->
|
||||||
echo '<p>Connected successfully</p>';
|
</body>
|
||||||
?>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
34
main.css
Executable file
34
main.css
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
body {
|
||||||
|
background-color: #1E1E1E;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
form {
|
||||||
|
width: 100%;
|
||||||
|
height: 150px;
|
||||||
|
/* border: black solid 1px; */
|
||||||
|
border-bottom: #727272 solid 2px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
float: left;
|
||||||
|
margin-top: 28px;
|
||||||
|
padding-right: 20px;
|
||||||
|
color: #FF3D53;
|
||||||
|
font-family: "Calibri";
|
||||||
|
font-size: 50pt;
|
||||||
|
}
|
||||||
|
.search {
|
||||||
|
width: 60%;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
margin-top: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit {
|
||||||
|
width: 150px;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
/* float: left; */
|
||||||
|
}
|
||||||
0
old_index.html
Normal file → Executable file
0
old_index.html
Normal file → Executable file
Loading…
Reference in New Issue
Block a user