Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curtain instant #1450

Open
wants to merge 45 commits into
base: release-53
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
5424464
colors clean up
hubert-de-lalye Nov 25, 2024
dc90b47
Merge branch 'release-51' into color-clean-up
hubert-de-lalye Dec 2, 2024
4b99a49
fixed colors
hubert-de-lalye Dec 2, 2024
febbcc0
updating colors in UI
hubert-de-lalye Dec 2, 2024
6056c42
fixed button styles
hubert-de-lalye Dec 3, 2024
64f3998
Merge branch 'font-cleanup-inconsistencies-2' into color-clean-up
hubert-de-lalye Dec 4, 2024
d9f2781
updated hover color for tabs
hubert-de-lalye Dec 4, 2024
3e3c0e4
fixed hovers of chvrons in expandable row
hubert-de-lalye Dec 4, 2024
08ee42a
Merge branch 'release-51' into color-clean-up
hubert-de-lalye Dec 4, 2024
0f13d5e
Merge branch 'release-52' into color-clean-up
hubert-de-lalye Dec 9, 2024
3ffa437
updated colors palette, added inject plugin for semantic colors
hubert-de-lalye Dec 9, 2024
0d16ca8
Merge branch 'release-52' into color-clean-up
hubert-de-lalye Dec 9, 2024
ff6ef51
updated primary stroke and disabled button state
hubert-de-lalye Dec 9, 2024
a3a7768
Merge branch 'release-53' into color-clean-up
hubert-de-lalye Dec 16, 2024
b90c0de
applying new color styles
hubert-de-lalye Dec 17, 2024
802a13e
updating colors for buttons and tabs
hubert-de-lalye Dec 17, 2024
301d177
fixed colors
hubert-de-lalye Dec 18, 2024
fbefd21
fixed colors of pool label in notifications
hubert-de-lalye Dec 18, 2024
6455673
Merge branch 'release-53' into color-clean-up
hubert-de-lalye Dec 18, 2024
64336b3
fixed search input hover border color
hubert-de-lalye Dec 18, 2024
c8f8b4b
reorganized tailwind config
hubert-de-lalye Dec 19, 2024
9042113
fixed issues in PR
hubert-de-lalye Dec 19, 2024
84b539a
Merge branch 'release-53' into color-clean-up
hubert-de-lalye Dec 19, 2024
a18f276
Merge pull request #1452 from gmx-io/release-53
midas-myth Dec 19, 2024
d643ff6
Init release-54
midas-myth Dec 19, 2024
a1a7076
fixed wallet button styles
hubert-de-lalye Dec 19, 2024
26aaea9
Merge pull request #1400 from gmx-io/color-clean-up
hubert-de-lalye Dec 19, 2024
49722af
Put tradebox in curtain
midas-myth Dec 10, 2024
aef0608
Sticky tradebox support ios safe area
midas-myth Dec 10, 2024
db24bf9
Make first iteration of new tradebox in curtain work in safari
midas-myth Dec 11, 2024
8e27474
Sticky tradebox with framer motion
midas-myth Dec 12, 2024
1a1eb26
Sync translation
midas-myth Dec 12, 2024
38814f6
Last effort to optimize framer motion for new tradebox
midas-myth Dec 12, 2024
2bba897
No scroll ssticky tradebox
midas-myth Dec 12, 2024
cdf4e6c
Tradebox curtain open on any click
midas-myth Dec 12, 2024
3ca0d04
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
ae88fed
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
b9b1de2
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
6543770
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
4f42df5
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
a30aa03
Enhance instant tradebox curtain
midas-myth Dec 13, 2024
bdc5075
Instant curtain review fixes
midas-myth Dec 19, 2024
d1d9d73
Rebase curtain tradebox to colors PR
midas-myth Dec 20, 2024
0b6fb4f
Sync translations
midas-myth Dec 20, 2024
8fca2a3
Tradebox swipe tabs
midas-myth Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions src/App/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $app-card-padding: 1.5rem;
padding-left: 3.2rem;
padding-right: 3.2rem;
background: transparent 0% 0% no-repeat padding-box;
border-bottom: 1px solid var(--color-gray-950);
border-bottom: 1px solid var(--color-slate-700);
z-index: 1;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ $app-card-padding: 1.5rem;
background: var(--dark-blue);
height: 5.1rem;
width: 26.35rem;
border: 1px solid var(--dark-blue-border);
border: 1px solid var(--color-stroke-primary);
border-radius: 0.3rem;
position: relative;
color: var(--color-white);
Expand Down Expand Up @@ -285,7 +285,7 @@ button.App-connect-wallet:hover {
}

.App-header-user-address {
border: 1px solid var(--color-gray-800);
border: 1px solid var(--color-stroke-primary);
height: 3.6rem;
border-radius: 0.4rem;
display: inline-flex;
Expand Down Expand Up @@ -408,7 +408,7 @@ button.App-connect-wallet:hover {
}

.Page-description {
color: var(--color-gray-300);
color: var(--color-slate-100);
font-size: var(--font-size-body-medium);
line-height: var(--line-height-body-medium);
}
Expand Down Expand Up @@ -706,12 +706,6 @@ button.App-cta {
color: var(--color-white);
text-decoration: none;
background: linear-gradient(90deg, rgba(45, 66, 252, 1) 0%, var(--color-blue-700) 100%);
&:hover:enabled {
background: var(--primary-btn-hover);
}
&:active:enabled {
background: var(--primary-btn-active);
}
}

.App-cta.small {
Expand Down Expand Up @@ -1026,7 +1020,7 @@ button.App-button {

.App-slider .rc-slider-mark-text,
.App-slider .rc-slider-mark-text-active {
color: var(--color-white);
color: var(--color-slate-100);
opacity: 0.5;
}

Expand All @@ -1042,11 +1036,13 @@ button.App-button {
.rc-slider-tooltip-inner {
box-shadow: none;
padding: 0.465rem 0.8rem;
background: var(--color-slate-600);

background: rgb(49, 54, 85) !important;
box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {
border-top-color: var(--color-slate-600);
border-top-color: rgb(49, 54, 85) !important;
}

.header-connect-btn {
Expand Down Expand Up @@ -1172,7 +1168,7 @@ button.App-button {
padding-left: 1.6rem;
padding-right: 1.6rem;
background: transparent 0% 0% no-repeat padding-box;
border-bottom: 1px solid var(--color-gray-950);
border-bottom: 1px solid var(--color-slate-700);
}

.App-header.small::after {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddressDropdown/AddressDropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
border-radius: 0.4rem;
overflow: hidden;
background: var(--color-slate-800);
border: 1px solid var(--color-gray-800);
border: 1px solid var(--color-stroke-primary);
list-style: none;
cursor: pointer;
outline: none;
Expand Down
6 changes: 3 additions & 3 deletions src/components/AlertInfo/AlertInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ interface Props {
noMargin?: boolean;
onClick?: () => void;
/**
* @default "text-gray-300"
* @default "text-slate-100"
*/
textColor?: "text-gray-300" | "text-yellow-500";
textColor?: "text-slate-100" | "text-yellow-500";
}

export function AlertInfo({
compact: smallMargin = false,
noMargin = false,
children,
type,
textColor = "text-gray-300",
textColor = "text-slate-100",
className,
onClick,
}: Props) {
Expand Down
23 changes: 16 additions & 7 deletions src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}

&.secondary {
background-color: color-mix(in srgb, var(--color-slate-600) 47%, transparent);
background-color: var(--color-slate-700);
border-radius: var(--border-radius-sm);
color: var(--color-white);
padding: 1.1rem 1.25rem;
Expand All @@ -79,11 +79,11 @@
}

&:not([disabled], .disabled):hover {
background-color: #50577e99;
background-color: var(--color-cold-blue-700);
}

&:not([disabled], .disabled):active {
background: #50577eb3;
background: var(--color-cold-blue-500);
}
}

Expand Down Expand Up @@ -113,16 +113,16 @@
}

&:not([disabled], .disabled):hover {
background-color: #50577e99;
background-color: var(--color-cold-blue-700);
}

&:not([disabled], .disabled):active {
background: #50577eb3;
background: var(--color-cold-blue-500);
}
}

&.link {
color: var(--color-gray-300);
color: var(--color-slate-100);
text-decoration: underline;
padding: 0;

Expand All @@ -139,7 +139,16 @@
&:disabled {
box-shadow: none;
cursor: not-allowed;
opacity: 0.8;

&.primary-action,
&.primary {
background-color: #1d235f;
}

&.secondary {
background-color: #1b1e32;
color: var(--color-slate-500);
}
}

&.slim {
Expand Down
4 changes: 2 additions & 2 deletions src/components/BuyInputSection/BuyInputSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function BuyInputSection(props: Props) {
<div data-qa={qa}>
<div className="Exchange-swap-section buy-input" onClick={handleBoxClick}>
<div className="buy-input-top-row">
<div data-label="left" className="text-gray-300">
<div data-label="left" className="text-slate-100">
{topLeftLabel}
{topLeftValue && `${INPUT_LABEL_SEPARATOR} ${topLeftValue}`}
</div>
Expand All @@ -94,7 +94,7 @@ export default function BuyInputSection(props: Props) {
className={cx("align-right", { clickable: onClickTopRightLabel })}
onClick={onClickTopRightLabel}
>
<span className="text-gray-300">{topRightLabel}</span>
<span className="text-slate-100">{topRightLabel}</span>
{topRightValue && (
<span className="Exchange-swap-label">
{topRightLabel ? INPUT_LABEL_SEPARATOR : ""}&nbsp;{topRightValue}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/ConnectWalletButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
font-size: var(--font-size-body-medium);
white-space: nowrap;
cursor: pointer;
border: 1px solid var(--dark-blue-border);
border: 1px solid var(--color-stroke-primary);
border-radius: var(--border-radius-sm);

.btn-icon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Exchange/OrdersList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function OrdersList(props) {

return (
<tr>
<td colSpan="5">
<td colSpan="5" className="text-slate-100">
<Trans>No open orders</Trans>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Exchange/PositionSeller.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1145,13 +1145,13 @@ export default function PositionSeller(props) {
{hasPendingProfit && orderOption !== STOP && (
<div className="PositionEditor-accept-profit-warning">
<Checkbox isChecked={isProfitWarningAccepted} setIsChecked={setIsProfitWarningAccepted}>
<span className="text-gray-300">Forfeit profit</span>
<span className="text-slate-100">Forfeit profit</span>
</Checkbox>
</div>
)}
<div className="PositionEditor-keep-leverage-settings">
<ToggleSwitch isChecked={keepLeverage} setIsChecked={setKeepLeverage}>
<span className="text-gray-300">
<span className="text-slate-100">
<Trans>Keep leverage at {formatAmount(position.leverage, 4, 2)}x</Trans>
</span>
</ToggleSwitch>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Exchange/SwapBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
STOP,
SWAP,
SWAP_OPTIONS,
SWAP_OPTIONS_CLASSNAMES,
SWAP_ORDER_OPTIONS,
USDG_ADDRESS,
USDG_DECIMALS,
Expand Down Expand Up @@ -2009,6 +2010,7 @@ export default function SwapBox(props) {
icons={SWAP_ICONS}
options={SWAP_OPTIONS}
optionLabels={localizedSwapLabels}
optionClassnames={SWAP_OPTIONS_CLASSNAMES}
option={swapOption}
onChange={onSwapOptionChange}
className="Exchange-swap-option-tabs"
Expand Down Expand Up @@ -2173,7 +2175,7 @@ export default function SwapBox(props) {
onClick={() => {
setShortCollateralAddress(existingCurrentIndexCollateralToken?.address);
}}
className="cursor-pointer text-gray-300 underline"
className="cursor-pointer text-slate-100 underline"
>
<Trans>Switch to {existingCurrentIndexCollateralToken?.symbol} collateral.</Trans>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExternalLink/ExternalLink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
text-decoration: underline;
cursor: pointer;
display: inline-flex;
color: var(--color-gray-300);
color: var(--color-slate-100);
&:hover {
color: var(--color-white);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/FavoriteStar/FavoriteStar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FaRegStar, FaStar } from "react-icons/fa";

export default function FavoriteStar({ isFavorite }: { isFavorite?: boolean }) {
return isFavorite ? <FaStar className="text-yellow-300" /> : <FaRegStar className="text-gray-400" />;
return isFavorite ? <FaStar className="text-yellow-300" /> : <FaRegStar className="text-slate-100" />;
}
8 changes: 6 additions & 2 deletions src/components/FavoriteTabs/FavoriteTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import cx from "classnames";

import {
TokenFavoriteKey,
tokensFavoritesTabOptionLabels,
Expand All @@ -19,8 +21,10 @@ export function FavoriteTabs({ favoritesKey }: { favoritesKey: TokenFavoriteKey
<Button
key={option}
type="button"
variant={tab === option ? "secondary" : "ghost"}
className="!text-body-medium !py-7"
variant={"ghost"}
className={cx("!text-body-medium !py-7", {
"!bg-cold-blue-500": tab === option,
})}
onClick={() => setTab(option)}
>
{localizedTabOptionLabels[option]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
transform: translateX(-50%);
left: 50%;
bottom: 0;
border-top: 1px solid var(--color-gray-950);
border-top: 1px solid var(--color-slate-700);
}

.Footer-logo {
Expand Down
10 changes: 7 additions & 3 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ import { userAnalytics } from "lib/userAnalytics";
import { LandingPageFooterMenuEvent } from "lib/userAnalytics/types";
import "./Footer.css";

type Props = { showRedirectModal?: (to: string) => void; redirectPopupTimestamp?: number };
type Props = {
showRedirectModal?: (to: string) => void;
redirectPopupTimestamp?: number;
isMobileTradePage?: boolean;
};

export default function Footer({ showRedirectModal, redirectPopupTimestamp }: Props) {
export default function Footer({ showRedirectModal, redirectPopupTimestamp, isMobileTradePage }: Props) {
const isHome = isHomeSite();
const [isUserFeedbackModalVisible, setIsUserFeedbackModalVisible] = useState(false);

return (
<>
<div className={cx("Footer-wrapper", { home: isHome })}>
<div className={cx("Footer-wrapper", { home: isHome, "pb-52": isMobileTradePage })}>
<div className="Footer-logo">
<img src={logoImg} alt="MetaMask" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Glp/GlpSwap.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
font-size: 1.2rem;
line-height: 1.5rem;
letter-spacing: 0px;
color: var(--color-gray-400);
color: var(--color-slate-100);
}

.GlpSwap-token-list {
Expand Down
24 changes: 3 additions & 21 deletions src/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
padding-left: 3.2rem;
padding-right: 3.2rem;
background: transparent 0% 0% no-repeat padding-box;
border-bottom: 1px solid var(--color-gray-950);
border-bottom: 1px solid var(--color-slate-700);
}

.App-header.large::after {
Expand Down Expand Up @@ -193,30 +193,12 @@
align-items: center;
}

.App-header-user-settings {
display: inline-flex;
cursor: pointer;
border: none;
border-radius: 1.5rem;
font-size: var(--font-size-body-medium);
background: none;
color: var(--color-white);
padding: 0;
width: 2.4rem;
height: 2.4rem;
align-items: center;
border-radius: 0.4rem;
display: inline-flex;
justify-content: center;
align-items: center;
}

.App-header-user-link {
margin-right: 2.4rem;
}

.App-header-user-address {
border: 1px solid var(--color-gray-800);
border: 1px solid var(--color-stroke-primary);
height: 3.6rem;
border-radius: 0.4rem;
display: inline-flex;
Expand Down Expand Up @@ -268,7 +250,7 @@
padding-left: 1.6rem;
padding-right: 1.6rem;
background: transparent 0% 0% no-repeat padding-box;
border-bottom: 1px solid var(--color-gray-950);
border-bottom: 1px solid var(--color-slate-700);
}

.App-header.small::after {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InterviewModal/InterviewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function InterviewModal({ isVisible, setIsVisible }: Props) {
</div>
<div className="flex items-center gap-12 text-14">
<ArrowBulletIcon />
<div className="text-gray-300">
<div className="text-slate-100">
<Trans>
Discord account:{" "}
<span
Expand Down
2 changes: 1 addition & 1 deletion src/components/InterviewToast/InterviewToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function InterviewToast({ onButtonClick }: Props) {
</Trans>
<br />
<br />
<div onClick={onButtonClick} className="text-xl cursor-pointer text-gray-300 underline">
<div onClick={onButtonClick} className="text-xl cursor-pointer text-slate-100 underline">
<Trans>Give us your feedback on GMX.</Trans>
</div>
<br />
Expand Down
Loading