From 283ad650eaae72cdbef0b5f1eb12256a56283cd7 Mon Sep 17 00:00:00 2001 From: Brandon George Date: Sun, 5 Dec 2021 15:39:25 -0500 Subject: [PATCH] Header fixed --- .gitignore | 2 ++ account/login.php | 2 +- catalog/uploadBooks.php | 2 +- includes/dbconnect.inc.php | 2 +- includes/header.inc.php | 10 ++++++---- styles/general.css | 39 +++++++++++++++----------------------- 6 files changed, 26 insertions(+), 31 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fbaf88 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +includes/dbconnect.inc.php diff --git a/account/login.php b/account/login.php index 14c3160..ba651e1 100644 --- a/account/login.php +++ b/account/login.php @@ -48,7 +48,7 @@ - +

Login

diff --git a/catalog/uploadBooks.php b/catalog/uploadBooks.php index f05cea9..e2675e6 100644 --- a/catalog/uploadBooks.php +++ b/catalog/uploadBooks.php @@ -76,7 +76,7 @@ - +

Sell Book

diff --git a/includes/dbconnect.inc.php b/includes/dbconnect.inc.php index ae87dab..916144d 100644 --- a/includes/dbconnect.inc.php +++ b/includes/dbconnect.inc.php @@ -3,7 +3,7 @@ $dbhost = 'localhost'; $dbuser = 'root'; - $dbpassword = ''; + $dbpassword = 'root'; $dbname = 'textbook_buddy'; @ $db = new mysqli($dbhost, $dbuser, $dbpassword, $dbname); diff --git a/includes/header.inc.php b/includes/header.inc.php index 3c6bbd4..1284bb3 100644 --- a/includes/header.inc.php +++ b/includes/header.inc.php @@ -1,8 +1,10 @@

Textbook Buddy

-
\ No newline at end of file diff --git a/styles/general.css b/styles/general.css index 94afb68..5f7a79b 100644 --- a/styles/general.css +++ b/styles/general.css @@ -17,21 +17,21 @@ COLOR PALETTE -- CSS HEX } header { - font-variant: small-caps; - height: 75px; + font-variant: small-caps; + height: 3.5vw; + display: flex; font-weight: bold; + border: 4px solid rgba(241, 239, 239, 0.555); + background-color: rgba(241, 239, 239, 0.555); color: black; align-items: center; justify-content: space-between; - border: 4px solid rgba(241, 239, 239, 0.555); - background-color: rgba(241, 239, 239, 0.555); } header h1 { font-size: 40px; - position: absolute; + padding: 0 0 0 20px; color: black; - padding: 0 0 0 1vw; } header a { @@ -70,30 +70,21 @@ header a { justify-content: center; } -/* header menu items */ -.logo { - float:left; - padding: 25px 0 5px 20px; - color: #449fee; -} - .hmenu { - text-align: center; - float: right; - position: absolute; - top: 6px; - right: 10px; + text-align: center; + display: flex; } .hmenu a { color: black; - text-decoration: none; - padding: 0 3px 0 3px; + text-decoration: none; + padding: 0 2.5vw 0 2.5vw; } - .hmenu li { + font-size: 1vw; background-color: rgb(179, 177, 177); - border-radius: 10px; - padding: 0 5px 0 5px; + border-radius: 25%; display: inline-block; - list-style: none; + width: 8vw; + height: 1.5vw; + list-style: none; } \ No newline at end of file