Skip to content

Commit

Permalink
feat: fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyrusso committed Sep 27, 2023
1 parent 78bb84b commit e834a3f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/app/ideation/components/ContributionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ContributionCardProps {

function ContributionCard({ own_idea, contributed_by }: ContributionCardProps) {
return (
<div className="card w-1/3 h-fit bg-secondary-content rounded-lg">
<div className="card max-w-[200px] w-full h-fit bg-secondary-content rounded-lg">
<section className="flex flex-col items-start p-4 gap-y-4">
<h1 className="text-base font-medium text-base-300">
Contributed By
Expand Down
18 changes: 10 additions & 8 deletions src/app/ideation/components/CreateIdeationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ import { Button } from "@/components";

function CreateIdeationContainer() {
return (
<div className="card w-full h-[190px] bg-base-100 flex flex-row items-center px-10">
<VoteDescriptionCard />
<div className="card w-full min-h-[300px] bg-base-100 flex flex-row items-center px-10">
<div className="flex flex-col justify-between h-full py-10">
<VoteDescriptionCard />
<Button
title="Create Project"
customClassName="w-1/7 btn-primary text-base-300 normal-case"
>
Create Project
</Button>
</div>
<section className="card-body gap-y-7 px-20">
<h2 className="text-xl font-semibold text-base-300">
What is your Voyage project idea & vision?
Expand All @@ -15,12 +23,6 @@ function CreateIdeationContainer() {
bring to users.
</p>
</section>
<Button
title="Create Project"
customClassName="w-1/7 btn-primary text-base-300 normal-case"
>
Create Project
</Button>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/ideation/components/VoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface VoteCardProps {

function VoteCard({ users, voted }: VoteCardProps) {
return (
<div className="card w-1/3 h-fit bg-primary-content rounded-lg">
<div className="card max-w-[200px] w-full h-fit bg-primary-content rounded-lg">
<section className="flex flex-col items-start p-4 gap-y-4">
<h1 className="text-3xl font-semibold text-base-300">
{users.length}
Expand Down
2 changes: 1 addition & 1 deletion src/app/ideation/components/VoteDescriptionCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function VoteDescriptionCard() {
return (
<div className="card w-1/3 h-32 bg-primary-content rounded-lg">
<div className="card min-w-[200px] w-[200px] h-32 bg-primary-content rounded-lg">
<section className="flex flex-col items-start p-4 gap-y-4">
<h2 className="text-xl font-semibold text-base-300">Votes</h2>
<p className="text-base font-medium text-base-300 text-left">
Expand Down

0 comments on commit e834a3f

Please sign in to comment.