-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🖇️🦽 ↝ ↝ [SSG-125 SSM-122 SSM-107 SSM-114]: Final changes, milestone c…
…ards added (initially)
- Loading branch information
1 parent
35b09ea
commit 4ad96cf
Showing
6 changed files
with
102 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
components/Structures/Missions/Milestones/MilestoneCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Card, CardContent } from "@/components/ui/card"; | ||
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react"; | ||
import { GlassWaterIcon, PawPrintIcon, SnowflakeIcon } from "lucide-react"; | ||
|
||
const MilestoneCard = () => { | ||
const supabase = useSupabaseClient(); | ||
const session = useSession(); | ||
|
||
const milestones = [ | ||
{ icon: <PawPrintIcon className="w-5 h-5" />, text: "Find 3 desert creatures" }, | ||
{ icon: <SnowflakeIcon className="w-5 h-5" />, text: "Find ice on a planet" }, | ||
{ icon: <GlassWaterIcon className="w-5 h-5" />, text: "Find a planet in the habitable zone" } | ||
]; | ||
|
||
return ( | ||
<Card className="p-4 w-full max-w-md bg-card border shadow-md rounded-lg"> | ||
<CardContent className="flex flex-col gap-4"> | ||
<h1 className="text-xl font-semibold text-blue-600">Weekly Missions</h1> | ||
<ul className="space-y-2"> | ||
{milestones.map((milestone, index) => ( | ||
<li key={index} className="flex items-center gap-2 text-green-700"> | ||
{milestone.icon} | ||
<p>{milestone.text}</p> | ||
</li> | ||
))} | ||
</ul> | ||
</CardContent> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default MilestoneCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters