Merge pull request 'modifyed the css' (#30) from sageTheDm/ai-virtual-assistant:main into main
Reviewed-on: https://interstellardevelopment.org/code/code/React-Group/ai-virtual-assistant/pulls/30
This commit is contained in:
commit
c0282041af
3 changed files with 104 additions and 33 deletions
|
@ -252,7 +252,7 @@ header a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Form styling */
|
/* Form styling */
|
||||||
form {
|
#contactForm {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background: var(--input-background-color); /* Use the input background color variable */
|
background: var(--input-background-color); /* Use the input background color variable */
|
||||||
|
@ -261,14 +261,14 @@ form {
|
||||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
|
||||||
}
|
}
|
||||||
|
|
||||||
form label {
|
#contactForm label {
|
||||||
color: var(--text-color); /* Use the text color variable */
|
color: var(--text-color); /* Use the text color variable */
|
||||||
display: block; /* Ensure labels are block elements */
|
display: block; /* Ensure labels are block elements */
|
||||||
margin-bottom: 5px; /* Add some space below labels */
|
margin-bottom: 5px; /* Add some space below labels */
|
||||||
}
|
}
|
||||||
|
|
||||||
form input,
|
#contactForm input,
|
||||||
form textarea {
|
#contactForm textarea {
|
||||||
color: var(--text-color); /* Use the text color variable */
|
color: var(--text-color); /* Use the text color variable */
|
||||||
background-color: var(--history-background-color); /* Use a contrasting background */
|
background-color: var(--history-background-color); /* Use a contrasting background */
|
||||||
border: 1px solid var(--input-button-color); /* Use the input button color for borders */
|
border: 1px solid var(--input-button-color); /* Use the input button color for borders */
|
||||||
|
@ -278,7 +278,7 @@ form textarea {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
form button {
|
#contactForm button {
|
||||||
background-color: var(--input-button-color); /* Use the input button color */
|
background-color: var(--input-button-color); /* Use the input button color */
|
||||||
color: var(--background-color); /* Use the background color for text */
|
color: var(--background-color); /* Use the background color for text */
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -288,6 +288,49 @@ form button {
|
||||||
transition: background-color 0.3s; /* Smooth transition for hover effect */
|
transition: background-color 0.3s; /* Smooth transition for hover effect */
|
||||||
}
|
}
|
||||||
|
|
||||||
form button:hover {
|
#contactForm button:hover {
|
||||||
background-color: var(--input-button-hover-color); /* Use the hover color variable */
|
background-color: var(--input-button-hover-color); /* Use the hover color variable */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FAQ Section */
|
||||||
|
#faq {
|
||||||
|
max-width: 800px;
|
||||||
|
width: 90%;
|
||||||
|
margin-top: 50px;
|
||||||
|
padding: 20px;
|
||||||
|
background-color: #222;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
#faq h2 {
|
||||||
|
text-align: center;
|
||||||
|
color: #00ccff;
|
||||||
|
font-size: 2em;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.faq-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.faq-item h3 {
|
||||||
|
color: #00ccff;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.faq-item p {
|
||||||
|
color: #ddd;
|
||||||
|
font-size: 1.1em;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add some hover effects for the FAQ items */
|
||||||
|
.faq-item:hover {
|
||||||
|
background-color: #444;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/static/styles.css">
|
<link rel="stylesheet" href="/static/styles.css">
|
||||||
<title>AI Assistant</title>
|
<title>AI Assistant - FAQ</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -20,11 +20,39 @@
|
||||||
<a href="/contact">Contact</a>
|
<a href="/contact">Contact</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/faq.html">FAQ</a>
|
<a href="/faq">FAQ</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<section id="faq">
|
||||||
|
<h2>Frequently Asked Questions</h2>
|
||||||
|
|
||||||
|
<div class="faq-item">
|
||||||
|
<h3>What is this AI assistant for?</h3>
|
||||||
|
<p>This AI assistant helps you with various tasks such as answering questions, generating text, and even helping with code or writing tasks.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="faq-item">
|
||||||
|
<h3>How does the AI assistant work?</h3>
|
||||||
|
<p>The assistant uses machine learning algorithms to understand your input and provide contextually relevant answers or generate content based on the task you've described.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="faq-item">
|
||||||
|
<h3>Can I trust the answers given by the AI assistant?</h3>
|
||||||
|
<p>While the AI strives to give accurate and helpful answers, it is important to verify critical information, especially for complex or sensitive queries.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="faq-item">
|
||||||
|
<h3>What kind of questions can I ask?</h3>
|
||||||
|
<p>You can ask a wide range of questions from simple factual queries to more complex requests like generating creative writing or code snippets.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="faq-item">
|
||||||
|
<h3>Is my data secure when using the AI assistant?</h3>
|
||||||
|
<p>We take privacy seriously. Your data is handled according to our privacy policy, ensuring that any personal information shared is securely processed and not misused.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<a href="/contact">Contact</a>
|
<a href="/contact">Contact</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/faq.html">FAQ</a>
|
<a href="/faq">FAQ</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue