Skip to content

Commit f5552bd

Browse files
committed
new features on website
1 parent 46a8d61 commit f5552bd

File tree

5 files changed

+84
-2
lines changed

5 files changed

+84
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React from 'react';
2+
3+
export default function ContextAwarenessSection() {
4+
return (
5+
<div className="py-16 px-4 md:px-8 max-w-6xl mx-auto" id="context-awareness">
6+
<h3 className="text-4xl font-semibold mb-4 text-emerald-400">
7+
Context Awareness
8+
</h3>
9+
<div className="mt-10 space-y-8 text-gray-300">
10+
<div>
11+
<h3 className="text-2xl font-semibold text-white mb-4">Persistent Conversation Context</h3>
12+
<p className="mb-4">
13+
Yappus Terminal maintains context between your queries, enabling more coherent and relevant AI responses.
14+
The terminal preserves conversation history, allowing the AI to reference previous exchanges and provide
15+
more accurate answers based on the full context of your conversation.
16+
</p>
17+
18+
<div className="bg-gray-800 rounded-lg p-4 font-mono text-sm mt-4">
19+
<p className="text-green-400">$ yappus What is JavaScript?</p>
20+
<p className="text-gray-400 mt-2">JavaScript is a programming language commonly used for web development...</p>
21+
<p className="text-green-400 mt-3">$ yappus What about TypeScript?</p>
22+
<p className="text-gray-400 mt-2">TypeScript is a superset of JavaScript that adds static type definitions...</p>
23+
</div>
24+
</div>
25+
26+
<div>
27+
<h3 className="text-2xl font-semibold text-white mb-4">File Context Integration</h3>
28+
<p className="mb-4">
29+
Yappus seamlessly incorporates file content into your AI conversations. Reference files using
30+
the <code className="bg-gray-700 px-1 rounded">/file</code> command to make them part of the
31+
conversation context.
32+
</p>
33+
34+
<div className="bg-gray-800 rounded-lg p-4 font-mono text-sm mt-4">
35+
<p className="text-green-400">$ yappus /file src/utils.js</p>
36+
<p className="text-gray-400 mt-2">File content added to conversation context.</p>
37+
<p className="text-green-400 mt-3">$ yappus What does the parseConfig function do?</p>
38+
<p className="text-gray-400 mt-2">The parseConfig function in your utils.js file parses the JSON configuration...</p>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
);
44+
}

yappus-website/src/components/docs/DocumentationSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import HistorySection from "./HistorySection";
55
import ConfigSection from "./ConfigSection";
66
import CommandsSection from "./CommandsSection";
77
import ExamplesSection from "./ExamplesSection";
8-
8+
import ContextAwarenessSection from "./ContextAwarenessSection";
99
export default function DocumentationSection() {
1010
return (
1111
<section id="docs" className="px-4 py-20 max-w-7xl mx-auto">
@@ -19,6 +19,7 @@ export default function DocumentationSection() {
1919
<HistorySection />
2020
<ConfigSection />
2121
<CommandsSection />
22+
<ContextAwarenessSection/>
2223
<ExamplesSection />
2324
</div>
2425
</section>

yappus-website/src/components/docs/ExamplesSection.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export default function ExamplesSection() {
2424
query="Explain the difference between tar and zip"
2525
response="TAR: Archive tool that bundles files without compression by default. Add compression with flags like -z (gzip). Good for preserving Unix permissions.\n\nZIP: Both archives and compresses files. Better cross-platform compatibility with Windows. Allows adding/extracting single files without processing the whole archive."
2626
/>
27+
<ExampleQuery
28+
query="Code Analysis with File Context"
29+
response={`$ yappus /file src/app.js
30+
File content added to conversation context.
31+
$ yappus What could be improved in this code?
32+
Based on the file content, here are some suggestions:
33+
1. Add input validation for the user data
34+
2. Implement error handling for the API calls
35+
3. Consider using async/await instead of promises`}
36+
/>
2737
</div>
2838
</div>
2939
);

yappus-website/src/components/home/FeaturesSection.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { FaTerminal, FaHistory, FaCode } from "react-icons/fa";
2+
import { FaTerminal, FaHistory, FaCode, FaAddressBook, FaFolderOpen, FaLaptop } from "react-icons/fa";
33
import FeatureCard from "../ui/FeatureCard";
44

55
export default function FeaturesSection() {
@@ -23,6 +23,21 @@ export default function FeaturesSection() {
2323
title="Syntax Highlighting"
2424
description="Clear syntax highlighting for code blocks in your AI responses."
2525
/>
26+
<FeatureCard
27+
icon={<FaAddressBook className="text-orange-400" size={24} />}
28+
title="Context Awareness"
29+
description="Maintains conversation context across commands and integrates file contents for relevant responses."
30+
/>
31+
<FeatureCard
32+
icon={<FaLaptop className="text-green-400" size={24} />}
33+
title="Local Mode (Coming Soon)"
34+
description="Interact using a local LLM."
35+
/>
36+
<FeatureCard
37+
icon={<FaFolderOpen className="text-green-400" size={24} />}
38+
title=" File Exploration (Coming Soon)"
39+
description="Explore your file system directly using yappus."
40+
/>
2641
</div>
2742
</section>
2843
);

yappus-website/src/components/home/TerminalPreview.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ export default function TerminalPreview() {
2828
<p className="mt-1 text-yellow-400">
2929
find / -type f -size +100M -exec ls -lh {} \; | sort -rh
3030
</p>
31+
<p className="mt-4 text-gray-400">&gt; yappus /file package.json</p>
32+
<p className="mt-2 text-blue-400">
33+
Reading content from: package.json
34+
This `package.json` file is the project&apos;s manifest. It describes the project&apos;s name, version, dependencies, and scripts. Essentially, it tells your computer (and tools like Node.js) everything it needs to know about the project to build and run it. Specifically, this one for a Next.js site using various frontend libraries..
35+
</p>
36+
<p className="text-gray-400 mt-4">&gt; yappus What dependencies does this project use?</p>
37+
<p className="mt-2 text-blue-400">
38+
Based on your package.json, this project uses:
39+
- React v18.2.0
40+
- Next.js v13.4.1
41+
- TailwindCSS v3.3.2
42+
</p>
3143
<p className="text-gray-400 mt-4">&gt; _</p>
3244
</div>
3345
</div>

0 commit comments

Comments
 (0)