Skip to content

Commit 633f34f

Browse files
Vallayahgikf
andauthored
Co-authored-by: Krzysztof G. <[email protected]>
1 parent 217e564 commit 633f34f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

frontend/src/pages/Ideas/IdeaPage.jsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ export const IdeaPage = () => {
6969
return loading ? (
7070
<Spinny />
7171
) : error ? (
72-
<>{error}</>
72+
<div className='section-card flex flex-col items-center justify-center min-h-[60vh]'>
73+
<p className='text-error'>{error}</p>
74+
</div>
7375
) : (
74-
<section>
75-
<h1 className='header'>{idea?.name}</h1>
76-
<p>{idea?.description}</p>
77-
<div className='stats stats-vertical lg:stats-horizontal shadow'>
76+
<section className='section-card'>
77+
<h1 className='section-heading'>{idea?.name}</h1>
78+
<p className='text-lg text-gray-700 mb-4'>{idea?.description}</p>
79+
<div className='stats stats-vertical lg:stats-horizontal shadow my-4'>
7880
<div className='stat'>
7981
<div className='stat-title'>Upvotes</div>
8082
<div className='stat-value'>{idea?.upvotes}</div>
@@ -86,7 +88,7 @@ export const IdeaPage = () => {
8688
</div>
8789
</div>
8890
{isLogged && (
89-
<>
91+
<div className='flex gap-4 mt-4 justify-center'>
9092
<UpvoteButton {...{ ideaId, onSuccess: onUpvoteSuccess, onError }} />
9193
<DownvoteButton
9294
{...{
@@ -95,7 +97,7 @@ export const IdeaPage = () => {
9597
onError,
9698
}}
9799
/>
98-
</>
100+
</div>
99101
)}
100102
</section>
101103
);

0 commit comments

Comments
 (0)