Skip to content

Commit

Permalink
fix(invest-box): correct CSS; update fallbacks; simplify states;
Browse files Browse the repository at this point in the history
Update for correct CSS styles for target texts. Update to use correct fallback data. Remove
unecessary extra states of widget, for simplification.

fix #1863
  • Loading branch information
migbash committed Dec 16, 2023
1 parent e99fd65 commit 83e2dff
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
43 changes: 15 additions & 28 deletions src/lib/components/page/profile/investor/Main-Round.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@
[
{
row_title: 'Name'
, value: mapInvestorData?.get('round')?.values?.name
, value: mapInvestorData?.get('round')?.values?.name ?? '-'
}
, {
row_title: 'Symbol'
, value: mapInvestorData?.get('round')?.values?.symbol
, value: mapInvestorData?.get('round')?.values?.symbol ?? '-'
}
, {
row_title: 'Available'
, value: mapInvestorData?.get('round')?.values?.available
, value: mapInvestorData?.get('round')?.values?.available ?? '-'
}
]
}
Expand All @@ -112,11 +112,11 @@
[
{
row_title: 'Start Date'
, value: mapInvestorData?.get('round')?.values?.start_date
, value: mapInvestorData?.get('round')?.values?.start_date ?? '-'
}
, {
row_title: 'End Date'
, value: mapInvestorData?.get('round')?.values?.end_date
, value: mapInvestorData?.get('round')?.values?.end_date ?? '-'
}
]
}
Expand All @@ -126,19 +126,19 @@
[
{
row_title: 'Minimum Buy Amount'
, value: mapInvestorData?.get('round')?.values?.min_buy
, value: mapInvestorData?.get('round')?.values?.min_buy ?? '-'
}
, {
row_title: 'Raising Platform'
, value: mapInvestorData?.get('round')?.values?.chain
, value: mapInvestorData?.get('round')?.values?.chain ?? '-'
}
, {
row_title: 'Type'
, value: mapInvestorData?.get('round')?.values?.type
, value: mapInvestorData?.get('round')?.values?.type ?? '-'
}
, {
row_title: 'Accepted Currencies'
, value: mapInvestorData?.get('round')?.values?.currencies
, value: mapInvestorData?.get('round')?.values?.currencies ?? '-'
}
]
}
Expand Down Expand Up @@ -193,10 +193,6 @@
$: if_R_000 =
numDateDiffStart == null
|| numDateDiffEnd == null
$: if_R_00 =
countDownTestHourToStart > 23
&& numDateDiffStart > 0
;
$: if_R_0 =
countDownTestHourToStart <= 23
&& countDownTestHourToStart >= 0
Expand All @@ -207,21 +203,13 @@
&& countDownTestHourToEnd >= 0
&& numDateDiffEnd > 0
;
$: if_R_2 =
countDownTestHourToStart < 23
&& numDateDiffStart < 0
&& countDownTestHourToEnd > 23
&& numDateDiffEnd > 0
;
$: if_R_3=
countDownTestHourToEnd < 23
&& numDateDiffEnd < 0
;
$:
if (if_R_000) widgetState = 'ToBeAnnounced'
else if (if_R_00) widgetState = 'Ready State';
else if (if_R_0) widgetState = 'CountdownWithDefinedDate';
else if (if_R_2) widgetState = 'In Progress';
else if (if_R_1) widgetState = 'CountdownToFinish';
else if (if_R_3) widgetState = 'Ended';
Expand Down Expand Up @@ -350,7 +338,7 @@
▓ NOTE:
▓ > presale text
-->
{#if ['CountdownWithDefinedDate', 'CountdownToFinish'].includes(widgetState)}
{#if ['ToBeAnnounced', 'CountdownWithDefinedDate', 'CountdownToFinish'].includes(widgetState)}
<span
class=
"
Expand Down Expand Up @@ -467,16 +455,13 @@
s-16
w-500
color-grey
dark-v1
"
>
{#if widgetState == 'Ready State'}
Ready State
{:else if widgetState == 'ToBeAnnounced'}
{#if widgetState == 'ToBeAnnounced'}
Date To Be Announced
{:else if widgetState == 'InviteOnly'}
Invite Only
{:else if widgetState == 'In Progress'}
In Progress
{:else if widgetState == 'Ended'}
Ended
{/if}
Expand Down Expand Up @@ -663,7 +648,9 @@
class=
"
s-14
color-black-2
color-grey
grey-v1
"
>
{subItem?.row_title ?? ''}
Expand Down
8 changes: 8 additions & 0 deletions static/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,14 @@ img.google-aspect-ratio
color: var(--grey-shade-3) !important;
}

.dark-background .color-grey.dark-v1,
.dark-background-1 .color-grey.dark-v1
{
/* 🔥 override */
/* 🎨 style */
color: var(--grey) !important;
}

.dark-background .color-primary,
.dark-background-1 .color-primary
{
Expand Down

0 comments on commit 83e2dff

Please sign in to comment.