-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mapper): project details section add to bottom sheet (#1994)
* fix(more): if not instructions, show message * fix(page): margin remove from h5 * fix(more): project information stack add * feat(project-info): project information section add
- Loading branch information
Showing
3 changed files
with
53 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script lang="ts"> | ||
type descriptionType = { | ||
key: string; | ||
value: string; | ||
}; | ||
const { projectData } = $props(); | ||
const descriptionList: descriptionType[] = [ | ||
{ key: 'Project ID', value: projectData?.id }, | ||
{ key: 'Total Tasks', value: projectData?.tasks?.length }, | ||
{ key: 'Organization Name', value: projectData?.organisation_name }, | ||
]; | ||
</script> | ||
|
||
<h5 class="text-lg text-[#333333] font-barlow-semibold mb-6 mt-3">{projectData?.name}</h5> | ||
<div class="flex flex-col gap-3"> | ||
<h5 class="text-base text-[#D73F3F] font-barlow-semibold">Description</h5> | ||
<p class="text-sm text-[#2B2B2B] font-barlow-regular">{projectData?.description}</p> | ||
<div class="flex flex-col gap-2"> | ||
{#each descriptionList as description} | ||
<div class="grid grid-cols-2"> | ||
<p class="text-sm text-[#2B2B2B] font-barlow-regular">{description.key}</p> | ||
<p class="text-sm text-[#161616] font-barlow-semibold"> | ||
<span class="px-2">:</span> | ||
{description?.value || '-'} | ||
</p> | ||
</div> | ||
{/each} | ||
</div> | ||
</div> |
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 |
---|---|---|
|
@@ -40,3 +40,7 @@ | |
p { | ||
margin: 0px; | ||
} | ||
|
||
h5 { | ||
margin: 0; | ||
} |