Added a header to index
This commit is contained in:
parent
8849b80d84
commit
d0af4a5eeb
6 changed files with 153 additions and 90 deletions
BIN
py/static/img/logo.png
Normal file
BIN
py/static/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
|
@ -1,6 +1,6 @@
|
|||
/* Color Variables */
|
||||
:root {
|
||||
--background-color: black;
|
||||
--background-color: white;
|
||||
--text-color: white;
|
||||
--font-family: Arial, sans-serif;
|
||||
--history-background-color: rgb(0, 0, 48);
|
||||
|
@ -23,13 +23,14 @@
|
|||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
/* Disable Scrolling */
|
||||
|
||||
html, body {
|
||||
height: 100vh;
|
||||
overflow: hidden; /* Prevent scrolling */
|
||||
}
|
||||
/* Body Styling */
|
||||
body {
|
||||
margin-top: 1em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -37,6 +38,41 @@ body {
|
|||
color: var(--text-color);
|
||||
font-family: var(--font-family);
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: var(--background-color); /* Use the background color variable */
|
||||
color: black; /* Use the text color variable */
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 10px 20px; /* Add some padding for spacing */
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
|
||||
z-index: 1000; /* Ensure the header is above other content */
|
||||
font-family: var(--font-family); /* Use the font family variable */
|
||||
}
|
||||
|
||||
header li {
|
||||
display: inline-block;
|
||||
margin: 0 15px; /* Add spacing between list items */
|
||||
}
|
||||
|
||||
header img {
|
||||
height: 2em;
|
||||
vertical-align: middle; /* Align image with text */
|
||||
}
|
||||
|
||||
header a {
|
||||
color: black; /* Ensure links are white */
|
||||
text-decoration: none; /* Remove underline from links */
|
||||
transition: color 0.3s; /* Smooth transition for hover effect */
|
||||
}
|
||||
|
||||
header a:hover {
|
||||
color: var(--input-button-color); /* Change color on hover for better interaction */
|
||||
}
|
||||
|
||||
/* Container Grid Layout */
|
||||
.container {
|
||||
display: grid;
|
||||
|
|
13
py/templates/contact.html
Normal file
13
py/templates/contact.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/static/styles.css">
|
||||
<title>AI Assistant</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
0
py/templates/faq.html
Normal file
0
py/templates/faq.html
Normal file
|
@ -9,6 +9,21 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/static/templates/index.html">
|
||||
<img src="/static/img/logo.png" alt="logo.png">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/static/template/contact.html">Contact</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/static/template/faq.html">FAQ</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<!-- Main container for the layout -->
|
||||
<div class="container">
|
||||
|
||||
|
|
|
@ -28,6 +28,5 @@ class Voice:
|
|||
except Exception as e:
|
||||
text = "ERROR"
|
||||
return text
|
||||
print(listen())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue