-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add tweet card and more (#6)
* ✨ feat: add tweet card and more * 🐛 fix: change date
- Loading branch information
1 parent
17f1bdd
commit 5518b91
Showing
32 changed files
with
865 additions
and
311 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
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
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
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
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,97 @@ | ||
"use client"; | ||
|
||
import { Icons } from "@/components/icons"; | ||
import { buttonVariants } from "@/components/ui/button"; | ||
import { cn } from "@/lib/utils"; | ||
import { List } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
const features = [ | ||
{ | ||
id: "feature-openai", | ||
header: "Analyze", | ||
name: "Advanced OpenAI API Dashboard", | ||
description: | ||
"Just enter your OpenAI API key, and we fetch your data from the OpenAI API directly to create a dashboard. No need to install anything.", | ||
// icon: Icons.openai, | ||
video: "https://cdn.llm.report/openai-demo.mp4", | ||
cta: "Get Started", | ||
href: "/login", | ||
reverse: false, | ||
}, | ||
{ | ||
id: "feature-logs", | ||
header: "Optimize", | ||
name: "Log your prompts and completions", | ||
description: | ||
"Change 1 line in your code and start logging your API requests. Optimize your token usage and start saving money.", | ||
icon: List, | ||
video: "https://cdn.llm.report/logs-demo.mp4", | ||
cta: "Get Started", | ||
href: "/login", | ||
reverse: true, | ||
}, | ||
{ | ||
id: "feature-users", | ||
header: "Minimize", | ||
name: "Measure Cost Per User", | ||
description: | ||
"Analyze your cost per user and adjust your pricing to maximize revenue.", | ||
icon: Icons.user, | ||
video: "https://cdn.llm.report/users-demo.mp4", | ||
cta: "Get Started", | ||
href: "/login", | ||
reverse: false, | ||
}, | ||
]; | ||
|
||
const FeatureSections = () => { | ||
return ( | ||
<> | ||
{features.map((feature) => ( | ||
<section id={feature.id} key={feature.id} className="container mx-auto"> | ||
<div className="mx-auto px-6 py-6 sm:py-20"> | ||
<div className="mx-auto grid max-w-2xl grid-cols-1 gap-x-16 gap-y-16 sm:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-5"> | ||
<div | ||
className={cn("m-auto lg:col-span-2", { | ||
"lg:order-last": feature.reverse, | ||
})} | ||
> | ||
<h2 className="text-base font-semibold leading-7 text-orange-600"> | ||
{feature.header} | ||
</h2> | ||
<p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl"> | ||
{feature.name} | ||
</p> | ||
<p className="mt-6 text-lg leading-8 text-gray-600 dark:text-gray-400"> | ||
{feature.description} | ||
</p> | ||
<Link | ||
className={cn( | ||
buttonVariants({ | ||
variant: "default", | ||
size: "lg", | ||
}), | ||
"mt-8", | ||
)} | ||
href={feature.href} | ||
> | ||
{feature.cta} | ||
</Link> | ||
</div> | ||
<video | ||
src={feature.video} | ||
autoPlay | ||
loop | ||
muted | ||
className="m-auto rounded-xl border shadow-2xl lg:col-span-3" | ||
/> | ||
</div> | ||
</div> | ||
</section> | ||
))} | ||
</> | ||
); | ||
}; | ||
|
||
export default FeatureSections; |
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
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.