-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
991 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// components/Typewriter.tsx | ||
"use client"; | ||
import React, { useEffect, useState } from 'react'; | ||
|
||
const Typewriter: React.FC<{ text: string }> = ({ text }) => { | ||
const [displayedText, setDisplayedText] = useState(text[0] || ''); | ||
const [isDeleting, setIsDeleting] = useState(false); | ||
const [pause, setPause] = useState(false); | ||
|
||
const typingSpeed = 150; // Speed for typing (milliseconds) | ||
const deletingSpeed = 100; // Speed for deleting (milliseconds) | ||
const pauseDuration = 500; // Pause duration (milliseconds) | ||
|
||
useEffect(() => { | ||
if (pause) { | ||
return; | ||
} | ||
|
||
const handleTyping = () => { | ||
const firstLetter = text[0]; | ||
const remainingText = text.slice(1); | ||
const currentDisplayedText = displayedText.slice(1); | ||
|
||
if (isDeleting) { | ||
if (currentDisplayedText.length > 0) { | ||
setDisplayedText(firstLetter + currentDisplayedText.slice(0, -1)); | ||
} else { | ||
setIsDeleting(false); | ||
setPause(true); | ||
setTimeout(() => setPause(false), pauseDuration); | ||
} | ||
} else { | ||
if (currentDisplayedText.length < remainingText.length) { | ||
setDisplayedText(firstLetter + remainingText.slice(0, currentDisplayedText.length + 1)); | ||
} else { | ||
setIsDeleting(true); | ||
setPause(true); | ||
setTimeout(() => setPause(false), pauseDuration); | ||
} | ||
} | ||
}; | ||
|
||
const interval = setInterval(handleTyping, isDeleting ? deletingSpeed : typingSpeed); | ||
|
||
return () => clearInterval(interval); | ||
}, [displayedText, isDeleting, pause, text]); | ||
|
||
return ( | ||
<h1 className="text-5xl md:text-9xl font-bold mt-1 leading-none bg-gradient-to-b from-neutral-900 via-zinc-900 to-stone-400 dark:from-neutral-50 dark:via-stone-400 dark:to-zinc-950 text-transparent bg-clip-text"> | ||
{displayedText} | ||
</h1> | ||
); | ||
}; | ||
|
||
export default Typewriter; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import Footer from "@/components/shared/Footer"; | ||
import Header from "@/components/shared/Header"; | ||
import { Button } from "@/components/ui/button"; | ||
import Image from "next/image"; | ||
import type { Metadata } from "next"; | ||
import Link from "next/link"; | ||
import FeatureSection from "./features/page"; | ||
import Typewriter from "./Typewriter"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Blox AI | About", | ||
description: "About Blox AI.", | ||
}; | ||
|
||
const page = () => { | ||
return ( | ||
<> | ||
<Header /> | ||
<section className="md:px-20 pt-32 pb-10 px-8 py-16 justify-center items-center relative"> | ||
<div className="text-center relative"> | ||
<Typewriter text="Let's know" /> | ||
<h1 className="text-4xl font-bold mt-2"> | ||
<Button asChild className="mt-4 relative font-bold text-xl"> | ||
<Link href="/dashboard">Blox AI</Link> | ||
</Button> | ||
</h1> | ||
<p className="text-lg mt-3"> | ||
Effortlessly create diagrams, and collaborate with your team, all | ||
with AI-driven analysis. | ||
<br className="hidden md:block" /> | ||
All in one secure and easy-to-use platform. | ||
</p> | ||
</div> | ||
<div className="absolute inset-0 z-0 opacity-30 dark:opacity-50 pointer-events-none"> | ||
<Image | ||
src={"/doodle.png"} | ||
alt="Overlay" | ||
layout="fill" | ||
objectFit="cover" | ||
// This will invert the image colors for dark mode | ||
/> | ||
</div> | ||
<div | ||
className="absolute arrow-container" | ||
style={{ | ||
top: "90%", | ||
left: "50%", | ||
transform: "translate(-50%, -50%) rotate(45deg)", | ||
}} | ||
></div> | ||
</section> | ||
<section> | ||
<div className="mx-auto my-20 max-w-screen-xl px-6 py-8 sm:px-6 sm:py-12 lg:px-8 lg:py-16"> | ||
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2 lg:gap-16"> | ||
<div className="relative h-64 overflow-hidden rounded-lg sm:h-80 lg:order-first lg:h-full"> | ||
<Image | ||
alt="" | ||
src="/about-pic.png" | ||
width={550} | ||
height={550} | ||
className="absolute inset-0 h-full w-full object-cover rounded shadow" | ||
/> | ||
</div> | ||
|
||
<div className="lg:py-24 space-y-2"> | ||
<h2 className="text-3xl font-bold sm:text-4xl"> | ||
What is Blox AI? | ||
</h2> | ||
|
||
<p className="mt-5 text-muted-foreground"> | ||
Blox AI is an innovative platform designed to make creating | ||
flowcharts, diagrams, and rich documentation effortless. | ||
Leveraging intuitive tools and the advanced capabilities of the | ||
Google Gemini AI model, Blox AI enhances your ability to | ||
visualize complex processes and ideas. It provides seamless | ||
collaboration features, secure workspaces, and AI-driven | ||
insights, making it the go-to solution for individuals and teams | ||
aiming to turn their concepts into clear, visual | ||
representations. | ||
</p> | ||
|
||
<Button asChild> | ||
<Link href="/dashboard">Start Now</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<section className="md:mx-20 my-20 px-8 py-16 text-center"> | ||
<div className="mt-20 flex items-center justify-center"> | ||
<FeatureSection /> | ||
</div> | ||
</section> | ||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
export default page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// app/api/send-email.ts | ||
import { NextRequest, NextResponse } from 'next/server'; | ||
import { Resend } from 'resend'; | ||
|
||
const resend = new Resend(process.env.RESEND_API_KEY || ''); | ||
|
||
export async function POST(req: NextRequest) { | ||
const { to, text } = await req.json(); | ||
const subject = 'Welcome to Resend!'; | ||
try { | ||
const response = await resend.emails.send({ | ||
from: 'Acme <[email protected]>', | ||
to, | ||
subject, | ||
text, | ||
}); | ||
|
||
return NextResponse.json({ success: true, data: response }); | ||
} catch (error: any) { | ||
console.error('Error sending email:', error); | ||
return NextResponse.json({ success: false, error: error.message }, { status: 500 }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.