Skip to content

Commit 7df98c3

Browse files
committed
fix
1 parent fc86446 commit 7df98c3

File tree

1 file changed

+9
-77
lines changed

1 file changed

+9
-77
lines changed

apps/web/src/pages/index.tsx

Lines changed: 9 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Home = () => {
176176
))}
177177
</div>
178178

179-
<div className="mx-auto mt-24 max-w-4xl">
179+
<div className="mx-auto mt-24 max-w-4xl pt-24">
180180
<h2 className="text-center text-2xl font-medium">Why Zenblog?</h2>
181181
<div className="mx-auto mt-8 divide-y rounded-xl border bg-slate-100/40">
182182
{FEATURES.map((feature) => (
@@ -261,14 +261,14 @@ const Home = () => {
261261
<h2 className="text-2xl font-medium">
262262
Frequently asked questions
263263
</h2>
264-
<div className="mx-auto mt-12 max-w-xl text-left">
264+
<div className="mx-auto mt-12 max-w-2xl text-left">
265265
<Accordion
266266
type="multiple"
267-
className="divide-y rounded-xl border *:px-4"
267+
className="divide-y rounded-xl border bg-slate-100/50 *:px-4 [&_div]:text-lg"
268268
>
269269
<AccordionItem value="zenblog">
270270
<AccordionTrigger>What is zenblog?</AccordionTrigger>
271-
<AccordionContent>
271+
<AccordionContent className="text-lg">
272272
Zenblog is a simple, headless blogging CMS. You can use it
273273
to manage your own blog, build blogs for your clients, use
274274
it to manage content in a website like a blog, job
@@ -318,74 +318,6 @@ const Home = () => {
318318
);
319319
};
320320

321-
function PricingItem({
322-
title,
323-
description,
324-
features,
325-
action,
326-
price,
327-
onClick,
328-
}: {
329-
title: string;
330-
description: string;
331-
features: string[];
332-
price: string;
333-
action: string;
334-
onClick?: () => void;
335-
}) {
336-
const formattedFeatures = features.map((feat) => {
337-
if (feat.includes("<soon>")) {
338-
const [feature, soon] = feat.split("<soon>");
339-
return (
340-
<span key={feature}>
341-
{feature}{" "}
342-
<span className="rounded-full bg-orange-50 px-1 py-0.5 text-xs text-orange-500">
343-
Coming soon
344-
</span>
345-
</span>
346-
);
347-
}
348-
return <span key={feat}>{feat}</span>;
349-
});
350-
351-
return (
352-
<div className="flex w-full max-w-lg flex-1 flex-col rounded-lg border px-4 py-3 pb-8 text-left shadow-sm">
353-
<h2 className="text-lg font-medium">{title}</h2>
354-
<p className="text-sm text-slate-500">{description}</p>
355-
<ul className="mt-6 space-y-3 text-left">
356-
{formattedFeatures.map((feature, idx) => (
357-
<li
358-
className="flex items-center gap-2 font-mono text-sm"
359-
key={idx + "-feat"}
360-
>
361-
<FaCheckCircle size="16" className="text-green-500" />
362-
{feature}
363-
</li>
364-
))}
365-
</ul>
366-
<div className="mt-auto justify-self-end">
367-
{+price > 0 && (
368-
<div>
369-
<p className="mt-8 font-mono text-2xl font-medium">
370-
${price}
371-
<span className="text-sm text-slate-500">/month</span>
372-
</p>
373-
<p className="text-xs font-medium text-slate-500">
374-
${String(+price * 12)} Billed annually
375-
</p>
376-
</div>
377-
)}
378-
379-
{/* <div className="flex justify-center pt-4">
380-
<Button onClick={onClick} className="w-full">
381-
{action}
382-
</Button>
383-
</div> */}
384-
</div>
385-
</div>
386-
);
387-
}
388-
389321
const tweets = [
390322
{
391323
content:
@@ -450,18 +382,18 @@ const TweetItem = ({
450382
<Image
451383
src={image}
452384
alt={name}
453-
width={40}
454-
height={40}
385+
width={60}
386+
height={60}
455387
className="z-10 rounded-full border border-slate-100"
456388
/>
457389
<div className={cn("flex flex-col")}>
458-
<p className="text-sm font-medium">{name}</p>
459-
<p className="text-xs font-medium text-slate-500">{username}</p>
390+
<p className="text-lg font-medium">{name}</p>
391+
<p className="text-lg font-medium text-slate-500">{username}</p>
460392
</div>
461393
</div>
462394
<div className="flex flex-col">
463395
<p
464-
className={cn("text-sm", {
396+
className={cn("text-lg", {
465397
"ml-12": isThread,
466398
})}
467399
>

0 commit comments

Comments
 (0)