diff --git a/client/pages/DocsLayout.tsx b/client/pages/DocsLayout.tsx
index fb5b5f7a..cb62e1c0 100644
--- a/client/pages/DocsLayout.tsx
+++ b/client/pages/DocsLayout.tsx
@@ -30,7 +30,7 @@ const navigation = [
},
{
name: "Tutorials",
- href: "/docs/tutorials",
+ href: "/docs/tutorials",
icon: Video,
badge: "New",
},
@@ -65,24 +65,27 @@ export default function DocsLayout() {
const getBreadcrumb = () => {
const path = location.pathname;
- const segments = path.split('/').filter(Boolean);
-
+ const segments = path.split("/").filter(Boolean);
+
if (segments.length <= 1) return [];
-
+
const breadcrumbs = [];
- let currentPath = '';
-
+ let currentPath = "";
+
segments.forEach((segment, index) => {
currentPath += `/${segment}`;
- if (index > 0) { // Skip the first 'docs' segment
+ if (index > 0) {
+ // Skip the first 'docs' segment
breadcrumbs.push({
- name: segment.charAt(0).toUpperCase() + segment.slice(1).replace('-', ' '),
+ name:
+ segment.charAt(0).toUpperCase() +
+ segment.slice(1).replace("-", " "),
href: currentPath,
- isLast: index === segments.length - 1
+ isLast: index === segments.length - 1,
});
}
});
-
+
return breadcrumbs;
};
@@ -107,7 +110,11 @@ export default function DocsLayout() {
onClick={() => setSidebarOpen(!sidebarOpen)}
className="lg:hidden p-2 text-white bg-slate-800 rounded-md"
>
- {sidebarOpen ?
{metric.name}
-- {metric.value}{metric.unit} +
+ {metric.value} + {metric.unit}
{service.description}
++ {service.description} +
Response Time
-{service.responseTime}ms
++ {service.responseTime}ms +
Uptime
-{service.uptime}
++ {service.uptime} +
- Response times have returned to normal after brief degradation + Response times have returned to normal after brief + degradation
2 hours ago • Resolved
- Database optimization and security updates applied successfully + Database optimization and security updates applied + successfully
1 day ago • Resolved diff --git a/client/pages/Tutorials.tsx b/client/pages/Tutorials.tsx index d416b969..bfc6aa9c 100644 --- a/client/pages/Tutorials.tsx +++ b/client/pages/Tutorials.tsx @@ -1,6 +1,12 @@ import { useState } from "react"; import Layout from "@/components/Layout"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -31,7 +37,7 @@ interface Tutorial { title: string; description: string; category: string; - difficulty: 'beginner' | 'intermediate' | 'advanced'; + difficulty: "beginner" | "intermediate" | "advanced"; duration: string; author: string; rating: number; @@ -47,7 +53,8 @@ const tutorials: Tutorial[] = [ { id: "1", title: "Getting Started with AeThex Platform", - description: "Complete beginner's guide to navigating and using the AeThex development platform", + description: + "Complete beginner's guide to navigating and using the AeThex development platform", category: "Platform", difficulty: "beginner", duration: "15 min", @@ -56,13 +63,15 @@ const tutorials: Tutorial[] = [ views: 2847, likes: 234, tags: ["getting-started", "platform", "basics"], - thumbnail: "https://images.unsplash.com/photo-1611224923853-80b023f02d71?w=400", - isNew: true + thumbnail: + "https://images.unsplash.com/photo-1611224923853-80b023f02d71?w=400", + isNew: true, }, { - id: "2", + id: "2", title: "Building Your First Game with Unity & AeThex", - description: "Step-by-step tutorial for creating a 2D platformer game using Unity and AeThex tools", + description: + "Step-by-step tutorial for creating a 2D platformer game using Unity and AeThex tools", category: "Game Development", difficulty: "beginner", duration: "45 min", @@ -71,12 +80,14 @@ const tutorials: Tutorial[] = [ views: 1923, likes: 187, tags: ["unity", "2d", "platformer", "game-dev"], - thumbnail: "https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=400" + thumbnail: + "https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=400", }, { id: "3", title: "Advanced AI Integration Patterns", - description: "Learn how to integrate advanced AI systems into your projects using AeThex AI tools", + description: + "Learn how to integrate advanced AI systems into your projects using AeThex AI tools", category: "AI/ML", difficulty: "advanced", duration: "60 min", @@ -85,13 +96,15 @@ const tutorials: Tutorial[] = [ views: 856, likes: 98, tags: ["ai", "machine-learning", "integration", "advanced"], - thumbnail: "https://images.unsplash.com/photo-1507146426996-ef05306b995a?w=400", - isPremium: true + thumbnail: + "https://images.unsplash.com/photo-1507146426996-ef05306b995a?w=400", + isPremium: true, }, { id: "4", title: "Database Design Best Practices", - description: "Master database architecture and optimization for high-performance applications", + description: + "Master database architecture and optimization for high-performance applications", category: "Backend", difficulty: "intermediate", duration: "35 min", @@ -100,12 +113,14 @@ const tutorials: Tutorial[] = [ views: 1456, likes: 142, tags: ["database", "sql", "optimization", "backend"], - thumbnail: "https://images.unsplash.com/photo-1544383835-bda2bc66a55d?w=400" + thumbnail: + "https://images.unsplash.com/photo-1544383835-bda2bc66a55d?w=400", }, { id: "5", title: "UI/UX Design for Games", - description: "Create compelling user interfaces and experiences for modern games", + description: + "Create compelling user interfaces and experiences for modern games", category: "Design", difficulty: "intermediate", duration: "40 min", @@ -114,12 +129,14 @@ const tutorials: Tutorial[] = [ views: 2134, likes: 203, tags: ["ui", "ux", "design", "games"], - thumbnail: "https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=400" + thumbnail: + "https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=400", }, { id: "6", title: "Performance Optimization Techniques", - description: "Advanced strategies for optimizing application performance and reducing load times", + description: + "Advanced strategies for optimizing application performance and reducing load times", category: "Performance", difficulty: "advanced", duration: "50 min", @@ -128,9 +145,10 @@ const tutorials: Tutorial[] = [ views: 987, likes: 124, tags: ["performance", "optimization", "advanced"], - thumbnail: "https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=400", - isNew: true - } + thumbnail: + "https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=400", + isNew: true, + }, ]; const categories = [ @@ -151,30 +169,45 @@ export default function Tutorials() { const getDifficultyColor = (difficulty: string) => { switch (difficulty) { - case 'beginner': return 'bg-green-500'; - case 'intermediate': return 'bg-yellow-500'; - case 'advanced': return 'bg-red-500'; - default: return 'bg-gray-500'; + case "beginner": + return "bg-green-500"; + case "intermediate": + return "bg-yellow-500"; + case "advanced": + return "bg-red-500"; + default: + return "bg-gray-500"; } }; const getDifficultyTextColor = (difficulty: string) => { switch (difficulty) { - case 'beginner': return 'text-green-400'; - case 'intermediate': return 'text-yellow-400'; - case 'advanced': return 'text-red-400'; - default: return 'text-gray-400'; + case "beginner": + return "text-green-400"; + case "intermediate": + return "text-yellow-400"; + case "advanced": + return "text-red-400"; + default: + return "text-gray-400"; } }; - const filteredTutorials = tutorials.filter(tutorial => { - const matchesSearch = tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || - tutorial.tags.some(tag => tag.toLowerCase().includes(searchTerm.toLowerCase())); - const matchesCategory = selectedCategory === "all" || - tutorial.category.toLowerCase().replace(/[\/\s]/g, '-') === selectedCategory; - const matchesDifficulty = selectedDifficulty === "all" || tutorial.difficulty === selectedDifficulty; - + const filteredTutorials = tutorials.filter((tutorial) => { + const matchesSearch = + tutorial.title.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.description.toLowerCase().includes(searchTerm.toLowerCase()) || + tutorial.tags.some((tag) => + tag.toLowerCase().includes(searchTerm.toLowerCase()), + ); + const matchesCategory = + selectedCategory === "all" || + tutorial.category.toLowerCase().replace(/[\/\s]/g, "-") === + selectedCategory; + const matchesDifficulty = + selectedDifficulty === "all" || + tutorial.difficulty === selectedDifficulty; + return matchesSearch && matchesCategory && matchesDifficulty; }); @@ -188,9 +221,10 @@ export default function Tutorials() { AeThex Tutorials
- Master cutting-edge development skills with our comprehensive tutorial library + Master cutting-edge development skills with our comprehensive + tutorial library
- + {/* Search and Filters */}{tutorial.description}
- +- Try adjusting your search terms or filters to find what you're looking for. + Try adjusting your search terms or filters to find what + you're looking for.
diff --git a/client/pages/docs/DocsOverview.tsx b/client/pages/docs/DocsOverview.tsx index 4d4d0674..e22605ea 100644 --- a/client/pages/docs/DocsOverview.tsx +++ b/client/pages/docs/DocsOverview.tsx @@ -1,4 +1,10 @@ -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Link } from "react-router-dom"; @@ -26,16 +32,17 @@ const quickStartCards = [ icon: Rocket, href: "/docs/getting-started", duration: "5 min read", - difficulty: "Beginner" + difficulty: "Beginner", }, { title: "First Tutorial", - description: "Follow your first interactive tutorial to build something amazing", + description: + "Follow your first interactive tutorial to build something amazing", icon: Play, href: "/docs/tutorials", duration: "15 min", difficulty: "Beginner", - isNew: true + isNew: true, }, { title: "API Integration", @@ -43,7 +50,7 @@ const quickStartCards = [ icon: Code, href: "/docs/api", duration: "10 min read", - difficulty: "Intermediate" + difficulty: "Intermediate", }, { title: "CLI Tools", @@ -51,8 +58,8 @@ const quickStartCards = [ icon: Terminal, href: "/docs/cli", duration: "8 min read", - difficulty: "Intermediate" - } + difficulty: "Intermediate", + }, ]; const resourceSections = [ @@ -61,8 +68,13 @@ const resourceSections = [ description: "Step-by-step tutorials and comprehensive guides", icon: Video, href: "/docs/tutorials", - items: ["Platform Quick Start", "Game Development", "AI Integration", "Performance Optimization"], - badge: "6 tutorials" + items: [ + "Platform Quick Start", + "Game Development", + "AI Integration", + "Performance Optimization", + ], + badge: "6 tutorials", }, { title: "API Reference", @@ -70,16 +82,21 @@ const resourceSections = [ icon: Code, href: "/docs/api", items: ["Authentication", "Project Management", "User APIs", "Webhooks"], - badge: "40+ endpoints" + badge: "40+ endpoints", }, { title: "Examples", description: "Ready-to-use code examples and templates", icon: FileText, href: "/docs/examples", - items: ["React Components", "Game Templates", "API Integration", "Deployment Scripts"], - badge: "25+ examples" - } + items: [ + "React Components", + "Game Templates", + "API Integration", + "Deployment Scripts", + ], + badge: "25+ examples", + }, ]; const featuredUpdates = [ @@ -88,20 +105,20 @@ const featuredUpdates = [ description: "Learn how to integrate cutting-edge AI features", date: "2 days ago", type: "Tutorial", - isNew: true + isNew: true, }, { title: "API v2.1 Documentation", description: "Updated API docs with new endpoints and features", date: "1 week ago", - type: "API" + type: "API", }, { title: "Performance Best Practices", description: "New guide on optimizing application performance", date: "2 weeks ago", - type: "Guide" - } + type: "Guide", + }, ]; export default function DocsOverview() { @@ -113,18 +130,28 @@ export default function DocsOverview() { Welcome to AeThex Documentation- Everything you need to build, deploy, and scale amazing projects with AeThex. - Get started with our guides, explore our APIs, and learn from comprehensive tutorials. + Everything you need to build, deploy, and scale amazing projects with + AeThex. Get started with our guides, explore our APIs, and learn from + comprehensive tutorials.
- +{update.description}
++ {update.description} +
{update.date}
@@ -267,7 +312,10 @@ export default function DocsOverview() {- Step-by-step guides and interactive tutorials to help you master AeThex + Step-by-step guides and interactive tutorials to help you master + AeThex
- + {/* Filters */}{tutorial.description}
- +- Try adjusting your search terms or filters to find what you're looking for. + Try adjusting your search terms or filters to find what you're + looking for.