Skip to content

Commit

Permalink
Merge pull request #127 from subquery/feat/update-new
Browse files Browse the repository at this point in the history
feat: update new
  • Loading branch information
HuberTRoy authored Sep 20, 2024
2 parents e4a533e + 080ebce commit a918ef9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
Binary file added public/favicon-new.ico
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/favicon-new.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
Expand Down
10 changes: 10 additions & 0 deletions src/components/DelegationCampaign/DelegationCampaign.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,16 @@
display: flex;
justify-content: space-between;

&Button {
background: var(--sq-pink600);
border-color: var(--sq-pink600);

&:not(:disabled):not(.ant-btn-disabled):hover {
background: var(--sq-pink500);
border-color: var(--sq-pink500);
}
}

:global {
.ant-btn-primary:disabled {
background: var(--dark-mode-card);
Expand Down
5 changes: 4 additions & 1 deletion src/components/DelegationCampaign/DelegationCampaign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const LootboxItem = forwardRef<
iconPosition="end"
disabled={item.completed || expired}
loading={opening}
className={styles.lootboxItemButton}
>
{expired ? 'Lootbox Expired' : 'Open Lootbox'}
</Button>
Expand Down Expand Up @@ -170,6 +171,7 @@ const LootboxItem = forwardRef<
shape="round"
type="primary"
loading={opening}
className={styles.lootboxItemButton}
>
Collect the Points!
</Button>
Expand Down Expand Up @@ -707,7 +709,7 @@ const SecondStep = (props: { userInfo?: IDelegationUserInfo['data'] }) => {
) : (
<>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<Typography variant="large">Random Weekly Lootboxes!</Typography>
<Typography variant="large">🎉 Random Weekly Lootboxes! 🎉</Typography>

<div
className={clsx(
Expand Down Expand Up @@ -897,6 +899,7 @@ const MainChallenges = (props: { userInfo?: IDelegationUserInfo['data'] }) => {
onClick={() => {
lootboxRef.current?.open();
}}
className={styles.lootboxItemButton}
>
{challenge.success ? 'Lootbox Claimed' : 'Open Lootbox Now!'}
</Button>
Expand Down

0 comments on commit a918ef9

Please sign in to comment.