Skip to content

Commit

Permalink
updates(app detail): ui changes (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw authored Nov 13, 2023
1 parent d34d775 commit b3a48b2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fix - After adding / creating new technical users, list view at bottom "randomly" shows duplicates. Applies to all the views (ALL, MANAGED, OWNED)
- Registration Process
- Show contry code info
- App Detail UI changes

## 1.7.0-RC2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
object-fit: cover;
img {
width: 100%;
height: 270px;
border-radius: 20px;
}
}
Expand All @@ -49,6 +50,9 @@
font-size: 14px;
}
}
.usecase {
display: flex;
}
ul {
display: flex;
align-items: center;
Expand Down
38 changes: 24 additions & 14 deletions src/components/pages/AppDetail/components/AppDetailHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default function AppDetailHeader({ item }: AppDetailHeaderProps) {
<img src={image} alt={item.title} />
</div>
<div className="content">
<Typography variant="h5" sx={{ pb: '6px', color: '#888888' }}>
<Typography variant="caption2" sx={{ pb: '6px' }}>
{item.provider}
</Typography>
<Typography variant="h2" sx={{ pb: '8px', lineHeight: '48px' }}>
Expand All @@ -192,21 +192,31 @@ export default function AppDetailHeader({ item }: AppDetailHeaderProps) {
<span className="rating-number">{item.rating}</span>
*/}
</div>
<Typography variant="body2" sx={{ pb: 1 }}>
<Typography variant="caption1" sx={{ mb: 1, display: 'inherit' }}>
{item.price}
</Typography>
<Typography variant="body2" sx={{ pb: 1 }}>
{t('content.appdetail.usecase')}:
{item.useCases.map((useCase: UseCaseType) => (
<span key={useCase.id}> {useCase.label} </span>
))}
</Typography>
<Typography variant="body2" sx={{ pb: '18px' }}>
{t('content.appdetail.language')}:
{item.languages?.map((lang, index) => (
<span key={lang}> {(index ? ', ' : '') + lang} </span>
))}
</Typography>
<div className="usecase">
<Typography variant="label2" sx={{ pb: 1 }}>
{t('content.appdetail.usecase')}:
</Typography>
<Typography variant="caption2" sx={{ pb: 1, ml: 1 }}>
{item.useCases.map((useCase: UseCaseType) => (
<span key={useCase.id}> {useCase.label} </span>
))}
</Typography>
</div>
<div className="usecase">
<Typography variant="label2">
{t('content.appdetail.language')}:
</Typography>
<Typography variant="caption2" sx={{ pb: 2, ml: 1 }}>
{item.languages?.map((lang, index) => (
<span key={lang}>
{` ${index ? ', ' : ''}${lang.toUpperCase()} `}
</span>
))}
</Typography>
</div>
{getSubscribeBtn()}
</div>
</div>
Expand Down

0 comments on commit b3a48b2

Please sign in to comment.