-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some improvements in web app for mobile devices (#328)
Signed-off-by: Cintia Sanchez Garcia <[email protected]>
- Loading branch information
1 parent
ff64191
commit 54acf54
Showing
21 changed files
with
380 additions
and
285 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
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
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
45 changes: 45 additions & 0 deletions
45
web/src/layout/common/itemModal/MobileMaturitySection.module.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,45 @@ | ||
.maturityBadge { | ||
width: 80px; | ||
font-size: 0.65rem; | ||
line-height: 1rem; | ||
background-color: var(--bs-gray-500); | ||
} | ||
|
||
.activeMaturityBadge { | ||
position: relative; | ||
background-color: var(--color-stats-1); | ||
} | ||
|
||
.statusLegend { | ||
font-size: 0.6rem; | ||
} | ||
|
||
.line::after { | ||
position: absolute; | ||
content: ''; | ||
top: 0.7rem; | ||
left: 0; | ||
right: 0; | ||
height: 4px; | ||
background-color: var(--color-stats-1); | ||
z-index: -1; | ||
} | ||
|
||
.line::before { | ||
position: absolute; | ||
content: ''; | ||
top: 0.7rem; | ||
left: 0; | ||
right: 0; | ||
height: 4px; | ||
background-color: var(--bs-gray-200); | ||
z-index: -1; | ||
} | ||
|
||
:global(.incubatingLine)::after { | ||
right: 50%; | ||
} | ||
|
||
:global(.sandboxLine)::after { | ||
display: none; | ||
} |
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,70 @@ | ||
import isUndefined from 'lodash/isUndefined'; | ||
import { Show } from 'solid-js'; | ||
|
||
import { Item } from '../../../types'; | ||
import styles from './MobileMaturitySection.module.css'; | ||
|
||
interface Props { | ||
item: Item; | ||
titleClass: string; | ||
} | ||
|
||
const MobileMaturitySection = (props: Props) => { | ||
return ( | ||
<Show | ||
when={ | ||
!isUndefined(props.item.maturity) || | ||
!isUndefined(props.item.accepted_at) || | ||
!isUndefined(props.item.incubating_at) || | ||
!isUndefined(props.item.graduated_at) | ||
} | ||
> | ||
<div class={`text-uppercase mt-3 fw-semibold border-bottom ${props.titleClass}`}>Maturity</div> | ||
|
||
<div class="position-relative my-2"> | ||
<div class="d-flex flex-row justify-content-between"> | ||
<div class="d-flex flex-column align-items-center"> | ||
<div class={`badge rounded-0 ${styles.maturityBadge} ${styles.activeMaturityBadge}`}> | ||
<Show when={props.item.accepted_at} fallback={'-'}> | ||
<> | ||
{props.item.accepted_at === props.item.incubating_at || | ||
props.item.accepted_at === props.item.graduated_at | ||
? '-' | ||
: props.item.accepted_at} | ||
</> | ||
</Show> | ||
</div> | ||
<small class={`text-uppercase fw-semibold text-muted mt-1 ${styles.statusLegend}`}>Sandbox</small> | ||
</div> | ||
|
||
<div class="d-flex flex-column align-items-center"> | ||
<div | ||
class={`badge rounded-0 ${styles.maturityBadge}`} | ||
classList={{ | ||
[styles.activeMaturityBadge]: ['incubating', 'graduated', 'archived'].includes(props.item.maturity!), | ||
}} | ||
> | ||
{props.item.incubating_at || '-'} | ||
</div> | ||
<small class={`text-uppercase fw-semibold text-muted mt-1 ${styles.statusLegend}`}>Incubating</small> | ||
</div> | ||
|
||
<div class="d-flex flex-column align-items-center"> | ||
<div | ||
class={`badge rounded-0 ${styles.maturityBadge}`} | ||
classList={{ | ||
[styles.activeMaturityBadge]: ['graduated', 'archived'].includes(props.item.maturity!), | ||
}} | ||
> | ||
{props.item.graduated_at || '-'} | ||
</div> | ||
<small class={`text-uppercase fw-semibold text-muted mt-1 ${styles.statusLegend}`}>Graduated</small> | ||
</div> | ||
</div> | ||
<div class={`${styles.line} ${props.item.maturity}Line`} /> | ||
</div> | ||
</Show> | ||
); | ||
}; | ||
|
||
export default MobileMaturitySection; |
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
Oops, something went wrong.