Skip to content

Commit

Permalink
feat: create wireframed quest list
Browse files Browse the repository at this point in the history
  • Loading branch information
luizmuraro committed Oct 1, 2024
1 parent 0a63a37 commit 1de3044
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/govquests-frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function RootLayout({
<div />
</header>
<div className="flex">
<aside className="w-32 bg-red-100 min-h-screen p-6">
<aside className="w-32 bg-red-100 min-h-screen p-6 hidden md:flex">
<div />
</aside>
{children}
Expand Down
2 changes: 1 addition & 1 deletion apps/govquests-frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Home() {
<span className="text-lg bg-green mb-4">
We selected them based on your profile
</span>
<div className="mt-6 grid grid-cols-2 md:grid-cols-4 gap-4">
<div className="mt-6 grid grid-cols-2 md:grid-cols-5 gap-5">
{quests.map((quest) => (
<Quest
key={quest.title}
Expand Down
14 changes: 8 additions & 6 deletions apps/govquests-frontend/src/components/Quest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ const Quest: React.FC<QuestProps> = ({
onStart,
}) => {
return (
<div className="flex flex-col items-center">
<Image src={imageSrc} alt={altText} width={100} height={100} />
<h3>{title}</h3>
<div className="flex flex-col items-center">
<span>
<div className="flex flex-col bg-red-300 rounded-lg">
<div className="relative w-full border border-black h-36">
<Image src={imageSrc} alt={altText} layout="fill" objectFit="cover" />
</div>
<div className="flex flex-col p-4">
<h3>{title}</h3>
<span className="bg-white self-start py-1 px-2 mt-1 mb-5 rounded text-sm">
{points} {rewardType}
</span>
<button type="button" onClick={onStart}>
<button type="button" onClick={onStart} className="bg-white rounded-lg">
Start
</button>
</div>
Expand Down

0 comments on commit 1de3044

Please sign in to comment.