10 Commits

Author SHA1 Message Date
896d9fbd17 Merge version_3 into main
Merge version_3 into main
2026-03-08 06:26:48 +00:00
c47d00fb7c Update src/app/page.tsx 2026-03-08 06:26:43 +00:00
406b563dad Update src/app/layout.tsx 2026-03-08 06:26:43 +00:00
0186e3e012 Add src/app/app/page.tsx 2026-03-08 06:26:42 +00:00
1f347524f2 Merge version_2 into main
Merge version_2 into main
2026-03-08 06:26:08 +00:00
09825bdbff Update src/app/page.tsx 2026-03-08 06:26:04 +00:00
132c7087ef Update src/app/layout.tsx 2026-03-08 06:26:04 +00:00
eb93b89bd2 Merge version_1 into main
Merge version_1 into main
2026-03-08 06:09:25 +00:00
f67f9266db Merge version_1 into main
Merge version_1 into main
2026-03-08 06:08:45 +00:00
b06765d496 Merge version_1 into main
Merge version_1 into main
2026-03-08 06:07:55 +00:00
3 changed files with 113 additions and 1403 deletions

98
src/app/app/page.tsx Normal file
View File

@@ -0,0 +1,98 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import { useState } from "react";
export default function AppPage() {
const [equation, setEquation] = useState("");
const [latex, setLatex] = useState("");
const handleFormatEquation = () => {
// Placeholder for equation formatting logic
setLatex(`\\text{Formatted: } ${equation}`);
};
const handleCopyLatex = () => {
navigator.clipboard.writeText(latex);
};
return (
<ThemeProvider
defaultButtonVariant="bounce-effect"
defaultTextAnimation="background-highlight"
borderRadius="pill"
contentWidth="compact"
sizing="largeSmallSizeLargeTitles"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="double-inset"
secondaryButtonStyle="solid"
headingFontWeight="semibold"
>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
brandName="EquationFlow"
navItems={[
{ name: "Home", id: "/" },
{ name: "Features", id: "/#features" },
{ name: "How It Works", id: "/#how-it-works" },
{ name: "GitHub", id: "https://github.com" },
{ name: "Docs", id: "https://docs.example.com" },
]}
button={{ text: "Home", href: "/" }}
/>
</div>
<div className="min-h-screen w-full flex items-center justify-center py-20 px-4">
<div className="w-full max-w-2xl">
<div className="text-center mb-12">
<h1 className="text-5xl md:text-6xl font-bold mb-4 text-foreground">
Equation Formatter
</h1>
<p className="text-lg text-foreground/70">
Type your equation and watch it format in real-time
</p>
</div>
<div className="space-y-6">
<div>
<label className="block text-sm font-medium text-foreground mb-2">
Enter your equation:
</label>
<textarea
value={equation}
onChange={(e) => setEquation(e.target.value)}
placeholder="e.g., x^2 + y^2 = r^2"
className="w-full p-4 border-2 border-accent rounded-lg focus:outline-none focus:border-primary-cta bg-card text-foreground"
rows={4}
/>
</div>
<button
onClick={handleFormatEquation}
className="w-full py-3 px-6 bg-primary-cta text-primary-cta-text font-semibold rounded-lg hover:opacity-90 transition-opacity"
>
Format Equation
</button>
{latex && (
<div className="bg-card border-2 border-accent rounded-lg p-6">
<h3 className="text-sm font-medium text-foreground mb-2">
LaTeX Output:
</h3>
<code className="text-foreground/80 break-all">{latex}</code>
<button
onClick={handleCopyLatex}
className="mt-4 w-full py-2 px-4 bg-secondary-cta text-secondary-cta-text font-medium rounded-lg hover:opacity-90 transition-opacity"
>
Copy LaTeX
</button>
</div>
)}
</div>
</div>
</div>
</ThemeProvider>
);
}

File diff suppressed because it is too large Load Diff

View File

@@ -28,6 +28,7 @@ export default function LandingPage() {
navItems={[
{ name: "Features", id: "features" },
{ name: "How It Works", id: "how-it-works" },
{ name: "App", id: "/app" },
{ name: "GitHub", id: "https://github.com" },
{ name: "Docs", id: "https://docs.example.com" },
]}
@@ -44,7 +45,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
background={{ variant: "canvas-reveal" }}
buttons={[
{ text: "Start Formatting", href: "#features" },
{ text: "Start Formatting", href: "/app" },
{ text: "View on GitHub", href: "https://github.com" },
]}
imageSrc="http://img.b2bpic.net/free-vector/web-design-background_53876-90537.jpg?_wi=1"
@@ -100,7 +101,7 @@ export default function LandingPage() {
title: "Export & Share", description: "Copy clean LaTeX for Markdown or export high-resolution PNG images in one click. Ready for any platform.", icon: Download,
},
]}
buttons={[{ text: "Start Formatting", href: "#hero" }]}
buttons={[{ text: "Try the App", href: "/app" }]}
/>
</div>