Skip to content

Commit

Permalink
added more things to the doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
tacheraSasi committed Nov 30, 2024
1 parent dfb5df2 commit c6167f7
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 25 deletions.
4 changes: 2 additions & 2 deletions website/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ interface DocsLayoutProps {

export default function DocsLayout({ children }: DocsLayoutProps) {
return (
<div className="flex min-h-screen">
<aside className="fixed left-0 top-0 z-30 h-screen w-[350px] border-r bg-background">
<div className="flex min-h-screen max-w-screen-xl mx-auto">
<aside className="fixed left-0 top-0 z-30 h-screen w-[380px] border-r bg-background">
<ScrollArea className="h-full">
<Sidebar />
</ScrollArea>
Expand Down
2 changes: 2 additions & 0 deletions website/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Metadata } from "next"
import { DocsHeader } from "@/components/docs/docs-header"
import { Features } from "@/components/docs/features"
import { Core } from "@/components/docs/core"
import { Introduction } from "@/components/docs/Introduction"

export const metadata: Metadata = {
title: "Documentation - VintLang",
Expand All @@ -11,6 +12,7 @@ export const metadata: Metadata = {
export default function DocsPage() {
return (
<div className="space-y-10">
<Introduction/>
<DocsHeader />
<Features />
<Core />
Expand Down
12 changes: 12 additions & 0 deletions website/components/docs/Installation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'
import SectionHeader from './SectionHeader'

const Installation = () => {
return (
<div className="" id='installation'>
<SectionHeader title="Installation"/>
</div>
)
}

export default Installation
18 changes: 18 additions & 0 deletions website/components/docs/Introduction.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import SectionHeader from "./SectionHeader";

export function Introduction() {
return (
<div className="space-y-4 mt-10" id="">
<SectionHeader title="Introduction"/>
<p className="text-xl text-muted-foreground">
VintLang is a lightweight, expressive programming language designed to simplify modern development.
With its clean syntax and powerful core features, VintLang empowers developers to build anything from quick scripts
to robust enterprise-grade systems effortlessly.
</p>
<p className="text-xl text-muted-foreground">
Whether you&apos;re automating tasks, developing APIs, or crafting interactive applications, VintLang&apos;s modular and atomic
principles ensure scalability and maintainability for projects of any size.
</p>
</div>
);
}
15 changes: 15 additions & 0 deletions website/components/docs/SectionHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";

interface SectionHeaderProps{
title:string
}

const SectionHeader = ({title}:SectionHeaderProps) => {
return (
<h1 className="text-6xl font-bold tracking-tight dark:text-neutral-300">
{title}
</h1>
);
};

export default SectionHeader;
8 changes: 5 additions & 3 deletions website/components/docs/docs-header.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import SectionHeader from "./SectionHeader";

export function DocsHeader() {
return (
<div className="space-y-4">
<h1 className="text-4xl font-bold tracking-tight">Documentation</h1>
<div className="space-y-4 mt-10" id="documentation">
<SectionHeader title="Documentation"/>
<p className="text-xl text-muted-foreground">
Welcome to the VintLang v2 documentation! VintLang&apos;s atomic approach to programming
scales from a simple <code className="relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm">useState</code> replacement
to an enterprise application with complex requirements.
</p>
</div>
)
}
}


45 changes: 25 additions & 20 deletions website/components/docs/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ import { usePathname } from "next/navigation"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { Search } from "@/components/docs/search"
import { FileText, BookOpen, HelpCircle, Github,ArrowDownToLine } from 'lucide-react'
import { Hand,FileText, BookOpen, HelpCircle, Github,ArrowDownToLine } from 'lucide-react'

const navigation = [
{
name: "Introduction",
href: "#",
icon: Hand,
},
{
name: "Installation",
href: "#installation",
Expand All @@ -28,24 +33,24 @@ const navigation = [
href: "#sponsor",
icon: HelpCircle,
},
{
name: "Repository",
href: "https://github.com/ekilie/vint-lang",
icon: Github,
},
// {
// name: "Repository",
// href: "https://github.com/ekilie/vint-lang",
// icon: Github,
// },
]

export function Sidebar() {
const pathname = usePathname()

return (
<div className="flex h-full flex-col px-6 py-8">
<div className="mb-8">
<div className="flex h-full flex-col p-14">
<div className="mb-6">
<Link href="/" className="flex items-center space-x-2">
<span className="text-8xl text-neutral-300 font-bold">Vint</span>
<span className="text-9xl text-neutral-300 font-bold">Vint</span>
</Link>
<p className="mt-1 text-sm text-muted-foreground">
Primitive and flexible state management for React
Modern Programming made simple
</p>
</div>
{/* <Search /> */}
Expand All @@ -57,7 +62,7 @@ export function Sidebar() {
key={item.name}
variant={isActive ? "secondary" : "ghost"}
className={cn(
"mb-1 w-full justify-start shadow-lg",
"mb-2 w-full p-6 justify-start shadow-lg rounded-lg border-2",
isActive ? "bg-accent" : "hover:bg-accent/50"
)}
asChild
Expand All @@ -71,18 +76,18 @@ export function Sidebar() {
})}
</nav>
<div className="mt-auto space-y-2 text-xs text-muted-foreground">
<p>library by Daishi Kato</p>
<p>art by Jessie Waters</p>
<p className="flex items-center">
<p>Language by Tachera Sasi</p>
<p>From <Link href="https://ekilie.com">ekilie</Link></p>
{/* <p className="flex items-center">
site by{" "}
<span className="ml-1">
<span className="text-[#FF1CF7]">c</span>
<span className="text-[#00FF00]">o</span>
<span className="text-[#00FF00]">d</span>
<span className="text-[#FF1CF7]">y</span>
<span className="text-[#00FF00]">code</span>
<span className="text-[#977196]">T</span>
<span className="text-[#98aa98]">a</span>
<span className="text-[#00FF00]">c</span>
<span className="text-[#FF1CF7]">h</span>
<span className="text-[#00FF00]">era</span>
</span>
</p>
</p> */}
</div>
</div>
)
Expand Down

0 comments on commit c6167f7

Please sign in to comment.