Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
ChartArea,
GithubIcon,
MessageCircle,
PaintbrushIcon,
} from "lucide-react";
import Image from "next/image";
import Link from "next/link";
Expand Down Expand Up @@ -54,13 +55,12 @@ export default async function Home() {
<div className="bg-image bg-cover bg-no-repeat bg-center flex flex-col items-center min-h-screen">
<section className="container max-w-6xl mx-auto px-4 lg:px-0 text-gray-900 flex justify-center items-center lg:gap-28 xl:gap-32 my-28">
<div className="text-center lg:text-left w-full lg:w-2/3">
{/* <Link href="/docs/charts/line-chart" className="mb-12 inline-block"> */}
{/* <Badge>
Introducing RetroUI Charts!
<ChartArea className="ml-2 h-4 w-4 inline-block" />
</Badge> */}
<a href="https://www.producthunt.com/products/retro-ui?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-retroui&#0045;pro" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1006866&theme=light&t=1756013775683" alt="RetroUI&#0032;Pro - Not&#0032;Every&#0032;Website&#0032;Has&#0032;To&#0032;Look&#0032;The&#0032;Same&#0033; | Product Hunt" style={{width: "250px", height: "54px"}} width="250" height="54" /></a>
{/* </Link> */}
<Link href="/themes" className="mb-6 inline-block">
<Badge>
Introducing RetroUI Themes!
<PaintbrushIcon className="ml-2 h-4 w-4 inline-block" />
</Badge>
</Link>

<Text as="h1" className="text-5xl text-foreground lg:text-6xl mt-8">
Make your projects
Expand Down Expand Up @@ -204,7 +204,7 @@ export default async function Home() {
Github Stars
</Text>
<Text className="text-outlined text-7xl lg:text-8xl font-head">
650+
700+
</Text>
<Image
src="/images/shooting_star.svg"
Expand Down
145 changes: 145 additions & 0 deletions app/(marketing)/themes/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
"use client";

import { useState } from "react";
import {
Card,
Select,
Text,
} from "@/components/retroui";
import ChartStyleMultiple from "@/preview/charts/area-chart-style-multiple";
import CourseCard from "@/preview/blocks/course-card";
import SignInBlock from "@/preview/blocks/sign-in";
import BarChartStyleMultiple from "@/preview/charts/bar-chart-style-multiple";
import TeamMembersBlock from "@/preview/blocks/team-members";
import CopyTheme from "@/components/CopyTheme";
import { Theme } from "@/config/theme";

const themes: {value: Theme, label: string}[] = [
{
value: Theme.Default,
label: "Default",
},
{
value: Theme.Purple,
label: "Purple",
},
{
value: Theme.Lime,
label: "Lime",
},
{
value: Theme.Red,
label: "Red",
},
{
value: Theme.Lavender,
label: "Lavender",
},
{
value: Theme.Orange,
label: "Orange",
},
{
value: Theme.Green,
label: "Green",
},
];

const variants = [
{
value: "box",
label: "Box",
},
{
value: "with-radius",
label: "Rounded",
},
];

export default function Themes() {
const [theme, setTheme] = useState<Theme>(themes[0].value);
const [variant, setVariant] = useState(variants[0].value);

return (
<section className={`theme-${theme} ${variant} container max-w-8xl mx-auto py-12`}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

❓ Verification inconclusive

Verify Tailwind support for max-w-8xl.

Ensure 8xl is defined; default Tailwind stops at 7xl.


🏁 Script executed:

#!/bin/bash
# Check Tailwind config for custom '8xl' size
rg -nP "maxWidth|extend\s*:\s*{[^}]*maxWidth" -C3 -- tailwind.config.* tailwind.config.*.* 2>/dev/null
rg -nP "8xl" -- tailwind.config.* tailwind.config.*.* 2>/dev/null

Length of output: 154


Add custom 8xl max-width or switch to 7xl. Default Tailwind defines max-w only up to 7xl; no 8xl entry was found in theme.extend.maxWidth. Either add an 8xl value in your tailwind.config.(js|ts) or update this class to max-w-7xl.

🤖 Prompt for AI Agents
In app/(marketing)/themes/page.tsx around line 64, the class uses a non-existent
Tailwind utility "max-w-8xl"; either change the class to use the existing
"max-w-7xl" or add a custom "8xl" entry in your Tailwind config. If you choose
to add the custom size, open tailwind.config.js/ts and under
theme.extend.maxWidth define an "8xl" key with your desired width value, then
rebuild; otherwise update the JSX class from max-w-8xl to max-w-7xl.

<Text as="h1" className="font-normal mb-12">Don&apos;t like <span className="text-primary">{theme === Theme.Default ? "Yellow" : theme.slice(0, 1).toUpperCase() + theme.slice(1)}?</span><br />Well, we have more! 🫡</Text>

<div className="flex gap-6 items-center justify-between mb-6">
<div className="flex gap-6">
<Select onValueChange={(value: Theme) => setTheme(value)}>
<Select.Trigger>
<Select.Value placeholder="Select Color" />
</Select.Trigger>
<Select.Content>
<Select.Group>
{
themes.map((theme) => (
<Select.Item key={theme.value} value={theme.value}>
{theme.label}
</Select.Item>
))
}
</Select.Group>
</Select.Content>
</Select>

<Select onValueChange={(value) => setVariant(value)}>
<Select.Trigger>
<Select.Value placeholder="Select Variant" />
</Select.Trigger>
<Select.Content>
<Select.Group>
{
variants.map((variant) => (
<Select.Item key={variant.value} value={variant.value}>
{variant.label}
</Select.Item>
))
}
</Select.Group>
</Select.Content>
</Select>
</div>

<CopyTheme theme={theme} hasRadius={variant === "with-radius"} />
</div>

<div className="grid grid-cols-3 w-full gap-6">
<div className="flex flex-col gap-6">
<Card className="w-full border-muted bg-background shadow-none">
<Card.Content>
<CourseCard />
</Card.Content>
</Card>

<Card className="w-full border-muted bg-background shadow-none">
<Card.Content>
<TeamMembersBlock />
</Card.Content>
</Card>
</div>


<div className="flex flex-col gap-6">
<Card className="w-full border-muted bg-background shadow-none">
<Card.Content>
<ChartStyleMultiple />
</Card.Content>
</Card>
<Card className="w-full border-muted bg-background shadow-none">
<Card.Content>
<BarChartStyleMultiple />
</Card.Content>
</Card>
</div>


<Card className="w-full border-muted bg-background shadow-none">
<Card.Content>
<SignInBlock />
</Card.Content>
</Card>
</div>
</section>
);
}
Loading