Skip to content

Commit b794ab0

Browse files
section wrapper, text-pretty
1 parent 7523df8 commit b794ab0

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

src/components/quote/Quote.tsx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,24 @@ const Quote = () => {
3434
}, [loadQuote])
3535

3636
return (
37-
<blockquote
38-
className="flex flex-col gap-2 sm:gap-4 text-center w-full max-w-7xl bg-stone-100 text-stone-950 p-3 sm:p-4 lg:p-6 my-6 lg:my-8"
39-
ref={quoteRef}
40-
>
41-
<h2 className="self-start text-very-large font-semibold underline">
42-
Quote of the Day
43-
</h2>
44-
{quote ? (
45-
<div className="flex flex-col text-normal">
46-
<i>&quot;{quote.body}&quot;</i>
47-
<p className="self-end px-4 py-1"> - unknown author</p>
48-
</div>
49-
) : (
50-
<div className="flex flex-col gap-2">
51-
<Skeleton className="h-[18px] w-full rounded-full" />
52-
<Skeleton className="self-end h-[18px] w-32 rounded-full" />
53-
</div>
54-
)}
55-
</blockquote>
37+
<section className="w-full max-w-7xl" ref={quoteRef}>
38+
<blockquote className="flex flex-col gap-2 sm:gap-4 text-center text-pretty bg-stone-100 text-stone-950 p-3 sm:p-4 lg:p-6 my-6 lg:my-8">
39+
<h2 className="self-start text-very-large font-semibold underline">
40+
Quote of the Day
41+
</h2>
42+
{quote ? (
43+
<div className="flex flex-col text-normal">
44+
<i>&quot;{quote.body}&quot;</i>
45+
<p className="self-end px-4 py-1"> - unknown author</p>
46+
</div>
47+
) : (
48+
<div className="flex flex-col gap-2">
49+
<Skeleton className="h-[18px] w-full rounded-full" />
50+
<Skeleton className="self-end h-[18px] w-32 rounded-full" />
51+
</div>
52+
)}
53+
</blockquote>
54+
</section>
5655
)
5756
}
5857

0 commit comments

Comments
 (0)