Spaces:
Sleeping
Sleeping
File size: 3,368 Bytes
bfd0858 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
<!DOCTYPE html>
<html>
<head>
<title>caNanoWiki AI</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #001f3f; /* Dark blue */
color: #fff;
margin: 0;
padding: 20px;
}
h1 {
font-size: 32px;
text-align: center;
margin-bottom: 40px;
}
.logo {
display: block;
margin: 0 auto;
margin-bottom: 40px;
width: 200px;
}
form {
text-align: center;
margin-bottom: 40px;
}
label {
display: block;
font-size: 20px;
margin-bottom: 10px;
}
input[type="text"] {
font-size: 18px;
padding: 10px;
width: 500px;
border-radius: 10px;
}
button {
font-size: 18px;
padding: 10px 20px;
background-color: #00bfff;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
margin-top: 10px;
}
button:hover {
background-color: #0088cc;
}
.result {
background-color: #fff;
color: #000;
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
margin: 0 auto;
max-width: 600px;
}
.loading {
font-size: 18px;
text-align: center;
margin-bottom: 20px;
}
.another-box.folded {
display: flex;
justify-content: center;
align-items: center;
background-color: #999;
color: #fff;
border-radius: 10px;
padding: 20px;
cursor: pointer;
/* Additional styling for the folded state */
}
.another-box {
background-color: #fff;
color: #000;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
margin-top: 20px;
/* Additional styling for the unfolded state */
}
</style>
</head>
<body>
<h1>Welcome to caNanoWiki Personal Digital Asistant</h1>
<img src="{{ url_for('static', filename='caNanoLablogo.jpg') }}" alt="caNanoWiki AI Logo" class="logo">
<form method="POST" action="/">
<label for="user_input">How can I help?</label>
<input type="text" id="user_input" name="user_input" value="{{ user_input }}" autofocus>
<br>
<button type="submit">Search</button>
</form>
{% if processing %}
<p class="loading">Working on it...</p>
{% endif %}
{% if processed_input %}
<div class="result">
<p>{{ processed_input }}</p>
</div>
<div class="Source-Info" onclick="toggleFoldedState(this)">
<h2>Selected Wiki Sources</h2>
<p>{{ source_sections | nl2br | safe }}</p>
</div>
{% else %}
<div class="result" style="display: none;"></div>
{% endif %}
<script>
function toggleFoldedState(element) {
element.classList.toggle('folded');
}
</script>
</body>
</html>
|