Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 29, 2023
1 parent f19f3f2 commit 42a5b7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ const BattleReports = ({ planetId }: Props) => {
return <CircularProgress />;
}

if (error) {
return <div>Error: {error}</div>;
}

if (battleReports.length === 0) {
if (error || battleReports.length === 0) {
return <CenteredMessage>No Battle Reports Available</CenteredMessage>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const FleetMovements = ({ planetId }: Props) => {
>
<RocketLaunchIcon
fontSize="small"
sx={{ color: "#708090", marginRight: "4px" }}
sx={{ color: "#c5c6c7", marginRight: "4px" }}
/>
FLEET MOVEMENTS
</HeaderButton>
Expand Down
7 changes: 6 additions & 1 deletion packages/testnet/frontend/src/components/ui/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ const Header = ({ planetId }: Props) => {
<IconButton
onClick={handleLogoutClick}
color="inherit"
style={{ marginRight: "16px", color: "#708090", fontWeight: "600" }}
style={{
marginRight: "16px",
color: "#c5c6c7",
fontWeight: "bold",
opacity: "0.8",
}}
>
<LogoutIcon style={{ transform: "rotate(180deg)" }} />
</IconButton>
Expand Down
5 changes: 3 additions & 2 deletions packages/testnet/frontend/src/components/ui/WalletHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import styled from "styled-components";

const HeaderWalletContainer = styled.div`
color: #708090;
font-weight: 600;
color: #c5c6c7;
font-weight: bold;
opacity: 0.8;
display: flex;
padding: 12px;
border-top: 2px solid #151a1e;
Expand Down
3 changes: 2 additions & 1 deletion packages/testnet/frontend/src/shared/styled/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const StyledButton = styled(Button)(() => ({
export const HeaderButton = styled(Button)({
margin: "16px",
marginLeft: "0px",
color: "#708090",
color: "#c5c6c7",
opacity: "0.8",
fontWeight: "bold", // More pronounced buttons
letterSpacing: "1px", // Space-themed typography style
"&:hover": {
Expand Down

0 comments on commit 42a5b7f

Please sign in to comment.