forked from b00tc4mp/isdi-parttime-202403
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create ProfileItemInfo component for CustomerProfile and UserProfile; b…
- Loading branch information
Showing
6 changed files
with
48 additions
and
105 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
staff/jose-canto/project/FactuClient/src/components/ProfileItemInfo/index.css
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,18 @@ | ||
@tailwind components; | ||
|
||
@layer components { | ||
.Profile { | ||
@apply relative bottom-3 flex w-[95%] flex-col items-center gap-2; | ||
} | ||
|
||
.ProfileInfo { | ||
@apply inline w-full; | ||
} | ||
.SpanText { | ||
@apply w-auto text-[1.1rem] font-bold text-orange-800 underline; | ||
} | ||
|
||
.ProfileInfo { | ||
@apply w-full text-xl font-bold; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
staff/jose-canto/project/FactuClient/src/components/ProfileItemInfo/index.jsx
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,10 @@ | ||
import "./index.css" | ||
|
||
export default function ProfileInfoItem({ label, value }) { | ||
return ( | ||
<div className="ProfileInfo"> | ||
<p className="SpanText">{label}</p> | ||
{value && <p className="ProfileInfo">{value}</p>} | ||
</div> | ||
) | ||
} |
16 changes: 2 additions & 14 deletions
16
staff/jose-canto/project/FactuClient/src/components/view/CustomerProfile.css
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
@tailwind components; | ||
|
||
@layer components { | ||
.CustomerProfile { | ||
@apply text-xl font-extrabold; | ||
} | ||
|
||
.CustomerInfo { | ||
@apply flex w-[90%] flex-col gap-4 rounded-2xl bg-[#0000002a] p-3 shadow-custom-shadow; | ||
} | ||
|
||
.CustomerInfo > p { | ||
@apply inline; | ||
} | ||
|
||
.SpanColor { | ||
@apply text-orange-800; | ||
.CustomerProfile p { | ||
@apply text-xl font-bold; | ||
} | ||
} |
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