Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 26 additions & 35 deletions views/mainPages/chatbot.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<script src="/Assets/Scripts/main.js"></script>
<script src="/Assets/Scripts/logout.js"></script>
<style>
:root {
--base-font-size: 16px;
--border-color: #555;
--primary-color: #4caf50;
--danger-color: #f44336;
}

.btn {
outline: 0;
padding: 8px 16px;
Expand Down Expand Up @@ -87,16 +94,6 @@
}

:root {
--bg-dark: #0d1117;
--bg-medium: #151b23;
--bg-light: #444;
--border-color: #555;
--text-light: #d4d4d4;
--primary-color: #007bff;
--primary-hover: #0056b3;
--user-message: #212d3e;
--ai-message: transparent;
--transition-speed: 0.3s;
--main-border-color: #3d444d;
}

Expand Down Expand Up @@ -177,8 +174,7 @@

.chat-list-item {
background-color: transparent;
border: .1rem solid var(--main-border-color);
color: white;
border-width: .1rem;
padding: 10px;
margin-bottom: 5px;
border-radius: 5px;
Expand Down Expand Up @@ -220,7 +216,7 @@
}

.chat-header {
background-color: var(--bg-medium);
background-color: var(--header-bg);
padding: 15px;
border-bottom: 1px solid var(--border-color);
display: flex;
Expand Down Expand Up @@ -251,12 +247,12 @@
flex-grow: 1;
overflow-y: auto;
padding: 10px;
background-color: var(--bg-dark);
background-color: var(--bg-color);
}

.chat-input-container {
padding: 10px;
background-color: var(--bg-medium);
background-color: var(--header-bg);
border-top: 1px solid var(--border-color);
}

Expand All @@ -270,7 +266,7 @@
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 5px;
background-color: var(--bg-medium);
background-color: var(--header-bg);
color: var(--text-light);
transition: border-color 0.2s ease;
}
Expand Down Expand Up @@ -492,7 +488,7 @@
.profile-menu .fas {
font-size: 35px;
cursor: pointer;
color: #fff;
color: var(--user-profile-color);
}

.dropdown-content {
Expand Down Expand Up @@ -568,19 +564,6 @@
}
</style>
<style>
:root {
--base-font-size: 16px;
--bg-color: #2c2c2c;
--text-color: #d4d4d4;
--header-bg: #3a3a3a;
--border-color: #555;
--user-message-bg: #4caf50;
--ai-message-bg: transparent;
--ai-message-text: #000;
--primary-color: #4caf50;
--danger-color: #f44336;
}

.dark-theme {
--bg-color: #0d1117;
--text-color: #d4d4d4;
Expand All @@ -589,6 +572,7 @@
--user-message-bg: #212d3e;
--ai-message-bg: transparent;
--ai-message-text: #d4d4d4;
--user-profile-color: white;
}

.light-theme {
Expand All @@ -599,6 +583,7 @@
--user-message-bg: #4caf50;
--ai-message-bg: #e0f7fa;
--ai-message-text: #000;
--user-profile-color: grey;
}

.sepia-theme {
Expand All @@ -609,16 +594,18 @@
--user-message-bg: #a3c2a1;
--ai-message-bg: #f2e8cf;
--ai-message-text: #5e5245;
--user-profile-color: grey;
}

.contrast-theme {
--bg-color: #000000;
--text-color: #ffffff;
--header-bg: #222222;
--header-bg: #090909;
--border-color: #555555;
--user-message-bg: #00bb00;
--ai-message-bg: #eeeeee;
--ai-message-text: #000000;
--user-message-bg: transparent;
--ai-message-bg: transparent;
--ai-message-text: white;
--user-profile-color: white;
}


Expand Down Expand Up @@ -700,7 +687,7 @@
}

.chat-list-item {
background-color: #444;
background-color: transparent;
color: #fff;
padding: 10px;
margin-bottom: 5px;
Expand All @@ -722,6 +709,10 @@
border: 1px solid var(--border-color);
}

.dark-theme .chat-list-item {
border: .1rem solid var(--main-border-color);
}

.light-theme .chat-list-item:hover,
.sepia-theme .chat-list-item:hover {
background-color: #f0f0f0;
Expand Down
26 changes: 17 additions & 9 deletions views/staticPage/index.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<style>
/* Base Styles with Dark Theme */
:root {
--main-border-color: #3d444d;
--base-font-size: 16px;
--bg-color: #121212;
--text-color: #e0e0e0;
Expand Down Expand Up @@ -55,7 +56,7 @@

.container {
width: 100%;
max-width: 1200px;
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}
Expand Down Expand Up @@ -138,6 +139,20 @@
box-shadow: var(--box-shadow);
}

.btn-github {
background-color: #212830;
padding: 10px 10px !important;
border: 2px solid var(--main-border-color) !important;
color: var(--light-text);
transition: all 0.3s ease;
}

.btn-github:hover {
background-color: transparent;
border: 2px solid var(--main-border-color) !important;
color: var(--light-text);
}

/* Header & Navigation */
header {
background-color: var(--header-bg);
Expand All @@ -156,8 +171,6 @@
nav .container {
display: flex;
justify-content: space-evenly;
align-items: center;
align-content: center;
flex-wrap: nowrap;
flex-direction: row;
}
Expand Down Expand Up @@ -399,7 +412,6 @@
nav .container {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row-reverse;
}

Expand Down Expand Up @@ -484,7 +496,6 @@
<li><a href="#try-demo">Demo</a></li>
<li><a href="#developers">Developers</a></li>
<li><a href="/login"><i class="fas fa-sign-in-alt login-icon"></i> Login</a></li>
<li><a href="#try-demo" class="btn btn-primary">Try Demo</a></li>
</ul>
</div>
</nav>
Expand All @@ -498,6 +509,7 @@
<div class="hero-buttons">
<a href="#try-demo" class="btn btn-primary">Try Live Demo</a>
<a href="#details" class="btn btn-secondary">Learn Features</a>
<a href="https://github.com/MIbnEKhalid/ChatAPI" target="_blank" class="btn btn-github"><i class="fab fa-github" aria-hidden="true"></i> Open In GitHub</a>
</div>
</div>
</section>
Expand Down Expand Up @@ -566,10 +578,6 @@
<li><strong>Developer Experimentation:</strong> A platform for developers to test and integrate various
AI models and chatbot functionalities.</li>
</ol>

<div style="text-align: center; margin-top: 3rem;">
<a href="#try-demo" class="btn btn-primary">Try Live Demo</a>
</div>
</div>
</section>

Expand Down